From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=83.223.95.204 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796062222; b=iw50wM8xZkrpvOMkwijddn5JPg6FZZlGZJovQLXcO3ADzxRiYA93x4PmI4s1KRzIunLr gWKr6WSN/ekCLzr+pfZ4YCUzkTrdrj9fQhUnZ97Pp4RdOs2a0jwccEpvxbOfR2ksaNJux XRDbA0H8yImW9lj58duGMyyCX+3ZYzn4N0WjWcY+YY/Zcplv9HIzFXMM1H7u6jSwLUkF7 qSCgdX4zmXn3o5w6AjT7EJcelX1JnyeKMLKDG48ucIMrpwIOGFfROp3iaxjoo7VY6epVz k7WB9F0fEHtqTIMz1DIrBpCdYqGj6vAg7u+DI0s7rdC3x+P/CxabNdP4FYFWpL5PH3w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796062222; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=9uN4q63nCxv9f5QnHSueFw6rj3Vt0lkkJ5Q+spp9pmA=; b=cBTTRF4ACZwlPR5g0BUp7nkey1DOgpWc4u7p55LKAeoLxF+iNQt5CRU7HsE8LmbIXynv IQoXE3+9ljcOYM+g0VIaYe9t8XWuR7X5GdFHwBATSomhzCw6fHPq77cGRcgnf/TZ/Bfcj deU9lhRxdRKgy04XOwWrBKYvtUat43J5HWptIhuvNWAc2qnq4P2V+6diZKOmt55HHkOPZ GCFJiK/mtpk/M5CaBXx17cFqPiv39a+gHx1pgQWgsjNKeoxSoV+lDYnGBpg5VqusIEBWj YAIbBRP1nLr00Nn99WkNN0j0naSc2Sjf/1U+U/3QogkZf0wp+QfJk4hWQkUyVNaVnvw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=wunner.de; spf=pass smtp.mailfrom=wunner.de; arc=none smtp.remote-ip=83.223.95.204 Received: from mailout1.hostsharing.net (mailout1.hostsharing.net [83.223.95.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1947D606A320 for ; Mon, 30 Nov 2026 18:10:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1947D606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=wunner.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wunner.de Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384 client-signature ECDSA (secp384r1) client-digest SHA384) (Client CN "*.hostsharing.net", Issuer "GlobalSign GCC R6 AlphaSSL CA 2025" (verified OK)) by mailout1.hostsharing.net (Postfix) with ESMTPS id BBA2F36D; Mon, 30 Nov 2026 19:10:18 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id A74B46029EE2; Mon, 30 Nov 2026 19:10:18 +0100 (CET) Date: Mon, 30 Nov 2026 19:10:18 +0100 From: Lukas Wunner To: Yazen Ghannam Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Sourabh Jain , Oliver OHalloran , linuxppc-dev@lists.ozlabs.org, Sathyanarayanan Kuppuswamy , Keith Busch , Maciej Grochowski Subject: Re: [PATCH] PCI/AER: Check error status registers if Error Source ID is zero Message-ID: References: <1ddc35c51b5317988bbf235c467a9534218c6ea4.1795717157.git.lukas@wunner.de> <20261130161857.GA14048@yaz-khff2.amd.com> <20261130180248.GA212336@yaz-khff2.amd.com> X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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