From: Lukas Wunner <lukas@wunner.de>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: "Esther Shimanovich" <eshimanovich@chromium.org>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Rajat Jain" <rajatja@google.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
iommu@lists.linux.dev,
"Mika Westerberg" <mika.westerberg@linux.intel.com>,
linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v5] PCI: Detect and trust built-in Thunderbolt chips
Date: Wed, 30 Oct 2024 12:11:33 +0100 [thread overview]
Message-ID: <ZyIUZfFuUdAbVf25@wunner.de> (raw)
In-Reply-To: <20241030001524.GA1180712@bhelgaas>
On Tue, Oct 29, 2024 at 07:15:24PM -0500, Bjorn Helgaas wrote:
> I asked on the v4 patch whether we really need to make all this
> ACPI specific, and I'm still curious about that, since we don't
> actually use any ACPI interfaces directly.
The patch works around a deficiency in a Microsoft spec which is
specifically for ACPI-based systems, not devicetree-based systems:
"ACPI Interface: Device Specific Data (_DSD) for PCIe Root Ports
In Windows 10 (Version 1803), new ACPI _DSD methods have been added
to support Modern Standby and PCI hot plug scenarios."
https://learn.microsoft.com/en-us/windows-hardware/drivers/pci/dsd-for-pcie-root-ports
The deficiency is that Microsoft says the ExternalFacingPort property
must be below the Root Port...
"This ACPI object enables the operating system to identify externally
exposed PCIe hierarchies, such as Thunderbolt. This object must be
implemented in the Root Port ACPI device scope."
...but on the systems in question, external-facing ports do not
originate from the Root Port, but from Downstream Ports.
So there's the Root Port (with the external facing property),
below that an Upstream Port and below that a Downstream Port
(which is the actual external facing port).
I'm not sure if Windows on ARM systems use ACPI or devicetree.
I'm also not sure whether the Qualcomm SnapDragon SoCs they use
have Thunderbolt built-in, in which case they won't need a
discrete Thunderbolt controller. If they don't use discrete
Thunderbolt controllers or if they don't use ACPI, they can't
exhibit the problem.
In any case I haven't heard of any Windows on ARM systems being
affected by the issue.
So it boils down to: Should we compile the quirk in just in case
ARM-based ACPI systems with discrete Thunderbolt controllers and
problematic ACPI tables show up, or should we constrain it to x86,
which is the only known architecture that actually needs it right now.
My recommendation would be the latter because it's easy to move
code around in the tree, should other arches become affected,
but in the meantime we save memory and compile time on anything
not x86.
Thanks,
Lukas
next prev parent reply other threads:[~2024-10-30 11:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-10 17:57 [PATCH v5] PCI: Detect and trust built-in Thunderbolt chips Esther Shimanovich
2024-10-30 0:15 ` Bjorn Helgaas
2024-10-30 5:37 ` Mika Westerberg
2024-10-30 11:11 ` Lukas Wunner [this message]
2024-10-30 11:31 ` Mika Westerberg
2024-10-30 13:11 ` Lukas Wunner
2024-10-30 16:41 ` Mika Westerberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZyIUZfFuUdAbVf25@wunner.de \
--to=lukas@wunner.de \
--cc=bhelgaas@google.com \
--cc=eshimanovich@chromium.org \
--cc=helgaas@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=iommu@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=rajatja@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox