]> git.baikalelectronics.ru Git - kernel.git/commit
s390/numa: move initial setup of node_to_cpumask_map
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 31 Jul 2018 14:14:18 +0000 (16:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 1 Aug 2018 05:48:33 +0000 (07:48 +0200)
commitb108d9499e0f17bdd014d67b810b4ec56068c18c
treededff29ea5e0555417a8d786686eeed70d301b59
parentfd31a13dac2fea9b82451e89ef495c11c9db8191
s390/numa: move initial setup of node_to_cpumask_map

The numa_init_early initcall sets the node_to_cpumask_map[0] to the
full cpu_possible_mask. Unfortunately this early_initcall is too late,
the NUMA setup for numa=emu is done even earlier. The order of calls
is numa_setup() -> emu_update_cpu_topology(), then the early_initcalls(),
followed by sched_init_domains().

Starting with git commit 0b034bda18f7058e7c8feedac96fae5a65d33625
"sched/topology: Introduce NUMA identity node sched domain"
the incorrect node_to_cpumask_map[0] really screws up the domain
setup and the kernel panics with the follow oops:

Cc: <stable@vger.kernel.org> # v4.15+
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/numa/numa.c