Commit f282b970 authored by Dan Williams's avatar Dan Williams Committed by Greg Kroah-Hartman
Browse files

msi: introduce ARCH_SUPPORTS_MSI Kconfig option (rev2)



Allows architectures to advertise that they support MSI rather than listing
each architecture as a PCI_MSI dependency.

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Acked-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 314e77b3
...@@ -255,6 +255,7 @@ config ARCH_IOP13XX ...@@ -255,6 +255,7 @@ config ARCH_IOP13XX
depends on MMU depends on MMU
select PLAT_IOP select PLAT_IOP
select PCI select PCI
select ARCH_SUPPORTS_MSI
help help
Support for Intel's IOP13XX (XScale) family of processors. Support for Intel's IOP13XX (XScale) family of processors.
......
...@@ -1073,6 +1073,7 @@ config PCI ...@@ -1073,6 +1073,7 @@ config PCI
bool "PCI support" if !X86_VISWS bool "PCI support" if !X86_VISWS
depends on !X86_VOYAGER depends on !X86_VOYAGER
default y if X86_VISWS default y if X86_VISWS
select ARCH_SUPPORTS_MSI if (X86_LOCAL_APIC && X86_IO_APIC)
help help
Find out whether you have a PCI motherboard. PCI is the name of a Find out whether you have a PCI motherboard. PCI is the name of a
bus system, i.e. the way the CPU talks to the other stuff inside bus system, i.e. the way the CPU talks to the other stuff inside
......
...@@ -14,6 +14,7 @@ config IA64 ...@@ -14,6 +14,7 @@ config IA64
select PCI if (!IA64_HP_SIM) select PCI if (!IA64_HP_SIM)
select ACPI if (!IA64_HP_SIM) select ACPI if (!IA64_HP_SIM)
select PM if (!IA64_HP_SIM) select PM if (!IA64_HP_SIM)
select ARCH_SUPPORTS_MSI
default y default y
help help
The Itanium Processor Family is Intel's 64-bit successor to The Itanium Processor Family is Intel's 64-bit successor to
......
...@@ -306,6 +306,7 @@ config SUN_IO ...@@ -306,6 +306,7 @@ config SUN_IO
config PCI config PCI
bool "PCI support" bool "PCI support"
select ARCH_SUPPORTS_MSI
help help
Find out whether you have a PCI motherboard. PCI is the name of a Find out whether you have a PCI motherboard. PCI is the name of a
bus system, i.e. the way the CPU talks to the other stuff inside bus system, i.e. the way the CPU talks to the other stuff inside
......
...@@ -676,6 +676,7 @@ menu "Bus options (PCI etc.)" ...@@ -676,6 +676,7 @@ menu "Bus options (PCI etc.)"
config PCI config PCI
bool "PCI support" bool "PCI support"
select ARCH_SUPPORTS_MSI if (X86_LOCAL_APIC && X86_IO_APIC)
# x86-64 doesn't support PCI BIOS access from long mode so always go direct. # x86-64 doesn't support PCI BIOS access from long mode so always go direct.
config PCI_DIRECT config PCI_DIRECT
......
# #
# PCI configuration # PCI configuration
# #
config ARCH_SUPPORTS_MSI
bool
default n
config PCI_MSI config PCI_MSI
bool "Message Signaled Interrupts (MSI and MSI-X)" bool "Message Signaled Interrupts (MSI and MSI-X)"
depends on PCI depends on PCI
depends on (X86_LOCAL_APIC && X86_IO_APIC) || IA64 || SPARC64 depends on ARCH_SUPPORTS_MSI
help help
This allows device drivers to enable MSI (Message Signaled This allows device drivers to enable MSI (Message Signaled
Interrupts). Message Signaled Interrupts enable a device to Interrupts). Message Signaled Interrupts enable a device to
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment