From: Lukas Wunner <lukas@wunner.de>
To: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>,
linux-pci@vger.kernel.org,
Sourabh Jain <sourabhjain@linux.ibm.com>,
Oliver OHalloran <oohall@gmail.com>,
linuxppc-dev@lists.ozlabs.org,
Sathyanarayanan Kuppuswamy
<sathyanarayanan.kuppuswamy@linux.intel.com>,
Keith Busch <kbusch@kernel.org>,
Maciej Grochowski <Maciej.Grochowski@sony.com>
Subject: Re: [PATCH] PCI/AER: Check error status registers if Error Source ID is zero
Date: Mon, 30 Nov 2026 19:10:18 +0100 [thread overview]
Message-ID: <aw28Cti0aTZlvzOH@wunner.de> (raw)
In-Reply-To: <20261130180248.GA212336@yaz-khff2.amd.com>
On Mon, Nov 30, 2026 at 01:02:48PM -0500, Yazen Ghannam wrote:
> On Mon, Nov 30, 2026 at 06:09:00PM +0100, Lukas Wunner wrote:
> > On Mon, Nov 30, 2026 at 11:18:57AM -0500, Yazen Ghannam wrote:
> > > Can a device send ERR_* messages before it is initialized?
> >
> > As an example, at any point in time can an Endpoint raise a Receiver
> > Error due to signaling issues at the physical layer. That could occur
> > prior to the Endpoint receiving its initial device Configuration Write
> > Request from which it learns its bus, device and function number.
> >
> > So yes I do believe that an error message could be generated with
> > a zero Requester ID. The reason for referencing sec 2.2.9.1 is to
> > make it clear that the device learns its BDF from the first Config
> > Write Request and prior to that, the device uses zero as its ID.
[...]
> The device *should not* send ERR_* messages before the enable bits are
> set. And those require a config write, which means the device should be
> initialized. So basically, the premise is not possible according to the
> spec.
>
> **BUT, I think your point is that a device *could* send spurious ERR_*
> messages before it is actually initialized. IMO, this seems more like a
> busted device rather than race condition gap in the spec.
>
> All that to say, I agree this could happen, but it's not clear to me
> that it is "valid" vs broken device behavior.
Ah you're right. I'm not sure we need to expect such broken devices
and handle them correctly. I'll leave the decision to Bjorn, but
from my side, this fixup is optional based on your argument.
Thanks,
Lukas
prev parent reply other threads:[~2026-11-30 18:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 18:35 [PATCH] PCI/AER: Check error status registers if Error Source ID is zero Lukas Wunner
2026-11-26 18:42 ` sashiko-bot
2026-11-30 15:04 ` Kuppuswamy Sathyanarayanan
2026-11-30 16:18 ` Yazen Ghannam
2026-11-30 17:09 ` Lukas Wunner
2026-11-30 18:02 ` Yazen Ghannam
2026-11-30 18:10 ` Lukas Wunner [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=aw28Cti0aTZlvzOH@wunner.de \
--to=lukas@wunner.de \
--cc=Maciej.Grochowski@sony.com \
--cc=helgaas@kernel.org \
--cc=kbusch@kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=oohall@gmail.com \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=sourabhjain@linux.ibm.com \
--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