[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: Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Mon, 8 Nov 2021 08:44:29 +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=CmjmGHWPIPLIQqbFK1Td037co0FrTMJ0kMBRKyOa4pI=; b=E1tWJyeptoCtePH8kcEl+MIsBNTigRVqOt/I/QGmZHjF12y5xjqkrzXuEJJ29RbPEXX/ZQksfE+CHn+2N2Vxz1HU7WE9O2XSx3uBrzkGJA372X/GlIvIjbkUDpdS2hCu/wVnQbO5e8MqJce9tdvuiNfDTcnfqMr1m8NSKg0L8SMDqxHghenE3wK9Tn2jGlwyp2eOGDiYoVofNktbWjaWN4qp1kS39Yvq944rP17nJz/0gsz+L7MyFOrSbhCCi99oh02YX/I8jSRZ9GZpYuNd0QgKL5/Ikqa4IlqAQc3N/T/THAUqPWkUYHqpHjgxevpnUA2dO5sCgomb+Rq9BDns2w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lh5vP2bjxOIeIfolPjiDVfb2qYrsIP6KBoUxNpxenWjPtOn4dpFgmPtQx9YHmhnEWoSawPiAvgimL8TcztFUClHT3LnIju/sOJC1/XvbdQ+pQ22b6pe3Fa5W791b/+nuGqO6YC2bGMAsNkKYojIh5xUEVQcAdaLrYuI51vo/9Xjjsa4KoO9Y7d3Rm1QGldZYF0dDLWkgJuSOAqbOGlLQSwwZiGGmw2vbBi+APlcE+tkEmFUzJPurBNCarcILmavnZtC83WD91VP1/aK09oSUGDqMFsd6X9hyIElw8LDpunP+f7FUKrXj4BqYVObVFh5QZ/5hkSFXRQRQ3wHBNXWbFA==
  • 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>, Roger Pau Monné <royger@xxxxxxxxxxx>
  • Delivery-date: Mon, 08 Nov 2021 07:44:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05.11.2021 16:47, Ian Jackson wrote:
> Roger Pau Monné writes ("Re: [PATCH v2 1/6][4.16?] x86/x2APIC: defer probe 
> until after IOMMU ACPI table parsing"):
>>> 4.16: While investigating the issue addressed by the referenced commit,
>>>       a variant of that problem was identified when firmware pre-enables
>>>       x2APIC mode. Whether that's something sane firmware would do when
>>>       at the same time IOMMU(s) is/are disabled is unclear, so this may
>>>       be a purely academical consideration. Working around the problem
>>>       also ought to be as simple as passing "iommu=no-intremap" on the
>>>       command line. Considering the fragility of the code (as further
>>>       demonstrated by v1 having been completely wrong), it may therefore
>>>       be advisable to defer this change until after branching.
> 
> Thanks for the frank analysis.
> 
>> The main issue here would be missing a dependency between
>> acpi_iommu_init and the rest of acpi_boot_init, apart from the
>> existing dependencies between acpi_iommu_init and generic_apic_probe.
> 
> I have been thinking about this.  I'm still not sure.
> 
>>>       Nevertheless it will then be a backporting candidate, so
>>>       considering to take it right away can't simply be put off.
> 
> This part confused me.  Under what circumstances would we backport
> this ?  AIUI it would be backporting a potentially-fragile and
> not-readily-testable bugfix, for a theoretical scenario with a
> straightforward workaround.

Well, I've said "candidate" for this very reason: To me, every bug
fix is a candidate. Whether risks outweigh the potential benefits is
then influencing whether to _actually_ take the change. A reason to
take it despite the available workaround might be that
"straightforward" doesn't also mean "obvious" here. IOW once you
know what to do, doing so is easy. But one first needs to arrive
there.

Jan




 


Rackspace

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