xref: /openbmc/linux/drivers/pci/pcie/Kconfig (revision 12eb4683)
1#
2# PCI Express Port Bus Configuration
3#
4config PCIEPORTBUS
5	bool "PCI Express Port Bus support"
6	depends on PCI
7	help
8	  This automatically enables PCI Express Port Bus support. Users can
9	  choose Native Hot-Plug support, Advanced Error Reporting support,
10	  Power Management Event support and Virtual Channel support to run
11	  on PCI Express Ports (Root or Switch).
12
13#
14# Include service Kconfig here
15#
16config HOTPLUG_PCI_PCIE
17	bool "PCI Express Hotplug driver"
18	depends on HOTPLUG_PCI && PCIEPORTBUS
19	help
20	  Say Y here if you have a motherboard that supports PCI Express Native
21	  Hotplug
22
23	  When in doubt, say N.
24
25source "drivers/pci/pcie/aer/Kconfig"
26
27#
28# PCI Express ASPM
29#
30config PCIEASPM
31	bool "PCI Express ASPM control" if EXPERT
32	depends on PCI && PCIEPORTBUS
33	default y
34	help
35	  This enables OS control over PCI Express ASPM (Active State
36	  Power Management) and Clock Power Management. ASPM supports
37	  state L0/L0s/L1.
38
39	  ASPM is initially set up by the firmware. With this option enabled,
40	  Linux can modify this state in order to disable ASPM on known-bad
41	  hardware or configurations and enable it when known-safe.
42
43	  ASPM can be disabled or enabled at runtime via
44	  /sys/module/pcie_aspm/parameters/policy
45
46	  When in doubt, say Y.
47config PCIEASPM_DEBUG
48	bool "Debug PCI Express ASPM"
49	depends on PCIEASPM
50	default n
51	help
52	  This enables PCI Express ASPM debug support. It will add per-device
53	  interface to control ASPM.
54
55choice
56	prompt "Default ASPM policy"
57	default PCIEASPM_DEFAULT
58	depends on PCIEASPM
59
60config PCIEASPM_DEFAULT
61        bool "BIOS default"
62	depends on PCIEASPM
63	help
64	  Use the BIOS defaults for PCI Express ASPM.
65
66config PCIEASPM_POWERSAVE
67        bool "Powersave"
68	depends on PCIEASPM
69	help
70	  Enable PCI Express ASPM L0s and L1 where possible, even if the
71	  BIOS did not.
72
73config PCIEASPM_PERFORMANCE
74        bool "Performance"
75	depends on PCIEASPM
76	help
77	  Disable PCI Express ASPM L0s and L1, even if the BIOS enabled them.
78endchoice
79
80config PCIE_PME
81	def_bool y
82	depends on PCIEPORTBUS && PM_RUNTIME
83