From: Yazen Ghannam <yazen.ghannam@amd.com>
To: Anthony Pighin <anthony.pighin@nokia.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
linux-pci@vger.kernel.org, x86@kernel.org,
linux-kernel@vger.kernel.org,
Mario Limonciello <mario.limonciello@amd.com>,
David Laight <david.laight.linux@gmail.com>,
stable@vger.kernel.org
Subject: Re: [PATCH v3 1/2] x86/PCI: Work around AMD erratum #1146 on Family 17h root ports
Date: Fri, 4 Dec 2026 11:02:04 -0500 [thread overview]
Message-ID: <20261204160204.GA1054818@yaz-khff2.amd.com> (raw)
In-Reply-To: <20261203145647.707695-2-anthony.pighin@nokia.com>
On Thu, Dec 03, 2026 at 09:56:46AM -0500, Anthony Pighin wrote:
> AMD Family 17h Models 00h-0Fh processors are affected by erratum #1146,
> "PCIe DPC RP PIO Error Reporting May Not Function Correctly". The RP PIO
> SysError register in the DPC Extended Capability has inverted enable
> bits, so its zero reset value enables System Error reporting of RP PIO
> errors on every root port, and the processor may mishandle such a System
> Error. No fix is planned. The documented workaround is to program bits
> [18:0] of the register to 0x7_0707.
>
> 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.
> port of the same PCIe controller, the system takes a data fabric sync
> flood and resets. With the workaround, the same reads return all-ones
> and are logged by AER as Advisory Non-Fatal errors.
>
> Apply the workaround to affected root ports that implement the DPC RP
> Extensions, at enumeration and on resume, since the DPC state saved
> across suspend does not include this register.
>
> Link: https://docs.amd.com/v/u/en-US/55449-PUB-1.21
> Cc: stable@vger.kernel.org
> Signed-off-by: Anthony Pighin <anthony.pighin@nokia.com>
> ---
> arch/x86/pci/fixup.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c
> index 795d81c7a4de..d8ea0e5292ae 100644
> --- a/arch/x86/pci/fixup.c
> +++ b/arch/x86/pci/fixup.c
> @@ -1180,3 +1180,27 @@ static void quirk_tuxeo_rp_d3(struct pci_dev *pdev)
> }
> DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x1502, quirk_tuxeo_rp_d3);
> #endif /* CONFIG_SUSPEND */
> +
> +/*
> + * AMD erratum #1146 (Family 17h Models 00h-0Fh Revision Guide 55449). The
> + * DPC RP PIO SysError register has inverted enable bits, so its zero reset
> + * value escalates Root Port PIO errors to a System Error that the processor
> + * may mishandle. Write the documented value to disable the escalation.
> + */
Question for the maintainers: should these details be left to the commit
message rather than code comments?
> +static void quirk_amd_dpc_rp_pio_syserror(struct pci_dev *dev)
> +{
> + u16 dpc, val;
> +
> + dpc = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_DPC);
> + if (!dpc)
> + return;
> +
> + pci_read_config_word(dev, dpc + PCI_EXP_DPC_CAP, &val);
> + if (!(val & PCI_EXP_DPC_CAP_RP_EXT))
> + return;
> +
> + pci_write_config_dword(dev, dpc + PCI_EXP_DPC_RP_PIO_SYSERROR, 0x00070707);
> + pci_info(dev, "AMD erratum #1146: disable DPC RP PIO System Error escalation\n");
> +}
> +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, 0x1453, quirk_amd_dpc_rp_pio_syserror);
> +DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AMD, 0x1453, quirk_amd_dpc_rp_pio_syserror);
> --
Otherwise, looks good to me.
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Thanks,
Yazen
next prev parent reply other threads:[~2026-12-04 16:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 14:56 [PATCH v3 0/2] x86/PCI: Work around AMD erratum #1146 Anthony Pighin
2026-12-03 14:56 ` [PATCH v3 1/2] x86/PCI: Work around AMD erratum #1146 on Family 17h root ports Anthony Pighin
2026-12-03 15:16 ` sashiko-bot
2026-12-04 16:02 ` Yazen Ghannam [this message]
2026-12-04 16:25 ` Anthony Pighin
2026-12-03 14:56 ` [PATCH v3 2/2] x86/PCI: Extend AMD erratum #1146 workaround to more " Anthony Pighin
2026-12-03 15:09 ` sashiko-bot
2026-12-03 20:05 ` [PATCH v3 0/2] x86/PCI: Work around AMD erratum #1146 Mario Limonciello
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=20261204160204.GA1054818@yaz-khff2.amd.com \
--to=yazen.ghannam@amd.com \
--cc=anthony.pighin@nokia.com \
--cc=bhelgaas@google.com \
--cc=david.laight.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=stable@vger.kernel.org \
--cc=x86@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.