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
