x86: io-apic: IO-APIC MMIO should not fail on resource insertion
authorCyrill Gorcunov <gorcunov@openvz.org>
Mon, 16 Nov 2009 15:14:26 +0000 (18:14 +0300)
committerIngo Molnar <mingo@elte.hu>
Mon, 16 Nov 2009 15:37:10 +0000 (16:37 +0100)
commite79c65a97c01d5da4317f44f9f98b3814e091a43
treece3ec55f23a5984a6b0bb399ac7ca139cd61c0bb
parent200a9ae2801bc725f2c41ab13f6e0fb1610d2fb6
x86: io-apic: IO-APIC MMIO should not fail on resource insertion

If IO-APIC base address is 1K aligned we should not fail
on resourse insertion procedure. For this sake we define
IO_APIC_SLOT_SIZE constant which should cover all IO-APIC
direct accessible registers.

An example of a such configuration is there

http://marc.info/?l=linux-kernel&m=118114792006520

 |
 | Quoting the message
 |
 | IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
 | IOAPIC[1]: apic_id 3, version 32, address 0xfec80000, GSI 24-47
 | IOAPIC[2]: apic_id 4, version 32, address 0xfec80400, GSI 48-71
 | IOAPIC[3]: apic_id 5, version 32, address 0xfec84000, GSI 72-95
 | IOAPIC[4]: apic_id 8, version 32, address 0xfec84400, GSI 96-119
 |

Reported-by: "Maciej W. Rozycki" <macro@linux-mips.org>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Acked-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <20091116151426.GC5653@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/apicdef.h
arch/x86/kernel/apic/io_apic.c