| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 | 
 | 2 | # | 
 | 3 | # PCI configuration | 
 | 4 | # | 
 | 5 |  | 
 | 6 | source "drivers/pci/pcie/Kconfig" | 
 | 7 |  | 
 | 8 | config PCI_MSI | 
 | 9 | 	bool "Message Signaled Interrupts (MSI and MSI-X)" | 
 | 10 | 	depends on PCI | 
 | 11 | 	select GENERIC_MSI_IRQ | 
 | 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 |  | 
 | 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 |  | 
 | 22 | 	   If you don't know what to do here, say Y. | 
 | 23 |  | 
 | 24 | config PCI_MSI_IRQ_DOMAIN | 
 | 25 | 	def_bool ARC || ARM || ARM64 || X86 | 
 | 26 | 	depends on PCI_MSI | 
 | 27 | 	select GENERIC_MSI_IRQ_DOMAIN | 
 | 28 |  | 
 | 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 |  | 
 | 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 |  | 
 | 48 | config PCI_REALLOC_ENABLE_AUTO | 
 | 49 | 	bool "Enable PCI resource re-allocation detection" | 
 | 50 | 	depends on PCI | 
 | 51 | 	depends on PCI_IOV | 
 | 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 | 
 | 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. | 
 | 58 |  | 
 | 59 | 	  When in doubt, say N. | 
 | 60 |  | 
 | 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 |  | 
 | 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 |  | 
 | 82 | config XEN_PCIDEV_FRONTEND | 
 | 83 |         tristate "Xen PCI Frontend" | 
 | 84 |         depends on PCI && X86 && XEN | 
 | 85 |         select PCI_XEN | 
 | 86 | 	select XEN_XENBUS_FRONTEND | 
 | 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 |  | 
 | 92 | config PCI_DISABLE_COMMON_QUIRKS | 
 | 93 | 	bool "PCI disable common quirks" | 
 | 94 | 	depends on PCI | 
 | 95 | 	help | 
 | 96 | 	  If you don't know what to do here, say N. | 
 | 97 |  | 
 | 98 |  | 
 | 99 | config PCI_ATS | 
 | 100 | 	bool | 
 | 101 |  | 
 | 102 | config PCI_ECAM | 
 | 103 | 	bool | 
 | 104 |  | 
 | 105 | config PCI_LOCKLESS_CONFIG | 
 | 106 | 	bool | 
 | 107 |  | 
 | 108 | config PCI_IOV | 
 | 109 | 	bool "PCI IOV support" | 
 | 110 | 	depends on PCI | 
 | 111 | 	select PCI_ATS | 
 | 112 | 	help | 
 | 113 | 	  I/O Virtualization is a PCI feature supported by some devices | 
 | 114 | 	  which allows them to create virtual devices which share their | 
 | 115 | 	  physical resources. | 
 | 116 |  | 
 | 117 | 	  If unsure, say N. | 
 | 118 |  | 
 | 119 | config PCI_PRI | 
 | 120 | 	bool "PCI PRI support" | 
 | 121 | 	depends on PCI | 
 | 122 | 	select PCI_ATS | 
 | 123 | 	help | 
 | 124 | 	  PRI is the PCI Page Request Interface. It allows PCI devices that are | 
 | 125 | 	  behind an IOMMU to recover from page faults. | 
 | 126 |  | 
 | 127 | 	  If unsure, say N. | 
 | 128 |  | 
 | 129 | config PCI_PASID | 
 | 130 | 	bool "PCI PASID support" | 
 | 131 | 	depends on PCI | 
 | 132 | 	select PCI_ATS | 
 | 133 | 	help | 
 | 134 | 	  Process Address Space Identifiers (PASIDs) can be used by PCI devices | 
 | 135 | 	  to access more than one IO address space at the same time. To make | 
 | 136 | 	  use of this feature an IOMMU is required which also supports PASIDs. | 
 | 137 | 	  Select this option if you have such an IOMMU and want to compile the | 
 | 138 | 	  driver for it into your kernel. | 
 | 139 |  | 
 | 140 | 	  If unsure, say N. | 
 | 141 |  | 
 | 142 | config PCI_LABEL | 
 | 143 | 	def_bool y if (DMI || ACPI) | 
 | 144 | 	depends on PCI | 
 | 145 | 	select NLS | 
 | 146 |  | 
 | 147 | config PCI_HYPERV | 
 | 148 |         tristate "Hyper-V PCI Frontend" | 
 | 149 |         depends on PCI && X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64 | 
 | 150 |         help | 
 | 151 |           The PCI device frontend driver allows the kernel to import arbitrary | 
 | 152 |           PCI devices from a PCI backend to support PCI driver domains. | 
 | 153 |  | 
 | 154 | source "drivers/pci/hotplug/Kconfig" | 
 | 155 | source "drivers/pci/controller/Kconfig" | 
 | 156 | source "drivers/pci/endpoint/Kconfig" | 
 | 157 | source "drivers/pci/switch/Kconfig" |