From: Jason Gunthorpe <jgg@nvidia.com>
To: Pranjal Shrivastava <praan@google.com>
Cc: Danny Gonzalez <digonzal@google.com>,
Bjorn Helgaas <bhelgaas@google.com>,
Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Len Brown <lenb@kernel.org>, Nicolin Chen <nicolinc@nvidia.com>,
Lu Baolu <baolu.lu@linux.intel.com>,
Kevin Tian <kevin.tian@intel.com>,
decot@google.com, sheenamo@google.com, linux-pci@vger.kernel.org,
iommu@lists.linux.dev, linux-acpi@vger.kernel.org,
linux-kernel@vger.kernel.org, skhawaja@google.com,
dmatlack@google.com
Subject: Re: [PATCH v3 0/2] PCI/ATS: Disable ATS when ACS TB is set upstream
Date: Mon, 30 Nov 2026 16:00:22 -0400 [thread overview]
Message-ID: <20261130200022.GX114472@nvidia.com> (raw)
In-Reply-To: <aw2I5deMbjmUbs2G@google.com>
On Mon, Nov 30, 2026 at 02:32:05PM +0000, Pranjal Shrivastava wrote:
> On Fri, Nov 20, 2026 at 12:23:09AM +0000, Danny Gonzalez wrote:
>
> Hi Danny,
>
> > This series disables ATS on endpoints when an upstream bridge has ACS
> > Translation Blocking (PCI_ACS_TB) enabled, preventing ACS Violations on
> > translated DMA requests.
> >
>
> +David, Sami
>
> I'd like to discuss a tangential problem here.
>
> AFAIU, today nothing checks the upstream ports' TB before enabling ATS,
> so once TB is set, every Translation Request and Translated TLP from the
> endpoint is blocked as an ACS Violation. TB can legitimately be set by
> firmware or by "pci=config_acs=" in the current kernel, hence ATS
> enablement has to respect it regardless, and I agree with checking it.
>
> However, a case where we kexec (not Live Update) into a new kernel looks
> like a separate problem though: the previous kernel set TB (e.g. it
> booted with pci=noats, which makes pci_std_enable_acs() set it),
> and since pci_enable_acs() keeps existing bits, the next kernel inherits
> it and can't tell it apart from a firmware setting. I don't think a
> plain (non Live Update) kexec should hand its ACS policy to the next
> kernel.
>
> I'm wondering it the outgoing kernel should restore the ACS control it
> found at boot when shutting down for kexec? That might need
> pci_enable_acs() to remember the value it found, but then the next
> kernel would start from the firmware's settings, as on a cold boot.
I think kexec without live update is fine to consider the predecessor
kernel "firwmare" and inherent the ACS settings.. This seems so niche
I wouldn't invest any code in trying to do anything about it at least.
Jason
prev parent reply other threads:[~2026-11-30 20:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 0:23 [PATCH v3 0/2] PCI/ATS: Disable ATS when ACS TB is set upstream Danny Gonzalez
2026-11-20 0:23 ` [PATCH v3 1/2] iommu: Track whether pci_dev_reset_iommu_done() needs to restore state Danny Gonzalez
2026-11-20 0:23 ` [PATCH v3 2/2] PCI/ATS: Disable ATS when ACS TB is set upstream Danny Gonzalez
2026-11-30 14:22 ` Pranjal Shrivastava
2026-11-30 14:32 ` [PATCH v3 0/2] " Pranjal Shrivastava
2026-11-30 20:00 ` Jason Gunthorpe [this message]
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=20261130200022.GX114472@nvidia.com \
--to=jgg@nvidia.com \
--cc=baolu.lu@linux.intel.com \
--cc=bhelgaas@google.com \
--cc=decot@google.com \
--cc=digonzal@google.com \
--cc=dmatlack@google.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=kevin.tian@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=nicolinc@nvidia.com \
--cc=praan@google.com \
--cc=rafael@kernel.org \
--cc=robin.murphy@arm.com \
--cc=sheenamo@google.com \
--cc=skhawaja@google.com \
--cc=will@kernel.org \
/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