• Srivatsa S. Bhat's avatar
    powerpc: Add debug checks to catch invalid cpu-to-node mappings · 68fb18aa
    Srivatsa S. Bhat authored
    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: default avatarSrivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
    Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
    68fb18aa
numa.c 43 KB