From: Lukas Wunner <lukas@wunner.de>
To: Darshit Shah <darnshah@amazon.de>
Cc: Jonthan.Cameron@huawei.com, bhelgaas@google.com, darnir@gnu.org,
feng.tang@linux.alibaba.com, kwilczynski@kernel.org,
linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
nh-open-source@amazon.com,
sathyanarayanan.kuppuswamy@linux.intel.com,
Keith Busch <kbusch@kernel.org>, Olof Johansson <olof@lixom.net>
Subject: Re: [PATCH v2 1/1] drivers/pci: Decouple DPC from AER service
Date: Tue, 9 Dec 2025 08:45:12 +0100 [thread overview]
Message-ID: <aTfTiBy1GoJIFqtJ@wunner.de> (raw)
In-Reply-To: <20251208112545.21315-2-darnshah@amazon.de>
[cc += Keith, Olaf; start of thread is here:
https://lore.kernel.org/all/20251208112545.21315-1-darnshah@amazon.de/
]
On Mon, Dec 08, 2025 at 11:25:45AM +0000, Darshit Shah wrote:
> According to [1] it is recommended that the Operating System link the
Minor stylistic issue: We generally refer to the latest spec revision,
the reference at [1] doesn't mention the title of the Implementation Note
and personally I find it easier to read the commit message if references
are provided inline, so I'd recommend:
According to PCIe r7.0, sec 6.2.11, "Implementation Note: Determination
of DPC Control", it is recommended that ...
> +++ b/drivers/pci/pcie/portdrv.c
> @@ -264,7 +264,7 @@ static int get_port_device_capability(struct pci_dev *dev)
> */
> if (pci_find_ext_capability(dev, PCI_EXT_CAP_ID_DPC) &&
> pci_aer_available() &&
> - (pcie_ports_dpc_native || (services & PCIE_PORT_SERVICE_AER)))
> + (host->native_aer || pcie_ports_dpc_native))
> services |= PCIE_PORT_SERVICE_DPC;
>
> /* Enable bandwidth control if more than one speed is supported. */
Somewhat tangential, I note that the pci_aer_available() check results
in DPC not being handled by Linux if pci=nomsi is specified on the
command line. However PCIe r7.0 sec 6.2.11.1 explicitly mentions
use of INTx for DPC, suggesting that MSI support is not required.
Either case, your change looks reasonable to me, so:
Reviewed-by: Lukas Wunner <lukas@wunner.de>
Thanks,
Lukas
next prev parent reply other threads:[~2025-12-09 7:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-28 12:20 [PATCH] drivers/pci: Allow attaching AER to non-RP devices that support MSI Darshit Shah
2025-11-28 17:07 ` Lukas Wunner
2025-12-08 11:25 ` [PATCH v2 0/1] " Darshit Shah
2025-12-08 11:25 ` [PATCH v2 1/1] drivers/pci: Decouple DPC from AER service Darshit Shah
2025-12-09 7:45 ` Lukas Wunner [this message]
2025-12-11 16:42 ` [PATCH v3] " Darshit Shah
2026-02-28 23:59 ` Darshit Shah
2025-12-09 15:29 ` [PATCH v2 1/1] " Sathyanarayanan Kuppuswamy
2025-12-09 0:30 ` [PATCH] drivers/pci: Allow attaching AER to non-RP devices that support MSI Bjorn Helgaas
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=aTfTiBy1GoJIFqtJ@wunner.de \
--to=lukas@wunner.de \
--cc=Jonthan.Cameron@huawei.com \
--cc=bhelgaas@google.com \
--cc=darnir@gnu.org \
--cc=darnshah@amazon.de \
--cc=feng.tang@linux.alibaba.com \
--cc=kbusch@kernel.org \
--cc=kwilczynski@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=nh-open-source@amazon.com \
--cc=olof@lixom.net \
--cc=sathyanarayanan.kuppuswamy@linux.intel.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