blob: ffe7895aa8804458960eda25786cf2db35f2e376 [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
6source "drivers/pci/pcie/Kconfig"
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008config PCI_MSI
9 bool "Message Signaled Interrupts (MSI and MSI-X)"
10 depends on PCI
Jiang Liu38b6a1c2014-11-12 12:11:25 +010011 select GENERIC_MSI_IRQ
Linus Torvalds1da177e2005-04-16 15:20:36 -070012 help
13 This allows device drivers to enable MSI (Message Signaled
14 Interrupts). Message Signaled Interrupts enable a device to
15 generate an interrupt using an inbound Memory Write on its
16 PCI bus instead of asserting a device IRQ pin.
17
Matthew Wilcox309e57d2006-03-05 22:33:34 -070018 Use of PCI MSI interrupts can be disabled at kernel boot time
19 by using the 'pci=nomsi' option. This disables MSI for the
20 entire system.
21
Jesse Barnes31961802010-04-08 09:38:47 -070022 If you don't know what to do here, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
Jiang Liu3878eae2014-11-11 21:02:18 +080024config PCI_MSI_IRQ_DOMAIN
Joao Pintof8430ea2016-08-09 16:49:37 +010025 def_bool ARC || ARM || ARM64 || X86
Jiang Liu3878eae2014-11-11 21:02:18 +080026 depends on PCI_MSI
27 select GENERIC_MSI_IRQ_DOMAIN
28
Randy Dunlap03ea2262017-11-02 15:14:02 -070029config PCI_QUIRKS
30 default y
31 bool "Enable PCI quirk workarounds" if EXPERT
32 depends on PCI
33 help
34 This enables workarounds for various PCI chipset bugs/quirks.
35 Disable this only if your target machine is unaffected by PCI
36 quirks.
37
Linus Torvalds1da177e2005-04-16 15:20:36 -070038config PCI_DEBUG
39 bool "PCI Debugging"
40 depends on PCI && DEBUG_KERNEL
41 help
42 Say Y here if you want the PCI core to produce a bunch of debug
43 messages to the system log. Select this if you are having a
44 problem with PCI support and want to see more of what is going on.
45
46 When in doubt, say N.
47
Yinghai Lub07f2eb2012-02-23 19:23:32 -080048config PCI_REALLOC_ENABLE_AUTO
49 bool "Enable PCI resource re-allocation detection"
50 depends on PCI
Sascha El-Sharkawyad581f82017-09-20 08:44:20 +020051 depends on PCI_IOV
Yinghai Lub07f2eb2012-02-23 19:23:32 -080052 help
53 Say Y here if you want the PCI core to detect if PCI resource
54 re-allocation needs to be enabled. You can always use pci=realloc=on
Sascha El-Sharkawyad581f82017-09-20 08:44:20 +020055 or pci=realloc=off to override it. It will automatically
56 re-allocate PCI resources if SR-IOV BARs have not been allocated by
57 the BIOS.
Yinghai Lub07f2eb2012-02-23 19:23:32 -080058
59 When in doubt, say N.
60
Chris Wrightc70e0d92008-11-25 21:17:13 -080061config PCI_STUB
62 tristate "PCI Stub driver"
63 depends on PCI
64 help
65 Say Y or M here if you want be able to reserve a PCI device
66 when it is going to be assigned to a guest operating system.
67
68 When in doubt, say N.
69
Alexander Duycka8ccf8a2018-04-24 16:47:16 -050070config PCI_PF_STUB
71 tristate "PCI PF Stub driver"
72 depends on PCI
73 depends on PCI_IOV
74 help
75 Say Y or M here if you want to enable support for devices that
Randy Dunlap4a57f582018-11-05 14:53:21 -060076 require SR-IOV support, while at the same time the PF (Physical
77 Function) itself is not providing any actual services on the
78 host itself such as storage or networking.
Alexander Duycka8ccf8a2018-04-24 16:47:16 -050079
80 When in doubt, say N.
81
Ryan Wilson956a9202010-08-02 21:31:05 -040082config XEN_PCIDEV_FRONTEND
83 tristate "Xen PCI Frontend"
84 depends on PCI && X86 && XEN
Ryan Wilson956a9202010-08-02 21:31:05 -040085 select PCI_XEN
Konrad Rzeszutek Wilkfce263c2010-12-10 22:33:15 -050086 select XEN_XENBUS_FRONTEND
Ryan Wilson956a9202010-08-02 21:31:05 -040087 default y
88 help
89 The PCI device frontend driver allows the kernel to import arbitrary
90 PCI devices from a PCI backend to support PCI driver domains.
91
Joerg Roedeldb3c33c2011-09-27 15:57:13 +020092config PCI_ATS
93 bool
94
Jayachandran C35ff9472016-05-10 17:19:51 +020095config PCI_ECAM
96 bool
97
Thomas Gleixner714fe382017-03-16 22:50:06 +010098config PCI_LOCKLESS_CONFIG
99 bool
100
Thomas Petazzoni23a5fba2018-10-18 17:37:16 +0200101config PCI_BRIDGE_EMUL
102 bool
103
Yu Zhaod1b054d2009-03-20 11:25:11 +0800104config PCI_IOV
105 bool "PCI IOV support"
106 depends on PCI
Joerg Roedeldb3c33c2011-09-27 15:57:13 +0200107 select PCI_ATS
Yu Zhaod1b054d2009-03-20 11:25:11 +0800108 help
109 I/O Virtualization is a PCI feature supported by some devices
110 which allows them to create virtual devices which share their
111 physical resources.
112
113 If unsure, say N.
Bjorn Helgaas204d49a2009-10-26 11:20:47 -0600114
Joerg Roedelc320b972011-09-27 15:57:15 +0200115config PCI_PRI
116 bool "PCI PRI support"
Joerg Roedelc54420d2011-10-30 16:35:07 +0100117 depends on PCI
Joerg Roedelc320b972011-09-27 15:57:15 +0200118 select PCI_ATS
119 help
120 PRI is the PCI Page Request Interface. It allows PCI devices that are
121 behind an IOMMU to recover from page faults.
122
123 If unsure, say N.
124
Joerg Roedel086ac112011-09-27 15:57:16 +0200125config PCI_PASID
126 bool "PCI PASID support"
127 depends on PCI
128 select PCI_ATS
129 help
130 Process Address Space Identifiers (PASIDs) can be used by PCI devices
131 to access more than one IO address space at the same time. To make
132 use of this feature an IOMMU is required which also supports PASIDs.
133 Select this option if you have such an IOMMU and want to compile the
134 driver for it into your kernel.
135
136 If unsure, say N.
137
Logan Gunthorpe52916982018-10-04 15:27:35 -0600138config PCI_P2PDMA
139 bool "PCI peer-to-peer transfer support"
140 depends on PCI && ZONE_DEVICE
141 select GENERIC_ALLOCATOR
142 help
143 Enableѕ drivers to do PCI peer-to-peer transactions to and from
144 BARs that are exposed in other devices that are the part of
145 the hierarchy where peer-to-peer DMA is guaranteed by the PCI
146 specification to work (ie. anything below a single PCI bridge).
147
148 Many PCIe root complexes do not support P2P transactions and
149 it's hard to tell which support it at all, so at this time,
150 P2P DMA transations must be between devices behind the same root
151 port.
152
153 If unsure, say N.
154
Randy Dunlap8a226e02011-03-29 09:45:57 -0700155config PCI_LABEL
156 def_bool y if (DMI || ACPI)
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +0100157 depends on PCI
Randy Dunlap8a226e02011-03-29 09:45:57 -0700158 select NLS
Thomas Petazzoni45361a42013-05-16 17:55:22 +0200159
Jake Oshins4daace02016-02-16 21:56:23 +0000160config PCI_HYPERV
161 tristate "Hyper-V PCI Frontend"
162 depends on PCI && X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64
163 help
164 The PCI device frontend driver allows the kernel to import arbitrary
165 PCI devices from a PCI backend to support PCI driver domains.
166
Tero Roponen30b5b882016-03-21 09:26:41 +0200167source "drivers/pci/hotplug/Kconfig"
Shawn Lin6e0832f2018-05-31 09:12:37 +0800168source "drivers/pci/controller/Kconfig"
Kishon Vijay Abraham I5e8cb402017-04-10 19:25:10 +0530169source "drivers/pci/endpoint/Kconfig"
Logan Gunthorpe080b47d2017-03-06 18:30:54 -0600170source "drivers/pci/switch/Kconfig"