Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=83.223.78.233 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794766034; b=MRoqofWma1FXA3aMT/6OYhAdwV6PouPJ9JnMuiozavV/svxIOOwjTrFMriYsNPQZMh44 4UPAE0Ac8nd58VIA3qkym9+WdLGwEu48yRtQBIC7NdZuFZxG+4yRQ6bvfBFPATEBFR1L3 AyKOsVATY6YF4JtYOIwykX0EJkisQyW7EXfrJQ2svPSJ3Zo6H+5U2iuB46ExAdniHR6wf r6Gs9Lf4jWxdnSk4+vOgIaFk9sFGyAeBhHEn50u/e9IwPBNTMLCzc6GHWE7Hav2ys5Mm3 bH8cbuuJSrNFFyUQv35J3tvEY6i6Hi6SxKaph3XVuXH2CHSY5sI7hL2x7Ae+GdjO/DQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794766034; h=DMARC-Filter:Received:Received:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=EQ6kRznTinREoIuzVBbxmzS9hOEhoTl38G8AURcRJc4=; b=o9uJbKwIaiA7oJs9TM49BscqkTdhVFjnZXKplk+b1C8DGG4aGKudpvmP/u5f9fzweKCQ YVkoG5pKHOLqsI5mJqLkHTkDJRBf7CXOr+Ju/iQilBPnWycQve/vqHLo0F2Dyt0wOMvG6 gEy9ooA+9vjgnK0nF/e3RKHL6aH7XDCqc1tkXo5qq0cNxahU0NFD+HvnGjbeS2nFRwpEa jA7q5q+ytI8GUX6DxnddfsyS9t6K7QGV4am/32d4PAc83km4ZlErXyH52+CFk7IPNJ6Uw FiZpAZ4wTsnFGfvVtj7aDFlS1HCPubzXBMFc+vM54yqpdQK3nAmGlYkccbkSpgHpvTw== 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.78.233 Received: from mailout2.hostsharing.net (mailout2.hostsharing.net [83.223.78.233]) (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 D81F0606A31A for ; Sun, 15 Nov 2026 18:07:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D81F0606A31A 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 [IPv6:2a01:37:1000::53df:5f1c:0]) (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 mailout2.hostsharing.net (Postfix) with ESMTPS id 5B0793A2B; Sun, 15 Nov 2026 19:07:06 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 33E276024661; Sun, 15 Nov 2026 19:07:06 +0100 (CET) Date: Sun, 15 Nov 2026 19:07:06 +0100 From: Lukas Wunner To: Kuppuswamy Sathyanarayanan Cc: Bjorn Helgaas , Raag Jadav , Riana Tauro , Yury Murashka , Matthew W Carlis , linux-pci@vger.kernel.org, Mahesh J Salgaonkar , Oliver OHalloran , linuxppc-dev@lists.ozlabs.org, Aravind Iddamsetty , Srinivasa Adatrao , Terry Bowman , Keith Busch Subject: Re: [PATCH 2/7] PCI/DPC: Reinstate support for AER-incapable ports Message-ID: References: <2ce502e5caa57db01e0a7bbc781210b66b73bec8.1790531238.git.lukas@wunner.de> <02a33171-b901-400b-921a-c40fe167b424@linux.intel.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: <02a33171-b901-400b-921a-c40fe167b424@linux.intel.com> On Tue, Sep 29, 2026 at 12:04:32PM -0700, Kuppuswamy Sathyanarayanan wrote: > On 9/27/2026 11:02 AM, Lukas Wunner wrote: > > Downstream Port Containment does not mandate presence of an Advanced Error > > Reporting capability, so a Downstream Port may support DPC, but not AER > > (PCIe r7.1 sec 6.2.11.2). > > > > Commit 708b20003624 ("PCI/AER: Remove HEST/FIRMWARE_FIRST parsing for AER > > ownership") seemingly inadvertently constrained DPC to AER-supporting > > Downstream Ports by inserting a call to pcie_aer_is_native() in > > dpc_probe(), which implicitly checks for presence of an AER capability. > > > > Drop the call. [...] > I don't think 708b20003624 changed behavior here. At the time, > get_port_device_capability() only instantiated the DPC service if > pcie_ports_dpc_native was set or the AER service was instantiated, > and the latter required dev->aer_cap and native AER control There are two separate issues preventing DPC on non-AER-capable ports: - Commit 4e5fad429bd1 ("PCI/DPC: Do not enable DPC if AER control is not allowed by the BIOS") inserted a problematic check in get_port_device_capability(). This was fixed by 97ca178c899d ("PCI/DPC: Allow DPC on all Downstream Ports when OS controls AER"), which is tagged for stable but missing a Fixes tag. - Commit 708b20003624 ("PCI/AER: Remove HEST/FIRMWARE_FIRST parsing for AER ownership") inserted a problematic check in dpc_probe(). This is fixed by the present patch. You're right that 708b20003624 did not change behavior, but I still think that it is the correct commit to cite in the Fixes tag. If I would instead reference 97ca178c899d (as you suggest), it would be picked up by stable maintainers for all stable kernels containing 97ca178c899d. The combination of both patches would then reinstate DPC on non-AER-capable ports. Great. However that commit did not actually break anything, so it doesn't feel right to put it in a Fixes tag. So I tend to keep the Fixes tag as it is. Let me know if you disagree. > Also, for stable kernels, is there any way to note that this patch needs > to be picked with patch 1. Otherwise DPC driver might access AER config > without aer_cap. The syntax specified in Documentation/process/stable-kernel-rules.rst looks like this: Cc: # 3.3.x: a1f84a3: sched: Check for idle Cc: # 3.3.x: 1b9508f: sched: Rate-limit newidle Cc: # 3.3.x: fd21073: sched: Fix affinity logic Cc: # 3.3.x However the SHA-1 hash of the first patch in the series isn't known until the patch is applied and the maintainer would then have to manually update the referenced SHA-1 in the second patch when applying it, which is tedious. In practice, I've found that this doesn't work and the best one can do is keep an eye on Sasha's and Greg's e-mails when they apply patches and alert them whenever something is wrong or missing. Thanks, Lukas