Skip to content

Commit d5ceb94

Browse files
KevinXieSTFbjorn-helgaas
authored andcommitted
PCI: Add PCIE_RESET_CONFIG_DEVICE_WAIT_MS waiting time value
Add the PCIE_RESET_CONFIG_DEVICE_WAIT_MS macro to define the minimum waiting time between exit from a conventional reset and sending the first configuration request to the device. As described in PCIe r6.0, sec 6.6.1 <Conventional Reset>, there are two different use cases of the value: - "With a Downstream Port that does not support Link speeds greater than 5.0 GT/s, software must wait a minimum of 100 ms following exit from a Conventional Reset before sending a Configuration Request to the device immediately below that Port." - "With a Downstream Port that supports Link speeds greater than 5.0 GT/s, software must wait a minimum of 100 ms after Link training completes before sending a Configuration Request to the device immediately below that Port." [kwilczynski: commit log] Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Kevin Xie <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Mason Huo <[email protected]>
1 parent d76ef05 commit d5ceb94

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

drivers/pci/pci.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@
2222
*/
2323
#define PCIE_PME_TO_L2_TIMEOUT_US 10000
2424

25+
/*
26+
* PCIe r6.0, sec 6.6.1 <Conventional Reset>
27+
*
28+
* - "With a Downstream Port that does not support Link speeds greater
29+
* than 5.0 GT/s, software must wait a minimum of 100 ms following exit
30+
* from a Conventional Reset before sending a Configuration Request to
31+
* the device immediately below that Port."
32+
*
33+
* - "With a Downstream Port that supports Link speeds greater than
34+
* 5.0 GT/s, software must wait a minimum of 100 ms after Link training
35+
* completes before sending a Configuration Request to the device
36+
* immediately below that Port."
37+
*/
38+
#define PCIE_RESET_CONFIG_DEVICE_WAIT_MS 100
39+
2540
extern const unsigned char pcie_link_speed[];
2641
extern bool pci_early_dump;
2742

0 commit comments

Comments
 (0)