xref: /linux/drivers/pci/Kconfig (revision 2eac9c2dfb2b9660d592abbf3d172ebcb0af3719)
17328c8f4SBjorn Helgaas# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# PCI configuration
41da177e4SLinus Torvalds#
55f8fc432SBogicevic Sasa
6eb01d42aSChristoph Hellwig# select this to offer the PCI prompt
7eb01d42aSChristoph Hellwigconfig HAVE_PCI
8eb01d42aSChristoph Hellwig	bool
9eb01d42aSChristoph Hellwig
10eb01d42aSChristoph Hellwig# select this to unconditionally force on PCI support
11eb01d42aSChristoph Hellwigconfig FORCE_PCI
12eb01d42aSChristoph Hellwig	bool
13eb01d42aSChristoph Hellwig	select HAVE_PCI
14eb01d42aSChristoph Hellwig	select PCI
15eb01d42aSChristoph Hellwig
16eb01d42aSChristoph Hellwigmenuconfig PCI
17eb01d42aSChristoph Hellwig	bool "PCI support"
18eb01d42aSChristoph Hellwig	depends on HAVE_PCI
19eb01d42aSChristoph Hellwig	help
20eb01d42aSChristoph Hellwig	  This option enables support for the PCI local bus, including
21eb01d42aSChristoph Hellwig	  support for PCI-X and the foundations for PCI Express support.
22eb01d42aSChristoph Hellwig	  Say 'Y' here unless you know what you are doing.
23eb01d42aSChristoph Hellwig
24*2eac9c2dSChristoph Hellwigconfig PCI_DOMAINS
25*2eac9c2dSChristoph Hellwig	bool
26*2eac9c2dSChristoph Hellwig	depends on PCI
27*2eac9c2dSChristoph Hellwig
28*2eac9c2dSChristoph Hellwigconfig PCI_DOMAINS_GENERIC
29*2eac9c2dSChristoph Hellwig	bool
30*2eac9c2dSChristoph Hellwig	depends on PCI
31*2eac9c2dSChristoph Hellwig	select PCI_DOMAINS
32*2eac9c2dSChristoph Hellwig
335f8fc432SBogicevic Sasasource "drivers/pci/pcie/Kconfig"
345f8fc432SBogicevic Sasa
351da177e4SLinus Torvaldsconfig PCI_MSI
361da177e4SLinus Torvalds	bool "Message Signaled Interrupts (MSI and MSI-X)"
371da177e4SLinus Torvalds	depends on PCI
3838b6a1cfSJiang Liu	select GENERIC_MSI_IRQ
391da177e4SLinus Torvalds	help
401da177e4SLinus Torvalds	   This allows device drivers to enable MSI (Message Signaled
411da177e4SLinus Torvalds	   Interrupts).  Message Signaled Interrupts enable a device to
421da177e4SLinus Torvalds	   generate an interrupt using an inbound Memory Write on its
431da177e4SLinus Torvalds	   PCI bus instead of asserting a device IRQ pin.
441da177e4SLinus Torvalds
45309e57dfSMatthew Wilcox	   Use of PCI MSI interrupts can be disabled at kernel boot time
46309e57dfSMatthew Wilcox	   by using the 'pci=nomsi' option.  This disables MSI for the
47309e57dfSMatthew Wilcox	   entire system.
48309e57dfSMatthew Wilcox
493196180aSJesse Barnes	   If you don't know what to do here, say Y.
501da177e4SLinus Torvalds
513878eaefSJiang Liuconfig PCI_MSI_IRQ_DOMAIN
52f8430eaeSJoao Pinto	def_bool ARC || ARM || ARM64 || X86
533878eaefSJiang Liu	depends on PCI_MSI
543878eaefSJiang Liu	select GENERIC_MSI_IRQ_DOMAIN
553878eaefSJiang Liu
5603ea2263SRandy Dunlapconfig PCI_QUIRKS
5703ea2263SRandy Dunlap	default y
5803ea2263SRandy Dunlap	bool "Enable PCI quirk workarounds" if EXPERT
5903ea2263SRandy Dunlap	depends on PCI
6003ea2263SRandy Dunlap	help
6103ea2263SRandy Dunlap	  This enables workarounds for various PCI chipset bugs/quirks.
6203ea2263SRandy Dunlap	  Disable this only if your target machine is unaffected by PCI
6303ea2263SRandy Dunlap	  quirks.
6403ea2263SRandy Dunlap
651da177e4SLinus Torvaldsconfig PCI_DEBUG
661da177e4SLinus Torvalds	bool "PCI Debugging"
671da177e4SLinus Torvalds	depends on PCI && DEBUG_KERNEL
681da177e4SLinus Torvalds	help
691da177e4SLinus Torvalds	  Say Y here if you want the PCI core to produce a bunch of debug
701da177e4SLinus Torvalds	  messages to the system log.  Select this if you are having a
711da177e4SLinus Torvalds	  problem with PCI support and want to see more of what is going on.
721da177e4SLinus Torvalds
731da177e4SLinus Torvalds	  When in doubt, say N.
741da177e4SLinus Torvalds
75b07f2ebcSYinghai Luconfig PCI_REALLOC_ENABLE_AUTO
76b07f2ebcSYinghai Lu	bool "Enable PCI resource re-allocation detection"
77b07f2ebcSYinghai Lu	depends on PCI
78ad581f86SSascha El-Sharkawy	depends on PCI_IOV
79b07f2ebcSYinghai Lu	help
80b07f2ebcSYinghai Lu	  Say Y here if you want the PCI core to detect if PCI resource
81b07f2ebcSYinghai Lu	  re-allocation needs to be enabled. You can always use pci=realloc=on
82ad581f86SSascha El-Sharkawy	  or pci=realloc=off to override it.  It will automatically
83ad581f86SSascha El-Sharkawy	  re-allocate PCI resources if SR-IOV BARs have not been allocated by
84ad581f86SSascha El-Sharkawy	  the BIOS.
85b07f2ebcSYinghai Lu
86b07f2ebcSYinghai Lu	  When in doubt, say N.
87b07f2ebcSYinghai Lu
88c70e0d9dSChris Wrightconfig PCI_STUB
89c70e0d9dSChris Wright	tristate "PCI Stub driver"
90c70e0d9dSChris Wright	depends on PCI
91c70e0d9dSChris Wright	help
92c70e0d9dSChris Wright	  Say Y or M here if you want be able to reserve a PCI device
93c70e0d9dSChris Wright	  when it is going to be assigned to a guest operating system.
94c70e0d9dSChris Wright
95c70e0d9dSChris Wright	  When in doubt, say N.
96c70e0d9dSChris Wright
97a8ccf8a6SAlexander Duyckconfig PCI_PF_STUB
98a8ccf8a6SAlexander Duyck	tristate "PCI PF Stub driver"
99a8ccf8a6SAlexander Duyck	depends on PCI
100a8ccf8a6SAlexander Duyck	depends on PCI_IOV
101a8ccf8a6SAlexander Duyck	help
102a8ccf8a6SAlexander Duyck	  Say Y or M here if you want to enable support for devices that
103a8ccf8a6SAlexander Duyck	  require SR-IOV support, while at the same time the PF itself is
104a8ccf8a6SAlexander Duyck	  not providing any actual services on the host itself such as
105a8ccf8a6SAlexander Duyck	  storage or networking.
106a8ccf8a6SAlexander Duyck
107a8ccf8a6SAlexander Duyck	  When in doubt, say N.
108a8ccf8a6SAlexander Duyck
109956a9202SRyan Wilsonconfig XEN_PCIDEV_FRONTEND
110956a9202SRyan Wilson        tristate "Xen PCI Frontend"
111956a9202SRyan Wilson        depends on PCI && X86 && XEN
112956a9202SRyan Wilson        select PCI_XEN
113fce263c1SKonrad Rzeszutek Wilk	select XEN_XENBUS_FRONTEND
114956a9202SRyan Wilson        default y
115956a9202SRyan Wilson        help
116956a9202SRyan Wilson          The PCI device frontend driver allows the kernel to import arbitrary
117956a9202SRyan Wilson          PCI devices from a PCI backend to support PCI driver domains.
118956a9202SRyan Wilson
119db3c33c6SJoerg Roedelconfig PCI_ATS
120db3c33c6SJoerg Roedel	bool
121db3c33c6SJoerg Roedel
12235ff9477SJayachandran Cconfig PCI_ECAM
12335ff9477SJayachandran C	bool
12435ff9477SJayachandran C
125714fe383SThomas Gleixnerconfig PCI_LOCKLESS_CONFIG
126714fe383SThomas Gleixner	bool
127714fe383SThomas Gleixner
12823a5fba4SThomas Petazzoniconfig PCI_BRIDGE_EMUL
12923a5fba4SThomas Petazzoni	bool
13023a5fba4SThomas Petazzoni
131d1b054daSYu Zhaoconfig PCI_IOV
132d1b054daSYu Zhao	bool "PCI IOV support"
133d1b054daSYu Zhao	depends on PCI
134db3c33c6SJoerg Roedel	select PCI_ATS
135d1b054daSYu Zhao	help
136d1b054daSYu Zhao	  I/O Virtualization is a PCI feature supported by some devices
137d1b054daSYu Zhao	  which allows them to create virtual devices which share their
138d1b054daSYu Zhao	  physical resources.
139d1b054daSYu Zhao
140d1b054daSYu Zhao	  If unsure, say N.
141204d49a5SBjorn Helgaas
142c320b976SJoerg Roedelconfig PCI_PRI
143c320b976SJoerg Roedel	bool "PCI PRI support"
144c54420d3SJoerg Roedel	depends on PCI
145c320b976SJoerg Roedel	select PCI_ATS
146c320b976SJoerg Roedel	help
147c320b976SJoerg Roedel	  PRI is the PCI Page Request Interface. It allows PCI devices that are
148c320b976SJoerg Roedel	  behind an IOMMU to recover from page faults.
149c320b976SJoerg Roedel
150c320b976SJoerg Roedel	  If unsure, say N.
151c320b976SJoerg Roedel
152086ac11fSJoerg Roedelconfig PCI_PASID
153086ac11fSJoerg Roedel	bool "PCI PASID support"
154086ac11fSJoerg Roedel	depends on PCI
155086ac11fSJoerg Roedel	select PCI_ATS
156086ac11fSJoerg Roedel	help
157086ac11fSJoerg Roedel	  Process Address Space Identifiers (PASIDs) can be used by PCI devices
158086ac11fSJoerg Roedel	  to access more than one IO address space at the same time. To make
159086ac11fSJoerg Roedel	  use of this feature an IOMMU is required which also supports PASIDs.
160086ac11fSJoerg Roedel	  Select this option if you have such an IOMMU and want to compile the
161086ac11fSJoerg Roedel	  driver for it into your kernel.
162086ac11fSJoerg Roedel
163086ac11fSJoerg Roedel	  If unsure, say N.
164086ac11fSJoerg Roedel
16552916982SLogan Gunthorpeconfig PCI_P2PDMA
16652916982SLogan Gunthorpe	bool "PCI peer-to-peer transfer support"
16752916982SLogan Gunthorpe	depends on PCI && ZONE_DEVICE
16852916982SLogan Gunthorpe	select GENERIC_ALLOCATOR
16952916982SLogan Gunthorpe	help
17052916982SLogan Gunthorpe	  Enableѕ drivers to do PCI peer-to-peer transactions to and from
17152916982SLogan Gunthorpe	  BARs that are exposed in other devices that are the part of
17252916982SLogan Gunthorpe	  the hierarchy where peer-to-peer DMA is guaranteed by the PCI
17352916982SLogan Gunthorpe	  specification to work (ie. anything below a single PCI bridge).
17452916982SLogan Gunthorpe
17552916982SLogan Gunthorpe	  Many PCIe root complexes do not support P2P transactions and
17652916982SLogan Gunthorpe	  it's hard to tell which support it at all, so at this time,
17752916982SLogan Gunthorpe	  P2P DMA transations must be between devices behind the same root
17852916982SLogan Gunthorpe	  port.
17952916982SLogan Gunthorpe
18052916982SLogan Gunthorpe	  If unsure, say N.
18152916982SLogan Gunthorpe
1828a226e00SRandy Dunlapconfig PCI_LABEL
1838a226e00SRandy Dunlap	def_bool y if (DMI || ACPI)
1849de0eec2SCyrille Pitchen	depends on PCI
1858a226e00SRandy Dunlap	select NLS
18645361a4fSThomas Petazzoni
1874daace0dSJake Oshinsconfig PCI_HYPERV
1884daace0dSJake Oshins        tristate "Hyper-V PCI Frontend"
1894daace0dSJake Oshins        depends on PCI && X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64
1904daace0dSJake Oshins        help
1914daace0dSJake Oshins          The PCI device frontend driver allows the kernel to import arbitrary
1924daace0dSJake Oshins          PCI devices from a PCI backend to support PCI driver domains.
1934daace0dSJake Oshins
19430b5b880STero Roponensource "drivers/pci/hotplug/Kconfig"
1956e0832faSShawn Linsource "drivers/pci/controller/Kconfig"
1965e8cb403SKishon Vijay Abraham Isource "drivers/pci/endpoint/Kconfig"
197080b47deSLogan Gunthorpesource "drivers/pci/switch/Kconfig"
198