Linux PCI subsystem development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Anthony Pighin" <anthony.pighin@nokia.com>, linux-pci@vger.kernel.org
Subject: Re: [PATCH v3 2/2] x86/PCI: Extend AMD erratum #1146 workaround to more root ports
Date: Thu, 03 Dec 2026 15:09:23 +0000	[thread overview]
Message-ID: <sashiko-outbox-248074@kernel.org> (raw)
In-Reply-To: <20261203145647.707695-3-anthony.pighin@nokia.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] x86/PCI: quirk_amd_dpc_rp_pio_syserror() lacks CPU gating for
  0x1483
--

commit fef7a67559982357ef07371bab8932c87aa84604
Author: Anthony Pighin <anthony.pighin@nokia.com>

x86/PCI: Extend AMD erratum #1146 workaround to more root ports

This commit registers quirk_amd_dpc_rp_pio_syserror() as a header and
early-resume PCI fixup for AMD PCI device ID 0x1483, extending the
erratum #1146 workaround beyond device ID 0x1453.

Link: https://docs.amd.com/v/u/en-US/56323_PUB_1.03_RG_Rome

> diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c
> index d8ea0e5292aee..be179e81550c7 100644
> --- a/arch/x86/pci/fixup.c
> +++ b/arch/x86/pci/fixup.c

[ ... ]

> @@ -1204,3 +1207,5 @@ static void quirk_amd_dpc_rp_pio_syserror(struct pci_dev *dev)
>  }
>  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);
> +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_AMD, 0x1483, quirk_amd_dpc_rp_pio_syserror);
> +DECLARE_PCI_FIXUP_RESUME_EARLY(PCI_VENDOR_ID_AMD, 0x1483, quirk_amd_dpc_rp_pio_syserror);

[Severity: Medium]
Should the 0x1483 fixup in quirk_amd_dpc_rp_pio_syserror() be gated by
CPU family and model?

Device ID 0x1483 is also used by Family 17h Model 71h and Family 19h
Models 00h-0Fh and 21h, where Revision Guide 56683 omits erratum #1146.
If PCI_EXP_DPC_RP_PIO_SYSERROR has standard active-high polarity on
those parts, writing 0x00070707 enables escalation instead of disabling it.

Routine RP PIO errors such as link-down config reads or hot-unplug would
then trigger System Errors or platform resets, while the quirk logs that
escalation was disabled.  Reverting this commit later would also drop
the documented Family 17h Models 30h-3Fh workaround.

Gating 0x1483 with boot_cpu_data or x86_match_cpu() inside
quirk_amd_dpc_rp_pio_syserror() to restrict it to confirmed affected
models (Family 17h Models 30h-3Fh) would avoid regressing unaffected
hardware until its register polarity is confirmed.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203145647.707695-1-anthony.pighin@nokia.com?part=2

      reply	other threads:[~2026-12-03 15:09 UTC|newest]

Thread overview: 5+ 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-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 [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=sashiko-outbox-248074@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=anthony.pighin@nokia.com \
    --cc=linux-pci@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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