Bjorn Helgaas | 7328c8f | 2018-01-26 11:45:16 -0600 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # PCI configuration |
| 4 | # |
Bogicevic Sasa | 5f8fc43 | 2016-02-03 13:24:22 -0800 | [diff] [blame] | 5 | |
Christoph Hellwig | eb01d42 | 2018-11-15 20:05:32 +0100 | [diff] [blame] | 6 | # select this to offer the PCI prompt |
| 7 | config HAVE_PCI |
| 8 | bool |
| 9 | |
| 10 | # select this to unconditionally force on PCI support |
| 11 | config FORCE_PCI |
| 12 | bool |
| 13 | select HAVE_PCI |
| 14 | select PCI |
| 15 | |
| 16 | menuconfig 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 Herring | 2e8cb2c | 2019-01-14 15:35:46 -0600 | [diff] [blame] | 24 | if PCI |
| 25 | |
Christoph Hellwig | 2eac9c2 | 2018-11-15 20:05:33 +0100 | [diff] [blame] | 26 | config PCI_DOMAINS |
| 27 | bool |
| 28 | depends on PCI |
| 29 | |
| 30 | config PCI_DOMAINS_GENERIC |
| 31 | bool |
Christoph Hellwig | 2eac9c2 | 2018-11-15 20:05:33 +0100 | [diff] [blame] | 32 | select PCI_DOMAINS |
| 33 | |
Christoph Hellwig | 20f1b79 | 2018-11-15 20:05:34 +0100 | [diff] [blame] | 34 | config PCI_SYSCALL |
| 35 | bool |
| 36 | |
Bogicevic Sasa | 5f8fc43 | 2016-02-03 13:24:22 -0800 | [diff] [blame] | 37 | source "drivers/pci/pcie/Kconfig" |
| 38 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | config PCI_MSI |
| 40 | bool "Message Signaled Interrupts (MSI and MSI-X)" |
Jiang Liu | 38b6a1c | 2014-11-12 12:11:25 +0100 | [diff] [blame] | 41 | select GENERIC_MSI_IRQ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | 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 Wilcox | 309e57d | 2006-03-05 22:33:34 -0700 | [diff] [blame] | 48 | 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 Barnes | 3196180 | 2010-04-08 09:38:47 -0700 | [diff] [blame] | 52 | If you don't know what to do here, say Y. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 53 | |
Jiang Liu | 3878eae | 2014-11-11 21:02:18 +0800 | [diff] [blame] | 54 | config PCI_MSI_IRQ_DOMAIN |
Palmer Dabbelt | 191d6f9 | 2019-10-25 08:10:38 +0200 | [diff] [blame] | 55 | def_bool y |
Jiang Liu | 3878eae | 2014-11-11 21:02:18 +0800 | [diff] [blame] | 56 | depends on PCI_MSI |
| 57 | select GENERIC_MSI_IRQ_DOMAIN |
| 58 | |
Randy Dunlap | 03ea226 | 2017-11-02 15:14:02 -0700 | [diff] [blame] | 59 | config PCI_QUIRKS |
| 60 | default y |
| 61 | bool "Enable PCI quirk workarounds" if EXPERT |
Randy Dunlap | 03ea226 | 2017-11-02 15:14:02 -0700 | [diff] [blame] | 62 | 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | config PCI_DEBUG |
| 68 | bool "PCI Debugging" |
Rob Herring | 2e8cb2c | 2019-01-14 15:35:46 -0600 | [diff] [blame] | 69 | depends on DEBUG_KERNEL |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | 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 Lu | b07f2eb | 2012-02-23 19:23:32 -0800 | [diff] [blame] | 77 | config PCI_REALLOC_ENABLE_AUTO |
| 78 | bool "Enable PCI resource re-allocation detection" |
Sascha El-Sharkawy | ad581f8 | 2017-09-20 08:44:20 +0200 | [diff] [blame] | 79 | depends on PCI_IOV |
Yinghai Lu | b07f2eb | 2012-02-23 19:23:32 -0800 | [diff] [blame] | 80 | 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-Sharkawy | ad581f8 | 2017-09-20 08:44:20 +0200 | [diff] [blame] | 83 | 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 Lu | b07f2eb | 2012-02-23 19:23:32 -0800 | [diff] [blame] | 86 | |
| 87 | When in doubt, say N. |
| 88 | |
Chris Wright | c70e0d9 | 2008-11-25 21:17:13 -0800 | [diff] [blame] | 89 | config PCI_STUB |
| 90 | tristate "PCI Stub driver" |
Chris Wright | c70e0d9 | 2008-11-25 21:17:13 -0800 | [diff] [blame] | 91 | 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 Duyck | a8ccf8a | 2018-04-24 16:47:16 -0500 | [diff] [blame] | 97 | config PCI_PF_STUB |
| 98 | tristate "PCI PF Stub driver" |
Alexander Duyck | a8ccf8a | 2018-04-24 16:47:16 -0500 | [diff] [blame] | 99 | depends on PCI_IOV |
| 100 | help |
| 101 | Say Y or M here if you want to enable support for devices that |
Randy Dunlap | 4a57f58 | 2018-11-05 14:53:21 -0600 | [diff] [blame] | 102 | 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 Duyck | a8ccf8a | 2018-04-24 16:47:16 -0500 | [diff] [blame] | 105 | |
| 106 | When in doubt, say N. |
| 107 | |
Ryan Wilson | 956a920 | 2010-08-02 21:31:05 -0400 | [diff] [blame] | 108 | config XEN_PCIDEV_FRONTEND |
Krzysztof Kozlowski | 36533f3 | 2019-11-20 21:40:36 +0800 | [diff] [blame] | 109 | tristate "Xen PCI Frontend" |
| 110 | depends on X86 && XEN |
| 111 | select PCI_XEN |
Konrad Rzeszutek Wilk | fce263c | 2010-12-10 22:33:15 -0500 | [diff] [blame] | 112 | select XEN_XENBUS_FRONTEND |
Krzysztof Kozlowski | 36533f3 | 2019-11-20 21:40:36 +0800 | [diff] [blame] | 113 | 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 Wilson | 956a920 | 2010-08-02 21:31:05 -0400 | [diff] [blame] | 117 | |
Joerg Roedel | db3c33c | 2011-09-27 15:57:13 +0200 | [diff] [blame] | 118 | config PCI_ATS |
| 119 | bool |
| 120 | |
Jayachandran C | 35ff947 | 2016-05-10 17:19:51 +0200 | [diff] [blame] | 121 | config PCI_ECAM |
| 122 | bool |
| 123 | |
Thomas Gleixner | 714fe38 | 2017-03-16 22:50:06 +0100 | [diff] [blame] | 124 | config PCI_LOCKLESS_CONFIG |
| 125 | bool |
| 126 | |
Thomas Petazzoni | 23a5fba | 2018-10-18 17:37:16 +0200 | [diff] [blame] | 127 | config PCI_BRIDGE_EMUL |
| 128 | bool |
| 129 | |
Yu Zhao | d1b054d | 2009-03-20 11:25:11 +0800 | [diff] [blame] | 130 | config PCI_IOV |
| 131 | bool "PCI IOV support" |
Joerg Roedel | db3c33c | 2011-09-27 15:57:13 +0200 | [diff] [blame] | 132 | select PCI_ATS |
Yu Zhao | d1b054d | 2009-03-20 11:25:11 +0800 | [diff] [blame] | 133 | 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 Helgaas | 204d49a | 2009-10-26 11:20:47 -0600 | [diff] [blame] | 139 | |
Joerg Roedel | c320b97 | 2011-09-27 15:57:15 +0200 | [diff] [blame] | 140 | config 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 Roedel | 086ac11 | 2011-09-27 15:57:16 +0200 | [diff] [blame] | 149 | config PCI_PASID |
| 150 | bool "PCI PASID support" |
Joerg Roedel | 086ac11 | 2011-09-27 15:57:16 +0200 | [diff] [blame] | 151 | 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 Gunthorpe | 5291698 | 2018-10-04 15:27:35 -0600 | [diff] [blame] | 161 | config PCI_P2PDMA |
| 162 | bool "PCI peer-to-peer transfer support" |
Rob Herring | 2e8cb2c | 2019-01-14 15:35:46 -0600 | [diff] [blame] | 163 | depends on ZONE_DEVICE |
Logan Gunthorpe | 5291698 | 2018-10-04 15:27:35 -0600 | [diff] [blame] | 164 | 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 Helgaas | d1bbf38 | 2019-07-30 08:04:00 -0500 | [diff] [blame] | 173 | P2P DMA transactions must be between devices behind the same root |
Logan Gunthorpe | 5291698 | 2018-10-04 15:27:35 -0600 | [diff] [blame] | 174 | port. |
| 175 | |
| 176 | If unsure, say N. |
| 177 | |
Randy Dunlap | 8a226e0 | 2011-03-29 09:45:57 -0700 | [diff] [blame] | 178 | config PCI_LABEL |
| 179 | def_bool y if (DMI || ACPI) |
| 180 | select NLS |
Thomas Petazzoni | 45361a4 | 2013-05-16 17:55:22 +0200 | [diff] [blame] | 181 | |
Jake Oshins | 4daace0 | 2016-02-16 21:56:23 +0000 | [diff] [blame] | 182 | config PCI_HYPERV |
Krzysztof Kozlowski | 36533f3 | 2019-11-20 21:40:36 +0800 | [diff] [blame] | 183 | tristate "Hyper-V PCI Frontend" |
| 184 | depends on X86_64 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && SYSFS |
Haiyang Zhang | 348dd93 | 2019-08-22 05:05:41 +0000 | [diff] [blame] | 185 | select PCI_HYPERV_INTERFACE |
Krzysztof Kozlowski | 36533f3 | 2019-11-20 21:40:36 +0800 | [diff] [blame] | 186 | 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 Oshins | 4daace0 | 2016-02-16 21:56:23 +0000 | [diff] [blame] | 189 | |
Tero Roponen | 30b5b88 | 2016-03-21 09:26:41 +0200 | [diff] [blame] | 190 | source "drivers/pci/hotplug/Kconfig" |
Shawn Lin | 6e0832f | 2018-05-31 09:12:37 +0800 | [diff] [blame] | 191 | source "drivers/pci/controller/Kconfig" |
Kishon Vijay Abraham I | 5e8cb40 | 2017-04-10 19:25:10 +0530 | [diff] [blame] | 192 | source "drivers/pci/endpoint/Kconfig" |
Logan Gunthorpe | 080b47d | 2017-03-06 18:30:54 -0600 | [diff] [blame] | 193 | source "drivers/pci/switch/Kconfig" |
Rob Herring | 2e8cb2c | 2019-01-14 15:35:46 -0600 | [diff] [blame] | 194 | |
| 195 | endif |