kernel-fxtec-pro1x/arch/x86/kernel/apic
Robert Richter 8abc3122aa x86/apic/amd: Be more verbose about LVT offset assignments
Add information about LVT offset assignments to better debug firmware
bugs related to this. See following examples.

 # dmesg | grep -i 'offset\|ibs'
 LVT offset 0 assigned for vector 0xf9
 [Firmware Bug]: cpu 0, try to use APIC500 (LVT offset 0) for vector 0x10400, but the register is already in use for vector 0xf9 on another cpu
 [Firmware Bug]: cpu 0, IBS interrupt offset 0 not available (MSRC001103A=0x0000000000000100)
 Failed to setup IBS, -22

In this case the BIOS assigns both offsets for MCE (0xf9) and IBS
(0x400) vectors to offset 0, which is why the second APIC setup (IBS)
failed.

With correct setup you get:

 # dmesg | grep -i 'offset\|ibs'
 LVT offset 0 assigned for vector 0xf9
 LVT offset 1 assigned for vector 0x400
 IBS: LVT offset 1 assigned
 perf: AMD IBS detected (0x00000007)
 oprofile: AMD IBS detected (0x00000007)

Note: The vector includes also the message type to handle also NMIs
(0x400). In the firmware bug message the format is the same as of the
APIC500 register and includes the mask bit (bit 16) in addition.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2012-03-28 20:02:39 +02:00
..
apic.c x86/apic/amd: Be more verbose about LVT offset assignments 2012-03-28 20:02:39 +02:00
apic_flat_64.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
apic_noop.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
apic_numachip.c x86/apic: Add separate apic_id_valid() functions for selected apic drivers 2012-03-23 13:28:43 +01:00
bigsmp_32.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
es7000_32.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
hw_nmi.c x86, nmi: Wire up NMI handlers to new routines 2011-10-10 06:56:57 +02:00
io_apic.c x86/ioapic: Add io_apic_ops driver layer to allow interception 2012-03-28 09:49:29 +02:00
ipi.c
Makefile x86: Add NumaChip support 2011-12-05 17:17:24 +01:00
numaq_32.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
probe_32.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
probe_64.c x86, apic: Make apic drivers static 2011-05-22 11:48:04 +02:00
summit_32.c x86/platform: Move APIC ID validity check into platform APIC code 2012-03-14 09:49:48 +01:00
x2apic_cluster.c x86/apic: Add separate apic_id_valid() functions for selected apic drivers 2012-03-23 13:28:43 +01:00
x2apic_phys.c x86/apic: Add separate apic_id_valid() functions for selected apic drivers 2012-03-23 13:28:43 +01:00
x2apic_uv_x.c x86/apic: Add separate apic_id_valid() functions for selected apic drivers 2012-03-23 13:28:43 +01:00