mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Anthony Pighin <anthony.pighin@nokia.com>
To: Yazen Ghannam <yazen.ghannam@amd.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>,
	Mario Limonciello <superm1@kernel.org>,
	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:25:12 -0500	[thread overview]
Message-ID: <20261204162512.2350887-1-anthony.pighin@nokia.com> (raw)
In-Reply-To: <20261204160204.GA1054818@yaz-khff2.amd.com>

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@nokia.com

  reply	other threads:[~2026-12-04 16:25 UTC|newest]

Thread overview: 7+ 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-04 16:02   ` Yazen Ghannam
2026-12-04 16:25     ` Anthony Pighin [this message]
2026-12-05 23:21   ` Bjorn Helgaas
2026-12-03 14:56 ` [PATCH v3 2/2] x86/PCI: Extend AMD erratum #1146 workaround to more " Anthony Pighin
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=20261204162512.2350887-1-anthony.pighin@nokia.com \
    --to=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=superm1@kernel.org \
    --cc=x86@kernel.org \
    --cc=yazen.ghannam@amd.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

all inboxes | Powered by JetHome®