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 | |
| 6 | source "drivers/pci/pcie/Kconfig" |
| 7 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | config PCI_MSI |
| 9 | bool "Message Signaled Interrupts (MSI and MSI-X)" |
| 10 | depends on PCI |
Jiang Liu | 38b6a1c | 2014-11-12 12:11:25 +0100 | [diff] [blame] | 11 | select GENERIC_MSI_IRQ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | 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 Wilcox | 309e57d | 2006-03-05 22:33:34 -0700 | [diff] [blame] | 18 | 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 Barnes | 3196180 | 2010-04-08 09:38:47 -0700 | [diff] [blame] | 22 | If you don't know what to do here, say Y. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 23 | |
Jiang Liu | 3878eae | 2014-11-11 21:02:18 +0800 | [diff] [blame] | 24 | config PCI_MSI_IRQ_DOMAIN |
Joao Pinto | f8430ea | 2016-08-09 16:49:37 +0100 | [diff] [blame] | 25 | def_bool ARC || ARM || ARM64 || X86 |
Jiang Liu | 3878eae | 2014-11-11 21:02:18 +0800 | [diff] [blame] | 26 | depends on PCI_MSI |
| 27 | select GENERIC_MSI_IRQ_DOMAIN |
| 28 | |
Randy Dunlap | 03ea226 | 2017-11-02 15:14:02 -0700 | [diff] [blame] | 29 | config 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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 38 | config 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 Lu | b07f2eb | 2012-02-23 19:23:32 -0800 | [diff] [blame] | 48 | config PCI_REALLOC_ENABLE_AUTO |
| 49 | bool "Enable PCI resource re-allocation detection" |
| 50 | depends on PCI |
Sascha El-Sharkawy | ad581f8 | 2017-09-20 08:44:20 +0200 | [diff] [blame] | 51 | depends on PCI_IOV |
Yinghai Lu | b07f2eb | 2012-02-23 19:23:32 -0800 | [diff] [blame] | 52 | 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-Sharkawy | ad581f8 | 2017-09-20 08:44:20 +0200 | [diff] [blame] | 55 | 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 Lu | b07f2eb | 2012-02-23 19:23:32 -0800 | [diff] [blame] | 58 | |
| 59 | When in doubt, say N. |
| 60 | |
Chris Wright | c70e0d9 | 2008-11-25 21:17:13 -0800 | [diff] [blame] | 61 | config 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 Duyck | a8ccf8a | 2018-04-24 16:47:16 -0500 | [diff] [blame] | 70 | config 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 |
| 76 | require SR-IOV support, while at the same time the PF itself is |
| 77 | not providing any actual services on the host itself such as |
| 78 | storage or networking. |
| 79 | |
| 80 | When in doubt, say N. |
| 81 | |
Ryan Wilson | 956a920 | 2010-08-02 21:31:05 -0400 | [diff] [blame] | 82 | config XEN_PCIDEV_FRONTEND |
| 83 | tristate "Xen PCI Frontend" |
| 84 | depends on PCI && X86 && XEN |
Ryan Wilson | 956a920 | 2010-08-02 21:31:05 -0400 | [diff] [blame] | 85 | select PCI_XEN |
Konrad Rzeszutek Wilk | fce263c | 2010-12-10 22:33:15 -0500 | [diff] [blame] | 86 | select XEN_XENBUS_FRONTEND |
Ryan Wilson | 956a920 | 2010-08-02 21:31:05 -0400 | [diff] [blame] | 87 | 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 Roedel | db3c33c | 2011-09-27 15:57:13 +0200 | [diff] [blame] | 92 | config PCI_ATS |
| 93 | bool |
| 94 | |
Jayachandran C | 35ff947 | 2016-05-10 17:19:51 +0200 | [diff] [blame] | 95 | config PCI_ECAM |
| 96 | bool |
| 97 | |
Thomas Gleixner | 714fe38 | 2017-03-16 22:50:06 +0100 | [diff] [blame] | 98 | config PCI_LOCKLESS_CONFIG |
| 99 | bool |
| 100 | |
Yu Zhao | d1b054d | 2009-03-20 11:25:11 +0800 | [diff] [blame] | 101 | config PCI_IOV |
| 102 | bool "PCI IOV support" |
| 103 | depends on PCI |
Joerg Roedel | db3c33c | 2011-09-27 15:57:13 +0200 | [diff] [blame] | 104 | select PCI_ATS |
Yu Zhao | d1b054d | 2009-03-20 11:25:11 +0800 | [diff] [blame] | 105 | help |
| 106 | I/O Virtualization is a PCI feature supported by some devices |
| 107 | which allows them to create virtual devices which share their |
| 108 | physical resources. |
| 109 | |
| 110 | If unsure, say N. |
Bjorn Helgaas | 204d49a | 2009-10-26 11:20:47 -0600 | [diff] [blame] | 111 | |
Joerg Roedel | c320b97 | 2011-09-27 15:57:15 +0200 | [diff] [blame] | 112 | config PCI_PRI |
| 113 | bool "PCI PRI support" |
Joerg Roedel | c54420d | 2011-10-30 16:35:07 +0100 | [diff] [blame] | 114 | depends on PCI |
Joerg Roedel | c320b97 | 2011-09-27 15:57:15 +0200 | [diff] [blame] | 115 | select PCI_ATS |
| 116 | help |
| 117 | PRI is the PCI Page Request Interface. It allows PCI devices that are |
| 118 | behind an IOMMU to recover from page faults. |
| 119 | |
| 120 | If unsure, say N. |
| 121 | |
Joerg Roedel | 086ac11 | 2011-09-27 15:57:16 +0200 | [diff] [blame] | 122 | config PCI_PASID |
| 123 | bool "PCI PASID support" |
| 124 | depends on PCI |
| 125 | select PCI_ATS |
| 126 | help |
| 127 | Process Address Space Identifiers (PASIDs) can be used by PCI devices |
| 128 | to access more than one IO address space at the same time. To make |
| 129 | use of this feature an IOMMU is required which also supports PASIDs. |
| 130 | Select this option if you have such an IOMMU and want to compile the |
| 131 | driver for it into your kernel. |
| 132 | |
| 133 | If unsure, say N. |
| 134 | |
Randy Dunlap | 8a226e0 | 2011-03-29 09:45:57 -0700 | [diff] [blame] | 135 | config PCI_LABEL |
| 136 | def_bool y if (DMI || ACPI) |
Cyrille Pitchen | 9de0eec | 2018-01-30 21:56:49 +0100 | [diff] [blame] | 137 | depends on PCI |
Randy Dunlap | 8a226e0 | 2011-03-29 09:45:57 -0700 | [diff] [blame] | 138 | select NLS |
Thomas Petazzoni | 45361a4 | 2013-05-16 17:55:22 +0200 | [diff] [blame] | 139 | |
Jake Oshins | 4daace0 | 2016-02-16 21:56:23 +0000 | [diff] [blame] | 140 | config PCI_HYPERV |
| 141 | tristate "Hyper-V PCI Frontend" |
| 142 | depends on PCI && X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64 |
| 143 | help |
| 144 | The PCI device frontend driver allows the kernel to import arbitrary |
| 145 | PCI devices from a PCI backend to support PCI driver domains. |
| 146 | |
Tero Roponen | 30b5b88 | 2016-03-21 09:26:41 +0200 | [diff] [blame] | 147 | source "drivers/pci/hotplug/Kconfig" |
Shawn Lin | 6e0832f | 2018-05-31 09:12:37 +0800 | [diff] [blame] | 148 | source "drivers/pci/controller/Kconfig" |
Kishon Vijay Abraham I | 5e8cb40 | 2017-04-10 19:25:10 +0530 | [diff] [blame] | 149 | source "drivers/pci/endpoint/Kconfig" |
Logan Gunthorpe | 080b47d | 2017-03-06 18:30:54 -0600 | [diff] [blame] | 150 | source "drivers/pci/switch/Kconfig" |