blob: 4bef5c2bae9f587e5739b3cb8b57a4fc270b7681 [file] [log] [blame]
Bjorn Helgaas7328c8f2018-01-26 11:45:16 -06001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# PCI configuration
4#
Bogicevic Sasa5f8fc432016-02-03 13:24:22 -08005
Christoph Hellwigeb01d422018-11-15 20:05:32 +01006# select this to offer the PCI prompt
7config HAVE_PCI
8 bool
9
10# select this to unconditionally force on PCI support
11config FORCE_PCI
12 bool
13 select HAVE_PCI
14 select PCI
15
16menuconfig PCI
17 bool "PCI support"
18 depends on HAVE_PCI
19 help
20 This option enables support for the PCI local bus, including
21 support for PCI-X and the foundations for PCI Express support.
22 Say 'Y' here unless you know what you are doing.
23
Rob Herring2e8cb2c2019-01-14 15:35:46 -060024if PCI
25
Christoph Hellwig2eac9c22018-11-15 20:05:33 +010026config PCI_DOMAINS
27 bool
28 depends on PCI
29
30config PCI_DOMAINS_GENERIC
31 bool
Christoph Hellwig2eac9c22018-11-15 20:05:33 +010032 select PCI_DOMAINS
33
Christoph Hellwig20f1b792018-11-15 20:05:34 +010034config PCI_SYSCALL
35 bool
36
Bogicevic Sasa5f8fc432016-02-03 13:24:22 -080037source "drivers/pci/pcie/Kconfig"
38
Linus Torvalds1da177e2005-04-16 15:20:36 -070039config PCI_MSI
40 bool "Message Signaled Interrupts (MSI and MSI-X)"
Jiang Liu38b6a1c2014-11-12 12:11:25 +010041 select GENERIC_MSI_IRQ
Linus Torvalds1da177e2005-04-16 15:20:36 -070042 help
43 This allows device drivers to enable MSI (Message Signaled
44 Interrupts). Message Signaled Interrupts enable a device to
45 generate an interrupt using an inbound Memory Write on its
46 PCI bus instead of asserting a device IRQ pin.
47
Matthew Wilcox309e57d2006-03-05 22:33:34 -070048 Use of PCI MSI interrupts can be disabled at kernel boot time
49 by using the 'pci=nomsi' option. This disables MSI for the
50 entire system.
51
Jesse Barnes31961802010-04-08 09:38:47 -070052 If you don't know what to do here, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -070053
Jiang Liu3878eae2014-11-11 21:02:18 +080054config PCI_MSI_IRQ_DOMAIN
Palmer Dabbelt191d6f92019-10-25 08:10:38 +020055 def_bool y
Jiang Liu3878eae2014-11-11 21:02:18 +080056 depends on PCI_MSI
57 select GENERIC_MSI_IRQ_DOMAIN
58
Randy Dunlap03ea2262017-11-02 15:14:02 -070059config PCI_QUIRKS
60 default y
61 bool "Enable PCI quirk workarounds" if EXPERT
Randy Dunlap03ea2262017-11-02 15:14:02 -070062 help
63 This enables workarounds for various PCI chipset bugs/quirks.
64 Disable this only if your target machine is unaffected by PCI
65 quirks.
66
Linus Torvalds1da177e2005-04-16 15:20:36 -070067config PCI_DEBUG
68 bool "PCI Debugging"
Rob Herring2e8cb2c2019-01-14 15:35:46 -060069 depends on DEBUG_KERNEL
Linus Torvalds1da177e2005-04-16 15:20:36 -070070 help
71 Say Y here if you want the PCI core to produce a bunch of debug
72 messages to the system log. Select this if you are having a
73 problem with PCI support and want to see more of what is going on.
74
75 When in doubt, say N.
76
Yinghai Lub07f2eb2012-02-23 19:23:32 -080077config PCI_REALLOC_ENABLE_AUTO
78 bool "Enable PCI resource re-allocation detection"
Sascha El-Sharkawyad581f82017-09-20 08:44:20 +020079 depends on PCI_IOV
Yinghai Lub07f2eb2012-02-23 19:23:32 -080080 help
81 Say Y here if you want the PCI core to detect if PCI resource
82 re-allocation needs to be enabled. You can always use pci=realloc=on
Sascha El-Sharkawyad581f82017-09-20 08:44:20 +020083 or pci=realloc=off to override it. It will automatically
84 re-allocate PCI resources if SR-IOV BARs have not been allocated by
85 the BIOS.
Yinghai Lub07f2eb2012-02-23 19:23:32 -080086
87 When in doubt, say N.
88
Chris Wrightc70e0d92008-11-25 21:17:13 -080089config PCI_STUB
90 tristate "PCI Stub driver"
Chris Wrightc70e0d92008-11-25 21:17:13 -080091 help
92 Say Y or M here if you want be able to reserve a PCI device
93 when it is going to be assigned to a guest operating system.
94
95 When in doubt, say N.
96
Alexander Duycka8ccf8a2018-04-24 16:47:16 -050097config PCI_PF_STUB
98 tristate "PCI PF Stub driver"
Alexander Duycka8ccf8a2018-04-24 16:47:16 -050099 depends on PCI_IOV
100 help
101 Say Y or M here if you want to enable support for devices that
Randy Dunlap4a57f582018-11-05 14:53:21 -0600102 require SR-IOV support, while at the same time the PF (Physical
103 Function) itself is not providing any actual services on the
104 host itself such as storage or networking.
Alexander Duycka8ccf8a2018-04-24 16:47:16 -0500105
106 When in doubt, say N.
107
Ryan Wilson956a9202010-08-02 21:31:05 -0400108config XEN_PCIDEV_FRONTEND
Krzysztof Kozlowski36533f32019-11-20 21:40:36 +0800109 tristate "Xen PCI Frontend"
110 depends on X86 && XEN
111 select PCI_XEN
Konrad Rzeszutek Wilkfce263c2010-12-10 22:33:15 -0500112 select XEN_XENBUS_FRONTEND
Krzysztof Kozlowski36533f32019-11-20 21:40:36 +0800113 default y
114 help
115 The PCI device frontend driver allows the kernel to import arbitrary
116 PCI devices from a PCI backend to support PCI driver domains.
Ryan Wilson956a9202010-08-02 21:31:05 -0400117
Joerg Roedeldb3c33c2011-09-27 15:57:13 +0200118config PCI_ATS
119 bool
120
Jayachandran C35ff9472016-05-10 17:19:51 +0200121config PCI_ECAM
122 bool
123
Thomas Gleixner714fe382017-03-16 22:50:06 +0100124config PCI_LOCKLESS_CONFIG
125 bool
126
Thomas Petazzoni23a5fba2018-10-18 17:37:16 +0200127config PCI_BRIDGE_EMUL
128 bool
129
Yu Zhaod1b054d2009-03-20 11:25:11 +0800130config PCI_IOV
131 bool "PCI IOV support"
Joerg Roedeldb3c33c2011-09-27 15:57:13 +0200132 select PCI_ATS
Yu Zhaod1b054d2009-03-20 11:25:11 +0800133 help
134 I/O Virtualization is a PCI feature supported by some devices
135 which allows them to create virtual devices which share their
136 physical resources.
137
138 If unsure, say N.
Bjorn Helgaas204d49a2009-10-26 11:20:47 -0600139
Joerg Roedelc320b972011-09-27 15:57:15 +0200140config PCI_PRI
141 bool "PCI PRI support"
142 select PCI_ATS
143 help
144 PRI is the PCI Page Request Interface. It allows PCI devices that are
145 behind an IOMMU to recover from page faults.
146
147 If unsure, say N.
148
Joerg Roedel086ac112011-09-27 15:57:16 +0200149config PCI_PASID
150 bool "PCI PASID support"
Joerg Roedel086ac112011-09-27 15:57:16 +0200151 select PCI_ATS
152 help
153 Process Address Space Identifiers (PASIDs) can be used by PCI devices
154 to access more than one IO address space at the same time. To make
155 use of this feature an IOMMU is required which also supports PASIDs.
156 Select this option if you have such an IOMMU and want to compile the
157 driver for it into your kernel.
158
159 If unsure, say N.
160
Logan Gunthorpe52916982018-10-04 15:27:35 -0600161config PCI_P2PDMA
162 bool "PCI peer-to-peer transfer support"
Rob Herring2e8cb2c2019-01-14 15:35:46 -0600163 depends on ZONE_DEVICE
Logan Gunthorpe52916982018-10-04 15:27:35 -0600164 select GENERIC_ALLOCATOR
165 help
166 Enableѕ drivers to do PCI peer-to-peer transactions to and from
167 BARs that are exposed in other devices that are the part of
168 the hierarchy where peer-to-peer DMA is guaranteed by the PCI
169 specification to work (ie. anything below a single PCI bridge).
170
171 Many PCIe root complexes do not support P2P transactions and
172 it's hard to tell which support it at all, so at this time,
Bjorn Helgaasd1bbf382019-07-30 08:04:00 -0500173 P2P DMA transactions must be between devices behind the same root
Logan Gunthorpe52916982018-10-04 15:27:35 -0600174 port.
175
176 If unsure, say N.
177
Randy Dunlap8a226e02011-03-29 09:45:57 -0700178config PCI_LABEL
179 def_bool y if (DMI || ACPI)
180 select NLS
Thomas Petazzoni45361a42013-05-16 17:55:22 +0200181
Jake Oshins4daace02016-02-16 21:56:23 +0000182config PCI_HYPERV
Krzysztof Kozlowski36533f32019-11-20 21:40:36 +0800183 tristate "Hyper-V PCI Frontend"
184 depends on X86_64 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && SYSFS
Haiyang Zhang348dd932019-08-22 05:05:41 +0000185 select PCI_HYPERV_INTERFACE
Krzysztof Kozlowski36533f32019-11-20 21:40:36 +0800186 help
187 The PCI device frontend driver allows the kernel to import arbitrary
188 PCI devices from a PCI backend to support PCI driver domains.
Jake Oshins4daace02016-02-16 21:56:23 +0000189
Tero Roponen30b5b882016-03-21 09:26:41 +0200190source "drivers/pci/hotplug/Kconfig"
Shawn Lin6e0832f2018-05-31 09:12:37 +0800191source "drivers/pci/controller/Kconfig"
Kishon Vijay Abraham I5e8cb402017-04-10 19:25:10 +0530192source "drivers/pci/endpoint/Kconfig"
Logan Gunthorpe080b47d2017-03-06 18:30:54 -0600193source "drivers/pci/switch/Kconfig"
Rob Herring2e8cb2c2019-01-14 15:35:46 -0600194
195endif