]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kernel: numa: fix ACPI boot cpu numa node mapping
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 17 Oct 2016 14:18:48 +0000 (15:18 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 17 Oct 2016 14:49:23 +0000 (15:49 +0100)
commit9e4ca1ba576996d45d33abdfe6f26518f7819a9b
treebee1fe079c2aeb4748c0811964a96d0f533c7a12
parentf343016023027c5227e16f669b6fc821058cda9f
arm64: kernel: numa: fix ACPI boot cpu numa node mapping

Commit 441487e0d9f8 ("arm64/numa: remove the limitation that cpu0 must
bind to node0") removed the numa cpu<->node mapping restriction whereby
logical cpu 0 always corresponds to numa node 0; removing the
restriction was correct, in that it does not really exist in practice
but the commit only updated the early mapping of logical cpu 0 to its
real numa node for the DT boot path, missing the ACPI one, leading to
boot failures on ACPI systems owing to missing node<->cpu map for
logical cpu 0.

Fix the issue by updating the ACPI boot path with code that carries out
the early cpu<->node mapping also for the boot cpu (ie cpu 0), mirroring
what is currently done in the DT boot path.

Fixes: 441487e0d9f8 ("arm64/numa: remove the limitation that cpu0 must bind to node0")
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Reported-by: Laszlo Ersek <lersek@redhat.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Hanjun Guo <hanjun.guo@linaro.org>
Cc: Andrew Jones <drjones@redhat.com>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/smp.c