Messages in this thread Patch in this message | | | Date | Tue, 4 May 2010 17:00:57 -0700 (PDT) | From | David Rientjes <> | Subject | [patch] x86: fix fake apicid to node mapping for numa emulation |
| |
apicids must be mapped to the lowest node ids to maintain generic kernel use of functions such as cpu_to_node() that determine device affinity.
Signed-off-by: David Rientjes <rientjes@google.com> --- Third resend of the same patch.
arch/x86/mm/srat_64.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c --- a/arch/x86/mm/srat_64.c +++ b/arch/x86/mm/srat_64.c @@ -461,7 +461,8 @@ void __init acpi_fake_nodes(const struct bootnode *fake_nodes, int num_nodes) * node, it must now point to the fake node ID. */ for (j = 0; j < MAX_LOCAL_APIC; j++) - if (apicid_to_node[j] == nid) + if (apicid_to_node[j] == nid && + fake_apicid_to_node[j] == NUMA_NO_NODE) fake_apicid_to_node[j] = i; } for (i = 0; i < num_nodes; i++)
| |