lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aTfTiBy1GoJIFqtJ@wunner.de>
Date: Tue, 9 Dec 2025 08:45:12 +0100
From: Lukas Wunner <lukas@...ner.de>
To: Darshit Shah <darnshah@...zon.de>
Cc: Jonthan.Cameron@...wei.com, bhelgaas@...gle.com, darnir@....org,
	feng.tang@...ux.alibaba.com, kwilczynski@...nel.org,
	linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org,
	nh-open-source@...zon.com,
	sathyanarayanan.kuppuswamy@...ux.intel.com,
	Keith Busch <kbusch@...nel.org>, Olof Johansson <olof@...om.net>
Subject: Re: [PATCH v2 1/1] drivers/pci: Decouple DPC from AER service

[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@...ner.de>

Thanks,

Lukas

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ