Skip to content

Commit a474d3f

Browse files
committed
PCI/MSI: Get rid of PCI_MSI_IRQ_DOMAIN
What a zoo: PCI_MSI select GENERIC_MSI_IRQ PCI_MSI_IRQ_DOMAIN def_bool y depends on PCI_MSI select GENERIC_MSI_IRQ_DOMAIN Ergo PCI_MSI enables PCI_MSI_IRQ_DOMAIN which in turn selects GENERIC_MSI_IRQ_DOMAIN. So all the dependencies on PCI_MSI_IRQ_DOMAIN are just an indirection to PCI_MSI. Match the reality and just admit that PCI_MSI requires GENERIC_MSI_IRQ_DOMAIN. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Acked-by: Bjorn Helgaas <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b2bdda2 commit a474d3f

File tree

11 files changed

+58
-75
lines changed

11 files changed

+58
-75
lines changed

arch/um/drivers/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ config UML_PCI_OVER_VIRTIO
381381
select UML_IOMEM_EMULATION
382382
select UML_DMA_EMULATION
383383
select PCI_MSI
384-
select PCI_MSI_IRQ_DOMAIN
385384
select PCI_LOCKLESS_CONFIG
386385

387386
config UML_PCI_OVER_VIRTIO_DEVICE_ID

arch/um/include/asm/pci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/* Generic PCI */
88
#include <asm-generic/pci.h>
99

10-
#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
10+
#ifdef CONFIG_PCI_MSI
1111
/*
1212
* This is a bit of an annoying hack, and it assumes we only have
1313
* the virt-pci (if anything). Which is true, but still.

arch/x86/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,6 @@ config X86_LOCAL_APIC
11091109
def_bool y
11101110
depends on X86_64 || SMP || X86_32_NON_STANDARD || X86_UP_APIC || PCI_MSI
11111111
select IRQ_DOMAIN_HIERARCHY
1112-
select PCI_MSI_IRQ_DOMAIN if PCI_MSI
11131112

11141113
config X86_IO_APIC
11151114
def_bool y

arch/x86/include/asm/pci.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct pci_sysdata {
2121
#ifdef CONFIG_X86_64
2222
void *iommu; /* IOMMU private data */
2323
#endif
24-
#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
24+
#ifdef CONFIG_PCI_MSI
2525
void *fwnode; /* IRQ domain for MSI assignment */
2626
#endif
2727
#if IS_ENABLED(CONFIG_VMD)
@@ -52,7 +52,7 @@ static inline int pci_proc_domain(struct pci_bus *bus)
5252
}
5353
#endif
5454

55-
#ifdef CONFIG_PCI_MSI_IRQ_DOMAIN
55+
#ifdef CONFIG_PCI_MSI
5656
static inline void *_pci_root_bus_fwnode(struct pci_bus *bus)
5757
{
5858
return to_pci_sysdata(bus)->fwnode;

drivers/pci/Kconfig

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ source "drivers/pci/pcie/Kconfig"
3838

3939
config PCI_MSI
4040
bool "Message Signaled Interrupts (MSI and MSI-X)"
41+
select GENERIC_MSI_IRQ_DOMAIN
4142
select GENERIC_MSI_IRQ
4243
help
4344
This allows device drivers to enable MSI (Message Signaled
@@ -51,11 +52,6 @@ config PCI_MSI
5152

5253
If you don't know what to do here, say Y.
5354

54-
config PCI_MSI_IRQ_DOMAIN
55-
def_bool y
56-
depends on PCI_MSI
57-
select GENERIC_MSI_IRQ_DOMAIN
58-
5955
config PCI_MSI_ARCH_FALLBACKS
6056
bool
6157

@@ -192,7 +188,7 @@ config PCI_LABEL
192188

193189
config PCI_HYPERV
194190
tristate "Hyper-V PCI Frontend"
195-
depends on ((X86 && X86_64) || ARM64) && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && SYSFS
191+
depends on ((X86 && X86_64) || ARM64) && HYPERV && PCI_MSI && SYSFS
196192
select PCI_HYPERV_INTERFACE
197193
help
198194
The PCI device frontend driver allows the kernel to import arbitrary

drivers/pci/controller/Kconfig

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config PCI_AARDVARK
1919
tristate "Aardvark PCIe controller"
2020
depends on (ARCH_MVEBU && ARM64) || COMPILE_TEST
2121
depends on OF
22-
depends on PCI_MSI_IRQ_DOMAIN
22+
depends on PCI_MSI
2323
select PCI_BRIDGE_EMUL
2424
help
2525
Add support for Aardvark 64bit PCIe Host Controller. This
@@ -29,7 +29,7 @@ config PCI_AARDVARK
2929
config PCIE_XILINX_NWL
3030
bool "NWL PCIe Core"
3131
depends on ARCH_ZYNQMP || COMPILE_TEST
32-
depends on PCI_MSI_IRQ_DOMAIN
32+
depends on PCI_MSI
3333
help
3434
Say 'Y' here if you want kernel support for Xilinx
3535
NWL PCIe controller. The controller can act as Root Port
@@ -53,7 +53,7 @@ config PCI_IXP4XX
5353
config PCI_TEGRA
5454
bool "NVIDIA Tegra PCIe controller"
5555
depends on ARCH_TEGRA || COMPILE_TEST
56-
depends on PCI_MSI_IRQ_DOMAIN
56+
depends on PCI_MSI
5757
help
5858
Say Y here if you want support for the PCIe host controller found
5959
on NVIDIA Tegra SoCs.
@@ -70,7 +70,7 @@ config PCI_RCAR_GEN2
7070
config PCIE_RCAR_HOST
7171
bool "Renesas R-Car PCIe host controller"
7272
depends on ARCH_RENESAS || COMPILE_TEST
73-
depends on PCI_MSI_IRQ_DOMAIN
73+
depends on PCI_MSI
7474
help
7575
Say Y here if you want PCIe controller support on R-Car SoCs in host
7676
mode.
@@ -99,7 +99,7 @@ config PCI_HOST_GENERIC
9999
config PCIE_XILINX
100100
bool "Xilinx AXI PCIe host bridge support"
101101
depends on OF || COMPILE_TEST
102-
depends on PCI_MSI_IRQ_DOMAIN
102+
depends on PCI_MSI
103103
help
104104
Say 'Y' here if you want kernel to support the Xilinx AXI PCIe
105105
Host Bridge driver.
@@ -124,7 +124,7 @@ config PCI_XGENE
124124
config PCI_XGENE_MSI
125125
bool "X-Gene v1 PCIe MSI feature"
126126
depends on PCI_XGENE
127-
depends on PCI_MSI_IRQ_DOMAIN
127+
depends on PCI_MSI
128128
default y
129129
help
130130
Say Y here if you want PCIe MSI support for the APM X-Gene v1 SoC.
@@ -170,7 +170,7 @@ config PCIE_IPROC_BCMA
170170
config PCIE_IPROC_MSI
171171
bool "Broadcom iProc PCIe MSI support"
172172
depends on PCIE_IPROC_PLATFORM || PCIE_IPROC_BCMA
173-
depends on PCI_MSI_IRQ_DOMAIN
173+
depends on PCI_MSI
174174
default ARCH_BCM_IPROC
175175
help
176176
Say Y here if you want to enable MSI support for Broadcom's iProc
@@ -186,7 +186,7 @@ config PCIE_ALTERA
186186
config PCIE_ALTERA_MSI
187187
tristate "Altera PCIe MSI feature"
188188
depends on PCIE_ALTERA
189-
depends on PCI_MSI_IRQ_DOMAIN
189+
depends on PCI_MSI
190190
help
191191
Say Y here if you want PCIe MSI support for the Altera FPGA.
192192
This MSI driver supports Altera MSI to GIC controller IP.
@@ -215,7 +215,7 @@ config PCIE_ROCKCHIP_HOST
215215
tristate "Rockchip PCIe host controller"
216216
depends on ARCH_ROCKCHIP || COMPILE_TEST
217217
depends on OF
218-
depends on PCI_MSI_IRQ_DOMAIN
218+
depends on PCI_MSI
219219
select MFD_SYSCON
220220
select PCIE_ROCKCHIP
221221
help
@@ -239,15 +239,15 @@ config PCIE_MEDIATEK
239239
tristate "MediaTek PCIe controller"
240240
depends on ARCH_AIROHA || ARCH_MEDIATEK || COMPILE_TEST
241241
depends on OF
242-
depends on PCI_MSI_IRQ_DOMAIN
242+
depends on PCI_MSI
243243
help
244244
Say Y here if you want to enable PCIe controller support on
245245
MediaTek SoCs.
246246

247247
config PCIE_MEDIATEK_GEN3
248248
tristate "MediaTek Gen3 PCIe controller"
249249
depends on ARCH_MEDIATEK || COMPILE_TEST
250-
depends on PCI_MSI_IRQ_DOMAIN
250+
depends on PCI_MSI
251251
help
252252
Adds support for PCIe Gen3 MAC controller for MediaTek SoCs.
253253
This PCIe controller is compatible with Gen3, Gen2 and Gen1 speed,
@@ -277,15 +277,15 @@ config PCIE_BRCMSTB
277277
depends on ARCH_BRCMSTB || ARCH_BCM2835 || ARCH_BCMBCA || \
278278
BMIPS_GENERIC || COMPILE_TEST
279279
depends on OF
280-
depends on PCI_MSI_IRQ_DOMAIN
280+
depends on PCI_MSI
281281
default ARCH_BRCMSTB || BMIPS_GENERIC
282282
help
283283
Say Y here to enable PCIe host controller support for
284284
Broadcom STB based SoCs, like the Raspberry Pi 4.
285285

286286
config PCI_HYPERV_INTERFACE
287287
tristate "Hyper-V PCI Interface"
288-
depends on ((X86 && X86_64) || ARM64) && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN
288+
depends on ((X86 && X86_64) || ARM64) && HYPERV && PCI_MSI && PCI_MSI
289289
help
290290
The Hyper-V PCI Interface is a helper driver allows other drivers to
291291
have a common interface with the Hyper-V PCI frontend driver.
@@ -303,8 +303,6 @@ config PCI_LOONGSON
303303
config PCIE_MICROCHIP_HOST
304304
bool "Microchip AXI PCIe host bridge support"
305305
depends on PCI_MSI && OF
306-
select PCI_MSI_IRQ_DOMAIN
307-
select GENERIC_MSI_IRQ_DOMAIN
308306
select PCI_HOST_COMMON
309307
help
310308
Say Y here if you want kernel to support the Microchip AXI PCIe
@@ -326,7 +324,7 @@ config PCIE_APPLE
326324
tristate "Apple PCIe controller"
327325
depends on ARCH_APPLE || COMPILE_TEST
328326
depends on OF
329-
depends on PCI_MSI_IRQ_DOMAIN
327+
depends on PCI_MSI
330328
select PCI_HOST_COMMON
331329
help
332330
Say Y here if you want to enable PCIe controller support on Apple

0 commit comments

Comments
 (0)