Re: [PATCH v3 1/2] x86/PCI: Work around AMD erratum #1146 on Family 17h root ports
From: Anthony Pighin
Date: Fri Dec 04 2026 - 11:25:26 EST
On Fri, Dec 04, 2026 at 11:02:04AM -0500, Yazen Ghannam wrote:
> On Thu, Dec 03, 2026 at 09:56:46AM -0500, Anthony Pighin wrote:
> > With the register at zero, a config read to a root port whose link is
> > down (e.g. after Link Disable or during an endpoint reset) completes
> > with an RP PIO error that is escalated even when all RP PIO errors are
> > masked. When that coincides with MMIO to an endpoint behind another root
>
> "...even when...masked"
>
> This refers to "RP PIO Mask Register", correct? Can you please share the
> value from your system?
>
> I'm trying to reproduce this behavior, and so far the masking prevents
> escalation.
>
> So I just want to make sure the commit message is accurate.
Yes. On my system, firmware leaves the RP PIO Mask at 0x00070707 and
Severity at 0 on all root ports, and the kernel does not write them.
With the mask unchanged, the reproducer survived 120 seconds with
SysError at 0x00070707. Setting SysError back to 0 at runtime gave a
sync flood within seconds (IOHC SYNCFLOOD_STATUS 0x100).
The trigger is narrow, which may be why you don't see it. Config reads
(about 20 per second is enough) to a device behind a root port with Link
Disable set complete with Cfg CTO. They only cause the sync flood while a
tight MMIO read loop runs to an endpoint behind another root port of the
same PCIe controller (an I210 in my case). Config reads alone, slow MMIO,
MMIO to on-die devices, or an endpoint on another controller do not fail.
This first appeared after commit 4d909bf1a53e ("PCI: Refactor extended
capability search into PCI_FIND_NEXT_EXT_CAP()"). Its extended capability
walk no longer skips disconnected devices, so every walk after an
endpoint reset issues hundreds of config reads behind the down link.
The fix for that [1] is still pending. It removes the burst, but not
the underlying exposure that this patch addresses.
You're right that "escalated" is my inference from the sync flood. I
don't observe the System Error itself. If a v4 is needed, I can reword
it to what I observed.
> Question for the maintainers: should these details be left to the commit
> message rather than code comments?
Fine with me to reduce the comment to the erratum reference if Bjorn
prefers.
Anthony
[1] https://lore.kernel.org/r/20261019165159.1268120-1-anthony.pighin@xxxxxxxxx