Re: [PATCH v3 0/2] PCI/ATS: Disable ATS when ACS TB is set upstream
From: Jason Gunthorpe
Date: Mon Nov 30 2026 - 15:01:04 EST
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