Skip to content

apic, x86: Use BIOS settings to setup AMD EILVT APIC registers

Robert Richter lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2apic, x86: Check if EILVT APIC registers are available (AMD only)arch/x86/include/asm/apicdef.h arch/x86/kernel/apic/apic.c+75 -91 reply
2/2apic, x86: Use BIOS settings for IBS and MCE threshold interrupt LVT offsetsarch/x86/include/asm/apic.h arch/x86/kernel/apic/apic.c arch/x86/kernel/cpu/mcheck/mce_amd.c +1 more+154 -416 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] apic, x86: Use BIOS settings to setup AMD EILVT APIC registers

This patch set changes the way of setting up EILVT APIC registers (APIC500-530). See family 10h bkdg:

http://support.amd.com/us/Processor_TechDocs/31116.pdf

Until now, Linux has assigned fixed LVT offsets for IBS and MCE threshold. With the introduction of new cpu families we want to be more flexible and assign those LVT offsets dynamically. The general apporach here is to let the BIOS decide which offsets to use. Linux will then detect this by reading the corresponding hw registers that contain the LVT offsets.

This requires to check if the BIOS is correctly setting up the LVT offsets. Otherwise a firmware bug message will be thrown. This is implemented in patch #1.

Patch #2 implements the detection of MCE threshold and IBS LVT offsets and changes the subsystem initialization. The code to setup the IBS LVT offset on family 10h systems will remain as a workaround that will be only applied in case of an invalid IBS LVT BIOS setup.

-Robert