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

Re: [PATCH v2 1/6][4.16?] x86/x2APIC: defer probe until after IOMMU ACPI table parsing


  • To: Roger Pau Monné <royger@xxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 8 Nov 2021 08:40:59 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=SECgzteS/cSDA5kidSyrcpqCB9IelkZD/cdV4vU94fw=; b=TSgK3cfZAJXdYmj+sUoCCP/7LbUYhrIBJJ8Zs4OIGlQjA0b+OaMJAD6/ddjJ5xfF+aKdcyVkEM2/skKsSAJAxDKhbh2G9NJJVfEBjhvNfyKN4sCcRco4uox9k7yxwIPXPh41hYfZjM5pAyRPslMczD/hPtjTDRfX/+P7KITItfOfGOyB7iZQv86WwQklzsQ79ubvNS1VwAfJIaYD9H6bSw7yzE/fBfujK/lAlSTjsZFpLI7p8eBEnv+9GxmXYN3CnR8XyyWaQvn+4pdT4xSPguGy0IBMJxNX6SfLkhDI+rVt01gz2c3g4cnUgkCBHiOTCygGJP9JjfsLy3cAE+NFqw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fy6mPaOYlSc3gdF9qKC/QQvV7dKsqOKMLjXEJjPrRLxRUMscIJ3gUOCAV0pBv1tQWejVG+R27Dr72RAztt/YovPrLQQDFLvHElZKRzi5vZ066MJG2BAup7ztbDLtIodmRIRFpYMaHwNtw5NkBccugkI28J4EJgduGi7a4VjySfg1o+5FZvq3mQrVf0MwjYWZ7zPdfywqSJCT3rUVnWLEt8SyC5W9DuiVuKUa9XExzQRd/JZBi5gelImetW5QY+rQDoPOeuTTJH4hC9haxCkHnIIi77yuz4MrcRwXhgMfWZ2KCy3NUEYRIt48Gb65g4XG9lOmD1zTgC9trvDlqcq+Iw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • Delivery-date: Mon, 08 Nov 2021 07:41:37 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05.11.2021 16:38, Roger Pau Monné wrote:
> On Fri, Nov 05, 2021 at 01:32:18PM +0100, Jan Beulich wrote:
>> --- a/xen/arch/x86/setup.c
>> +++ b/xen/arch/x86/setup.c
>> @@ -1699,6 +1699,13 @@ void __init noreturn __start_xen(unsigne
>>  
>>      dmi_scan_machine();
>>  
>> +    /*
>> +     * IOMMU-related ACPI table parsing has to happen before APIC probing, 
>> for
>> +     * check_x2apic_preenabled() to be able to observe respective findings, 
>> in
>> +     * particular iommu_intremap having got turned off.
>> +     */
>> +    acpi_iommu_init();
> 
> If we pull this out I think we should add a check for acpi_disabled
> and if set turn off iommu_intremap and iommu_enable?

Hmm, I should have added a note regarding this. If we want to exactly
retain prior behavior, acpi_ht would also need checking. Yet that has
gone wrong long ago: We parse way too many tables when acpi_disabled
&& acpi_ht, and hence while correct wrt to prior behavior I'd consider
it wrong to (re)add a "!acpi_ht" check.

As a result I'm of the opinion that checking acpi_disabled here also
isn't necessarily appropriate, and instead IOMMU disabling would
better be solely under the control of "iommu=".

Additionally iirc Andrew has been suggesting to drop all this "ACPI
disabled / HT-only" machinery (I'm somewhat hesitant with that, but
as a result I'm also not very eager to actually correct to accumulated
bad behavior). The change here simply would be a tiny first step in
that direction.

Jan




 


Rackspace

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