PCI: Enable Configuration RRS SV early
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 3 Mar 2025 21:02:17 +0000 (15:02 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 10 Mar 2025 18:41:39 +0000 (13:41 -0500)
commit3f8c4959fc18e477801386a625e726c59f52a2c4
treeaa53c39c7be91ab779de85204f33ec11dff6856a
parent2014c95afecee3e76ca4a56956a936e23283f05b
PCI: Enable Configuration RRS SV early

Following a reset, a Function may respond to Config Requests with Request
Retry Status (RRS) Completion Status to indicate that it is temporarily
unable to process the Request, but will be able to process the Request in
the future (PCIe r6.0, sec 2.3.1).

If the Configuration RRS Software Visibility feature is enabled and a Root
Complex receives RRS for a config read of the Vendor ID, the Root Complex
completes the Request to the host by returning PCI_VENDOR_ID_PCI_SIG,
0x0001 (sec 2.3.2).

The Config RRS SV feature applies only to Root Ports and is not directly
related to pci_scan_bridge_extend().  Move the RRS SV enable to
set_pcie_port_type() where we handle other PCIe-specific configuration.

Link: https://lore.kernel.org/r/20250303210217.199504-1-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c