hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pci/pcie/Kconfig
....@@ -4,12 +4,10 @@
44 #
55 config PCIEPORTBUS
66 bool "PCI Express Port Bus support"
7
- depends on PCI
87 help
9
- This automatically enables PCI Express Port Bus support. Users can
10
- choose Native Hot-Plug support, Advanced Error Reporting support,
11
- Power Management Event support and Virtual Channel support to run
12
- on PCI Express Ports (Root or Switch).
8
+ This enables PCI Express Port Bus support. Users can then enable
9
+ support for Native Hot-Plug, Advanced Error Reporting, Power
10
+ Management Events, and Downstream Port Containment.
1311
1412 #
1513 # Include service Kconfig here
....@@ -27,7 +25,6 @@
2725 bool "PCI Express Advanced Error Reporting support"
2826 depends on PCIEPORTBUS
2927 select RAS
30
- default y
3128 help
3229 This enables PCI Express Root Port Advanced Error Reporting
3330 (AER) driver support. Error reporting messages sent to Root
....@@ -36,7 +33,7 @@
3633 config PCIEAER_INJECT
3734 tristate "PCI Express error injection support"
3835 depends on PCIEAER
39
- default n
36
+ select GENERIC_IRQ_INJECTION
4037 help
4138 This enables PCI Express Root Port Advanced Error Reporting
4239 (AER) software error injector.
....@@ -46,7 +43,7 @@
4643 error injection can fake almost all kinds of errors with the
4744 help of a user space helper tool aer-inject, which can be
4845 gotten from:
49
- http://www.kernel.org/pub/linux/utils/pci/aer-inject/
46
+ https://www.kernel.org/pub/linux/utils/pci/aer-inject/
5047
5148 #
5249 # PCI Express ECRC
....@@ -65,7 +62,6 @@
6562 #
6663 config PCIEASPM
6764 bool "PCI Express ASPM control" if EXPERT
68
- depends on PCI && PCIEPORTBUS
6965 default y
7066 help
7167 This enables OS control over PCI Express ASPM (Active State
....@@ -80,14 +76,6 @@
8076 /sys/module/pcie_aspm/parameters/policy
8177
8278 When in doubt, say Y.
83
-
84
-config PCIEASPM_DEBUG
85
- bool "Debug PCI Express ASPM"
86
- depends on PCIEASPM
87
- default n
88
- help
89
- This enables PCI Express ASPM debug support. It will add per-device
90
- interface to control ASPM.
9179
9280 choice
9381 prompt "Default ASPM policy"
....@@ -122,6 +110,12 @@
122110 Disable PCI Express ASPM L0s and L1, even if the BIOS enabled them.
123111 endchoice
124112
113
+config PCIEASPM_EXT
114
+ tristate "Extend ASPM function"
115
+ depends on PCIEASPM
116
+ help
117
+ This enables the extensions APIs for ASPM control.
118
+
125119 config PCIE_PME
126120 def_bool y
127121 depends on PCIEPORTBUS && PM
....@@ -129,7 +123,6 @@
129123 config PCIE_DPC
130124 bool "PCI Express Downstream Port Containment support"
131125 depends on PCIEPORTBUS && PCIEAER
132
- default n
133126 help
134127 This enables PCI Express Downstream Port Containment (DPC)
135128 driver support. DPC events from Root and Downstream ports
....@@ -139,11 +132,19 @@
139132
140133 config PCIE_PTM
141134 bool "PCI Express Precision Time Measurement support"
142
- default n
143
- depends on PCIEPORTBUS
144135 help
145136 This enables PCI Express Precision Time Measurement (PTM)
146137 support.
147138
148139 This is only useful if you have devices that support PTM, but it
149140 is safe to enable even if you don't.
141
+
142
+config PCIE_EDR
143
+ bool "PCI Express Error Disconnect Recover support"
144
+ depends on PCIE_DPC && ACPI
145
+ help
146
+ This option adds Error Disconnect Recover support as specified
147
+ in the Downstream Port Containment Related Enhancements ECN to
148
+ the PCI Firmware Specification r3.2. Enable this if you want to
149
+ support hybrid DPC model which uses both firmware and OS to
150
+ implement DPC.