Linux PCI subsystem development
 help / color / mirror / Atom feed
From: Lukas Wunner <lukas@wunner.de>
To: Farhan Ali <alifm@linux.ibm.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>,
	linux-pci@vger.kernel.org, Riana Tauro <riana.tauro@intel.com>,
	Alex Williamson <alex@shazbot.org>,
	Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH] PCI: Fix order of device disablement on reset
Date: Thu, 17 Sep 2026 14:38:42 +0200	[thread overview]
Message-ID: <aqvfUldY5mGMMYrG@wunner.de> (raw)
In-Reply-To: <6a45ad46-efa6-47fd-9408-302ea8bb66e2@linux.ibm.com>

On Tue, Sep 15, 2026 at 10:08:32AM -0700, Farhan Ali wrote:
> On 9/15/2026 6:35 AM, Lukas Wunner wrote:
> > Riana reports an AER splat when issuing a Secondary Bus Reset through the
> > "reset_subordinate" sysfs attribute:
> > 
> >    AER: Multiple Uncorrectable (Non-Fatal) error message received from 0000:01:00.0
> >    PCIe Bus Error: severity=Uncorrectable (Non-Fatal), type=Transaction Layer, (Requester ID)
> >      device [8086:e2ff] error status/mask=00100000/00400000
> >      [20] UnsupReq               (First)
> >    AER:   TLP Header: 0x40000001 0x0000000f 0x81190008 0x00000000
> > 
> > The Secondary Bus Reset is issued at the Root Port.  Underneath is a
> > Switch with two Endpoints.  Riana has identified an ordering issue in
> > pci_bus_save_and_disable_locked() as root cause of the AER splat:
[...]
> Since we are changing the order, maybe we should update comment for the
> functions to reflect that. The change does make sense to me, but I am
> curious why we didn't see this before?

We only enabled error reporting by default starting with v6.0 in 2022,
cf. commit f26e58bf6f54.

And the reset_subordinate sysfs attribute only exists since v6.13 in 2025,
cf. commit 2fa046449a82.

So it's relatively new functionality which apparently wasn't exercised
heavily so far.

It's remarkable though that universally enabling error reporting is now
alerting us to hidden bugs like this.  Commit f26e58bf6f54 cautioned
that the change is invasive but it's clearly useful.

Agreed on updating the comment, I'll have to respin the patch and
also address the sashiko findings regarding power management.

Thanks,

Lukas

  reply	other threads:[~2026-09-17 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15 13:35 [PATCH] PCI: Fix order of device disablement on reset Lukas Wunner
2026-09-15 13:51 ` sashiko-bot
2026-09-15 17:08 ` Farhan Ali
2026-09-17 12:38   ` Lukas Wunner [this message]
2026-09-17 14:04     ` Keith Busch

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=aqvfUldY5mGMMYrG@wunner.de \
    --to=lukas@wunner.de \
    --cc=alex@shazbot.org \
    --cc=alifm@linux.ibm.com \
    --cc=helgaas@kernel.org \
    --cc=kbusch@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=riana.tauro@intel.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