• Andi Kleen's avatar
    [PATCH] x86-64: Support dualcore and 8 socket systems in k8 fallback node parsing · 3f098c26
    Andi Kleen authored
    In particular on systems where the local APIC space and node space
    is very different from the Linux CPU number space.
    
    Previously the older NUMA setup code directly parsing the K8
    northbridge registers had some issues on 8 socket or dual core
    systems. This patch fixes them.
    
    This is mainly done by fixing some confusion between Linux
    CPU numbers and local APIC ids. We now pass the local APIC IDs
    to later code, which avoids mismatches.
    
    Also add some heuristics to detect cases where the Hypertransport
    nodeids and the local APIC IDs don't match, but are shifted
    by a constant offset.
    
    This is still all quite hackish, hopefully BIOS writers fill
    in correct SRATs instead.
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3f098c26
k8topology.c 3.9 KB