[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Aw: Re: Re: Re: [help] Xen 4.14.5 on Devuan 4.0 Chimaera, regression from Xen 4.0.1


  • To: Denis <tachyon_gun@xxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Mon, 20 Mar 2023 11:01:58 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9Orf+qOwSz55MPGPt3DUltn/Toai+QGiG2RTqGnomBE=; b=MxIsTFFH9OQYKw0z34IK5blhv7FDAhoq9ZTPMrzpdNm1N+I0bSsKEIuhMpHD8sg2N1QD7blnME1S/Y7hGunUsGbsv1PvZXL0a/Xbql01PSdPG/HQMy2sbQ3zCmthOJTUGde67o4f1kap6YJnPL1pJfgWBU5xntm42QReKVXmWWIxEuAKlwJleT51JO/ouqDzrW6icFtQCMoG6jOgJlR9EKaaDZFUlQnLECM+oFS1aprpEQt2zrDmREYr4hYRsM2FEpbN6U7BSfgfzaeRtw+F0+KJMotUER3Zc2g0nM6le/IzK4VI+k6NWRlZKmz8amCJy/Pz+tr06yP0boPWhGkecA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i+UwL/hbqomy0eMD4rKsIaWLcVKLhz2NCzhneUClw2AXNGSHZx6zE6uoMFzhEHuBdI/ao3Bw/wCDBgCZI3wS3ornBk96/cIa0t98CVi077GjsseoUe+qu1c4bKb8GNHW0aSujZaAzOQvnKCkDNAHEAUYQo8NJul4JACAl6ifNbiyH8WrfAB/PP2v4qnhwmXVY+hRtuVSOkwkvawj+lsOvfwQoN/dH/ylfF/szC1mbGByHccASuVPZ/3uDwCGLqUXbYEXpkRu7VExnmLoYfPt9mr9skXKGWHy/c55xRZE8Gxt+3QtMC2BYNXAzwfI+ARh9t1CDzH3JjRdmFCZSrWYNw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Mon, 20 Mar 2023 11:02:32 +0000
  • Ironport-data: A9a23:bKx1Lq5R0gntHo3UoutYBwxRtA3GchMFZxGqfqrLsTDasY5as4F+v mJOXGzUMvvYMGTweIp0bdyx9koE756Dn9EwTFNtq3g2Hi5G8cbLO4+Ufxz6V8+wwm8vb2o8t plDNYOQRCwQZiWBzvt4GuG59RGQ7YnRGvynTraCYnsrLeNdYH9JoQp5nOIkiZJfj9G8Agec0 fv/uMSaM1K+s9JOGjt8B5mr9VU+7JwehBtC5gZlPasS7QeE/5UoJMl3yZ+ZfiOQrrZ8RoZWd 86bpJml82XQ+QsaC9/Nut4XpWVTH9Y+lSDX4pZnc/DKbipq/0Te4Y5iXBYoUm9Fii3hojxE4 I4lWapc6+seFvakdOw1C3G0GszlVEFM0OevzXOX6aR/w6BaGpdFLjoH4EweZOUlFuhL7W5m+ +M8BywrTh26u/us6q3rVtJqt/wJBZy+VG8fkikIITDxK98DGMmGaIKToNhS0XE3m9xEGuvYa 4wBcz1zYR/cYhpJfFAKFJY5m+TujX76G9FagAvN+exrvC6Okkooj+CF3Nn9I7RmQe18mEqCq 32A1GP+GhwAb/SUyCaf82LqjejK9c/+cNtKTeHjrqUy2jV/wEQYVCQvWguy4sCjpUTiW9l2D FMPpigX+P1aGEuDC4OVsweDiGKNtR4NXNxnHPA8wB6AwOzY7m6xBGIJUzpAY9wOr9ItSHoh0 Vrht8PkA3ljvaOYTVqZ96yItnWiNC4NN2gAaCQYCwwf7LHeTJobixvOSpNoF/ezh9isQDXom WnV9G45mqkZitMN2+Oj51fbjjmwp5/PCAko+gHQWWHj5QR8DGK4W7GVBZHgxa4oBO6kopOp4 xDoR+D2ADgyMKyw
  • Ironport-hdrordr: A9a23:a7uK+alfQ++rXi/jqchSpxobO83pDfLa3DAbv31ZSRFFG/Fw9/ rCoB3U73/JYVcqKRcdcLW7UpVoLkmyyXcY2+cs1PKZLWvbUQiTXeZfBOnZsl7d8kTFn4Yw6U 4jSdkaNDSZNzNHZK3BkW2F+rgboeVu8MqT9JjjJ3UGd3AVV0m3hT0JezpyESdNNXl77YJSLu vk2iLezQDQBEj+aK6AdwE4dtmGnfLnvrT8byULAhY2gTP+8Q9BuNbBYmOlNg51aUI0/Ysf
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 19/03/2023 7:38 pm, Denis wrote:
> On 14.03.2023 16:11, Andrew Cooper wrote:
>> On 14/03/2023 2:53 pm, Denis wrote:
>>> On 14.03.2023 07:37; Jan Beulich wrote:
>>>> On 14.03.2023 02:15, Denis wrote:
>>>>> On 13.03.2023 10:36, Jan wrote
>>>>>> On 10.03.2023 21:50, Denis wrote:
>>>>>>> Should I test something else?
>>>>>> ... there was no request for any further testing here, for the moment.
>>>>> ah...sorry, going by "Would be nice to have this confirmed forthe system
>>>>> in question, i.e. without Xen underneath Linux" I thought I could test
>>>>> something which might help shed some light on all of this.
>>>> Well, yes, that Linux-without-Xen test would still be useful to have
>>>> results from. I didn't account for this in my earlier reply because
>>>> I had asked for it before already, and I did take "something else"
>>>> for meaning anything that might have turned up as useful from the new
>>>> data you had provided.
>>> What tests could I do or what info should I provide to help?
>> Can you please rebuild Xen with this patch:
>>
>> diff --git a/xen/drivers/passthrough/amd/iommu_acpi.c
>> b/xen/drivers/passthrough/amd/iommu_acpi.c
>> index 2fdebd2d74c9..747eae25f56c 100644
>> --- a/xen/drivers/passthrough/amd/iommu_acpi.c
>> +++ b/xen/drivers/passthrough/amd/iommu_acpi.c
>> @@ -1033,7 +1033,7 @@ static int __init parse_ivrs_table(struct
>> acpi_table_header *table)
>>      const struct acpi_ivrs_header *ivrs_block;
>>      unsigned long length;
>>      unsigned int apic;
>> -    bool_t sb_ioapic = !iommu_intremap;
>> +    bool_t sb_ioapic = 1;
>>      int error = 0;
>>  
>>      BUG_ON(!table);
>>
>> which should cause the behaviour to revert back to that of Xen 4.0.1 
>> (i.e. it will fully ignore the checks relating to the southbridge ioapic).
>>
>> Confirm that with this, and booting Xen simply with `iommu=1` that full
>> DMA remapping and interrupt remapping is considered active.
>>
>>
>> Then, can you play around with passing the soundblaster through to VMs. 
>> Looking at the LSPCI you provided, it only supports legacy line interrupts.
>>
>> Does the device work fine, or do you get a bunch of errors on `xl dmesg`
>> about IO page faults (which is a generic "IOMMU said no to something"
>> message)?
> Sorry, it took my awhile to get it done.
>
> The relevant things are enabled again, passthrough works (even the PCI 
> Audigy2) 
> and the devices are recognzied in the HVM domU.
>
> As you suspected, there are a few IO page faults at the end of the boot 
> process
> (from my limited understanding it's maybe related to 
> "00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller 
> (rev 41)")
>
> I'll attach the "xl dmesg" output file.

Do you have this file?

If they're only at the end of boot and not later around passthrough,
then they might be from other functionality in the Southbridge.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.