Skip to content

Commit 990785d

Browse files
0xB0Dgregkh
authored andcommitted
x86/apic: Re-enable PCI_MSI support for non-SMP X86_32
commit 38a1dfd upstream. Commit 0dbc607 ('x86, build, pci: Fix PCI_MSI build on !SMP') introduced the dependency that X86_UP_APIC is only available when PCI_MSI is false. This effectively prevents PCI_MSI support on 32bit UP systems because it disables both APIC and IO-APIC. But APIC support is architecturally required for PCI_MSI. The intention of the patch was to enforce APIC support when PCI_MSI is enabled, but failed to do so. Remove the !PCI_MSI dependency from X86_UP_APIC and enforce X86_UP_APIC when PCI_MSI support is enabled on 32bit UP systems. [ tglx: Massaged changelog ] Fixes 0dbc607 'x86, build, pci: Fix PCI_MSI build on !SMP' Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Suggested-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Link: http://lkml.kernel.org/r/1421967529-9037-1-git-send-email-pure.logic@nexus-software.ie Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7b6b3d6 commit 990785d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎arch/x86/Kconfig‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ source "kernel/Kconfig.preempt"
856856

857857
config X86_UP_APIC
858858
bool "Local APIC support on uniprocessors"
859-
depends on X86_32 && !SMP && !X86_32_NON_STANDARD && !PCI_MSI
859+
depends on X86_32 && !SMP && !X86_32_NON_STANDARD
860860
---help---
861861
A local APIC (Advanced Programmable Interrupt Controller) is an
862862
integrated interrupt controller in the CPU. If you have a single-CPU
@@ -867,6 +867,10 @@ config X86_UP_APIC
867867
performance counters), and the NMI watchdog which detects hard
868868
lockups.
869869

870+
config X86_UP_APIC_MSI
871+
def_bool y
872+
select X86_UP_APIC if X86_32 && !SMP && !X86_32_NON_STANDARD && PCI_MSI
873+
870874
config X86_UP_IOAPIC
871875
bool "IO-APIC support on uniprocessors"
872876
depends on X86_UP_APIC

0 commit comments

Comments
 (0)