From: Keith Busch <kbusch@kernel.org>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: Keith Busch <kbusch@meta.com>,
linux-pci@vger.kernel.org, bhelgaas@google.com,
Alex Williamson <alex@shazbot.org>,
Lukas Wunner <lukas@wunner.de>
Subject: Re: [PATCH] pci: make reset_subordinate hotplug safe
Date: Wed, 14 Jan 2026 12:24:56 -0700 [thread overview]
Message-ID: <aWftiPx6_7naz4uy@kbusch-mbp> (raw)
In-Reply-To: <20260114191828.GA830415@bhelgaas>
On Wed, Jan 14, 2026 at 01:18:28PM -0600, Bjorn Helgaas wrote:
> [+cc Alex, Lukas]
>
> On Wed, Jan 14, 2026 at 10:58:21AM -0800, Keith Busch wrote:
> > From: Keith Busch <kbusch@kernel.org>
> >
> > Use the slot reset method when resetting the bridge if the bus contains
> > hotplug slots. This fixes spurious hotplug events the secondary bus
> > reset triggers by utilizing slot's specific reset callback that ignores
> > link events.
>
> What do these spurious events look like in dmesg?
Sure, after starting the reset_subordinate:
# echo 1 > /sys/bus/pci/devices/0000:00:03.1/reset_subordinate
Kernel dmesg currently show something like this:
pci 0000:01:03.4: save config 0x30: 0x00000000
pci 0000:01:03.4: save config 0x34: 0x00000040
pci 0000:01:03.4: save config 0x38: 0x00000000
pci 0000:01:03.4: save config 0x3c: 0x000001ff
pcieport 0000:00:03.1: pciehp: pending interrupts 0x0100 from Slot Status
pcieport 0000:00:03.1: pciehp: Slot(33): Link Down
pci 0000:01:03.4: PME# disabled
pcieport 0000:00:03.1: waiting 100 ms for downstream link, after activation
pcieport 0000:00:03.1: pciehp: pending interrupts 0x0008 from Slot Status
pcieport 0000:00:03.1: pciehp: pending interrupts 0x0008 from Slot Status
pcieport 0000:00:03.1: pciehp: pending interrupts 0x0100 from Slot Status
pci 0000:01:00.0: disconnected; not waiting
pci 0000:01:00.0: restore config 0x3c: 0xffffffff -> 0x000001ff
The desirable behavior we'd expect to see instead would inclue this
message:
pcieport 0000:00:03.1: pciehp: Slot(33): Link Down/Up ignored
next prev parent reply other threads:[~2026-01-14 19:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 18:58 [PATCH] pci: make reset_subordinate hotplug safe Keith Busch
2026-01-14 19:18 ` Bjorn Helgaas
2026-01-14 19:24 ` Keith Busch [this message]
2026-01-15 10:45 ` kernel test robot
2026-01-15 11:29 ` kernel test robot
2026-01-15 17:38 ` kernel test robot
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=aWftiPx6_7naz4uy@kbusch-mbp \
--to=kbusch@kernel.org \
--cc=alex@shazbot.org \
--cc=bhelgaas@google.com \
--cc=helgaas@kernel.org \
--cc=kbusch@meta.com \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
/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