blob: 34b56a8f8480ab7504375e60e7e7aebee4f4eb0c [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
Yinghai Lu3a9ad0b2015-05-27 17:23:51 -07008config PCI_BUS_ADDR_T_64BIT
Helge Dellere02a6532015-09-02 18:17:29 +02009 def_bool y if (ARCH_DMA_ADDR_T_64BIT || 64BIT)
Yinghai Lu3a9ad0b2015-05-27 17:23:51 -070010 depends on PCI
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012config PCI_MSI
13 bool "Message Signaled Interrupts (MSI and MSI-X)"
14 depends on PCI
Jiang Liu38b6a1c2014-11-12 12:11:25 +010015 select GENERIC_MSI_IRQ
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 help
17 This allows device drivers to enable MSI (Message Signaled
18 Interrupts). Message Signaled Interrupts enable a device to
19 generate an interrupt using an inbound Memory Write on its
20 PCI bus instead of asserting a device IRQ pin.
21
Matthew Wilcox309e57d2006-03-05 22:33:34 -070022 Use of PCI MSI interrupts can be disabled at kernel boot time
23 by using the 'pci=nomsi' option. This disables MSI for the
24 entire system.
25
Jesse Barnes31961802010-04-08 09:38:47 -070026 If you don't know what to do here, say Y.
Linus Torvalds1da177e2005-04-16 15:20:36 -070027
Jiang Liu3878eae2014-11-11 21:02:18 +080028config PCI_MSI_IRQ_DOMAIN
Joao Pintof8430ea2016-08-09 16:49:37 +010029 def_bool ARC || ARM || ARM64 || X86
Jiang Liu3878eae2014-11-11 21:02:18 +080030 depends on PCI_MSI
31 select GENERIC_MSI_IRQ_DOMAIN
32
Randy Dunlap03ea2262017-11-02 15:14:02 -070033config PCI_QUIRKS
34 default y
35 bool "Enable PCI quirk workarounds" if EXPERT
36 depends on PCI
37 help
38 This enables workarounds for various PCI chipset bugs/quirks.
39 Disable this only if your target machine is unaffected by PCI
40 quirks.
41
Linus Torvalds1da177e2005-04-16 15:20:36 -070042config PCI_DEBUG
43 bool "PCI Debugging"
44 depends on PCI && DEBUG_KERNEL
45 help
46 Say Y here if you want the PCI core to produce a bunch of debug
47 messages to the system log. Select this if you are having a
48 problem with PCI support and want to see more of what is going on.
49
50 When in doubt, say N.
51
Yinghai Lub07f2eb2012-02-23 19:23:32 -080052config PCI_REALLOC_ENABLE_AUTO
53 bool "Enable PCI resource re-allocation detection"
54 depends on PCI
Sascha El-Sharkawyad581f82017-09-20 08:44:20 +020055 depends on PCI_IOV
Yinghai Lub07f2eb2012-02-23 19:23:32 -080056 help
57 Say Y here if you want the PCI core to detect if PCI resource
58 re-allocation needs to be enabled. You can always use pci=realloc=on
Sascha El-Sharkawyad581f82017-09-20 08:44:20 +020059 or pci=realloc=off to override it. It will automatically
60 re-allocate PCI resources if SR-IOV BARs have not been allocated by
61 the BIOS.
Yinghai Lub07f2eb2012-02-23 19:23:32 -080062
63 When in doubt, say N.
64
Chris Wrightc70e0d92008-11-25 21:17:13 -080065config PCI_STUB
66 tristate "PCI Stub driver"
67 depends on PCI
68 help
69 Say Y or M here if you want be able to reserve a PCI device
70 when it is going to be assigned to a guest operating system.
71
72 When in doubt, say N.
73
Ryan Wilson956a9202010-08-02 21:31:05 -040074config XEN_PCIDEV_FRONTEND
75 tristate "Xen PCI Frontend"
76 depends on PCI && X86 && XEN
Ryan Wilson956a9202010-08-02 21:31:05 -040077 select PCI_XEN
Konrad Rzeszutek Wilkfce263c2010-12-10 22:33:15 -050078 select XEN_XENBUS_FRONTEND
Ryan Wilson956a9202010-08-02 21:31:05 -040079 default y
80 help
81 The PCI device frontend driver allows the kernel to import arbitrary
82 PCI devices from a PCI backend to support PCI driver domains.
83
Joerg Roedeldb3c33c2011-09-27 15:57:13 +020084config PCI_ATS
85 bool
86
Jayachandran C35ff9472016-05-10 17:19:51 +020087config PCI_ECAM
88 bool
89
Thomas Gleixner714fe382017-03-16 22:50:06 +010090config PCI_LOCKLESS_CONFIG
91 bool
92
Yu Zhaod1b054d2009-03-20 11:25:11 +080093config PCI_IOV
94 bool "PCI IOV support"
95 depends on PCI
Joerg Roedeldb3c33c2011-09-27 15:57:13 +020096 select PCI_ATS
Yu Zhaod1b054d2009-03-20 11:25:11 +080097 help
98 I/O Virtualization is a PCI feature supported by some devices
99 which allows them to create virtual devices which share their
100 physical resources.
101
102 If unsure, say N.
Bjorn Helgaas204d49a2009-10-26 11:20:47 -0600103
Joerg Roedelc320b972011-09-27 15:57:15 +0200104config PCI_PRI
105 bool "PCI PRI support"
Joerg Roedelc54420d2011-10-30 16:35:07 +0100106 depends on PCI
Joerg Roedelc320b972011-09-27 15:57:15 +0200107 select PCI_ATS
108 help
109 PRI is the PCI Page Request Interface. It allows PCI devices that are
110 behind an IOMMU to recover from page faults.
111
112 If unsure, say N.
113
Joerg Roedel086ac112011-09-27 15:57:16 +0200114config PCI_PASID
115 bool "PCI PASID support"
116 depends on PCI
117 select PCI_ATS
118 help
119 Process Address Space Identifiers (PASIDs) can be used by PCI devices
120 to access more than one IO address space at the same time. To make
121 use of this feature an IOMMU is required which also supports PASIDs.
122 Select this option if you have such an IOMMU and want to compile the
123 driver for it into your kernel.
124
125 If unsure, say N.
126
Randy Dunlap8a226e02011-03-29 09:45:57 -0700127config PCI_LABEL
128 def_bool y if (DMI || ACPI)
Cyrille Pitchen9de0eec2018-01-30 21:56:49 +0100129 depends on PCI
Randy Dunlap8a226e02011-03-29 09:45:57 -0700130 select NLS
Thomas Petazzoni45361a42013-05-16 17:55:22 +0200131
Jake Oshins4daace02016-02-16 21:56:23 +0000132config PCI_HYPERV
133 tristate "Hyper-V PCI Frontend"
134 depends on PCI && X86 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && X86_64
135 help
136 The PCI device frontend driver allows the kernel to import arbitrary
137 PCI devices from a PCI backend to support PCI driver domains.
138
Tero Roponen30b5b882016-03-21 09:26:41 +0200139source "drivers/pci/hotplug/Kconfig"
Cyrille Pitchen37dddf12018-01-30 21:56:59 +0100140source "drivers/pci/cadence/Kconfig"
Kishon Vijay Abraham I950bf632017-01-06 18:22:48 +0530141source "drivers/pci/dwc/Kconfig"
Thomas Petazzoni45361a42013-05-16 17:55:22 +0200142source "drivers/pci/host/Kconfig"
Kishon Vijay Abraham I5e8cb402017-04-10 19:25:10 +0530143source "drivers/pci/endpoint/Kconfig"
Logan Gunthorpe080b47d2017-03-06 18:30:54 -0600144source "drivers/pci/switch/Kconfig"