LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lukas Wunner <lukas@wunner.de>
To: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: Bjorn Helgaas <helgaas@kernel.org>,
	Raag Jadav <raag.jadav@intel.com>,
	Riana Tauro <riana.tauro@intel.com>,
	Yury Murashka <yurypm@arista.com>,
	Matthew W Carlis <mattc@purestorage.com>,
	linux-pci@vger.kernel.org,
	Mahesh J Salgaonkar <mahesh@linux.ibm.com>,
	Oliver OHalloran <oohall@gmail.com>,
	linuxppc-dev@lists.ozlabs.org,
	Aravind Iddamsetty <aravind.iddamsetty@intel.com>,
	Srinivasa Adatrao <srinivasa.adatrao@intel.com>,
	Terry Bowman <terry.bowman@amd.com>,
	Keith Busch <kbusch@kernel.org>
Subject: Re: [PATCH 2/7] PCI/DPC: Reinstate support for AER-incapable ports
Date: Sun, 15 Nov 2026 19:07:06 +0100	[thread overview]
Message-ID: <avn0yqCrX0uZl_a1@wunner.de> (raw)
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: <stable@vger.kernel.org> # 3.3.x: a1f84a3: sched: Check for idle
    Cc: <stable@vger.kernel.org> # 3.3.x: 1b9508f: sched: Rate-limit newidle
    Cc: <stable@vger.kernel.org> # 3.3.x: fd21073: sched: Fix affinity logic
    Cc: <stable@vger.kernel.org> # 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


  reply	other threads:[~2026-11-15 18:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-27 18:02 [PATCH 0/7] Error reporting for AER-incapable devices Lukas Wunner
2026-09-27 18:02 ` [PATCH 1/7] PCI/DPC: Avoid access to non-existent AER capability Lukas Wunner
2026-09-29 18:49   ` Kuppuswamy Sathyanarayanan
2026-11-15 17:49     ` Lukas Wunner
2026-09-27 18:02 ` [PATCH 2/7] PCI/DPC: Reinstate support for AER-incapable ports Lukas Wunner
2026-09-29 19:04   ` Kuppuswamy Sathyanarayanan
2026-11-15 18:07     ` Lukas Wunner [this message]
2026-09-27 18:02 ` [PATCH 3/7] PCI/ERR: Avoid stale error status bits on recovery failure Lukas Wunner
2026-09-29 19:20   ` Kuppuswamy Sathyanarayanan
2026-09-27 18:02 ` [PATCH 4/7] PCI/AER: Drop AER native check from handles_cxl_errors() Lukas Wunner
2026-09-28 20:58   ` Bowman, Terry
2026-11-16 14:06     ` Tauro, Riana
2026-11-16 16:54       ` Lukas Wunner
2026-09-29 19:24   ` Kuppuswamy Sathyanarayanan
2026-09-27 18:02 ` [PATCH 5/7] PCI/AER: Move AER capability check out of pcie_aer_is_native() Lukas Wunner
2026-09-29 19:47   ` Kuppuswamy Sathyanarayanan
2026-11-16 11:58     ` Lukas Wunner
2026-09-27 18:02 ` [PATCH 6/7] PCI/AER: Renumber severity constants Lukas Wunner
2026-09-29 19:55   ` Kuppuswamy Sathyanarayanan
2026-09-27 18:02 ` [PATCH 7/7] PCI/AER: Enable baseline capability error reporting Lukas Wunner
2026-09-29 21:01   ` Kuppuswamy Sathyanarayanan
2026-09-30  7:08     ` Lukas Wunner
2026-10-01 17:44       ` Kuppuswamy Sathyanarayanan

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=avn0yqCrX0uZl_a1@wunner.de \
    --to=lukas@wunner.de \
    --cc=aravind.iddamsetty@intel.com \
    --cc=helgaas@kernel.org \
    --cc=kbusch@kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mahesh@linux.ibm.com \
    --cc=mattc@purestorage.com \
    --cc=oohall@gmail.com \
    --cc=raag.jadav@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=srinivasa.adatrao@intel.com \
    --cc=terry.bowman@amd.com \
    --cc=yurypm@arista.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