]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add debug checks to catch invalid cpu-to-node mappings
authorSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Mon, 30 Dec 2013 11:36:04 +0000 (17:06 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 15 Jan 2014 02:58:40 +0000 (13:58 +1100)
commitd6ab76d381e289969e0cb69f07ba66c1290f7b5a
tree1dcd84a72e812f535d5a7e6ab79c742d4f50ca04
parent59d707984382a3c8a3a74214bf40e70c5b0ff716
powerpc: Add debug checks to catch invalid cpu-to-node mappings

There have been some weird bugs in the past where the kernel tried to associate
threads of the same core to different NUMA nodes, and things went haywire after
that point (as expected).

But unfortunately, root-causing such issues have been quite challenging, due to
the lack of appropriate debug checks in the kernel. These bugs usually lead to
some odd soft-lockups in the scheduler's build-sched-domain code in the CPU
hotplug path, which makes it very hard to trace it back to the incorrect
cpu-to-node mappings.

So add appropriate debug checks to catch such invalid cpu-to-node mappings
as early as possible.

Signed-off-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/numa.c