kernel_optimize_test/arch/ia64/kernel
Valentin Schneider dcc3423c1d ia64: ensure proper NUMA distance and possible map initialization
commit b22a8f7b4bde4e4ab73b64908ffd5d90ecdcdbfd upstream.

John Paul reported a warning about bogus NUMA distance values spurred by
commit:

  620a6dc40754 ("sched/topology: Make sched_init_numa() use a set for the deduplicating sort")

In this case, the afflicted machine comes up with a reported 256 possible
nodes, all of which are 0 distance away from one another.  This was
previously silently ignored, but is now caught by the aforementioned
commit.

The culprit is ia64's node_possible_map which remains unchanged from its
initialization value of NODE_MASK_ALL.  In John's case, the machine
doesn't have any SRAT nor SLIT table, but AIUI the possible map remains
untouched regardless of what ACPI tables end up being parsed.  Thus,
!online && possible nodes remain with a bogus distance of 0 (distances \in
[0, 9] are "reserved and have no meaning" as per the ACPI spec).

Follow x86 / drivers/base/arch_numa's example and set the possible map to
the parsed map, which in this case seems to be the online map.

Link: http://lore.kernel.org/r/255d6b5d-194e-eb0e-ecdd-97477a534441@physik.fu-berlin.de
Link: https://lkml.kernel.org/r/20210318130617.896309-1-valentin.schneider@arm.com
Fixes: 620a6dc40754 ("sched/topology: Make sched_init_numa() use a set for the deduplicating sort")
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Tested-by: Sergei Trofimovich <slyfox@gentoo.org>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Dietmar Eggemann <dietmar.eggemann@arm.com>
Cc: Anatoly Pugachev <matorola@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-08 19:09:34 +01:00
..
syscalls mm/madvise: introduce process_madvise() syscall: an external memory hinting API 2020-10-18 09:27:10 -07:00
.gitignore
acpi-ext.c
acpi.c ia64: ensure proper NUMA distance and possible map initialization 2022-03-08 19:09:34 +01:00
asm-offsets.c
audit.c
brl_emu.c
crash_dump.c
crash.c
cyclone.c
dma-mapping.c
efi_stub.S
efi.c ia64: fix EFI_DEBUG build 2021-05-14 09:50:45 +02:00
elfcore.c
entry.h
entry.S
err_inject.c ia64: fix format strings for err_inject 2021-04-10 13:36:10 +02:00
esi_stub.S
esi.c
fsys.S
fsyscall_gtod_data.h
ftrace.c
gate-data.S
gate.lds.S
gate.S
head.S
ia64_ksyms.c
iosapic.c
irq_ia64.c
irq_lsapic.c
irq.c
irq.h
ivt.S
kprobes.c ia64: kprobes: Fix to pass correct trampoline address to the handler 2021-11-18 14:03:44 +01:00
machine_kexec.c
Makefile ia64: fix build error with !COREDUMP 2020-10-18 09:27:09 -07:00
Makefile.gate
mca_asm.S
mca_drv_asm.S
mca_drv.c ia64: mca_drv: fix incorrect array size calculation 2021-07-14 16:56:02 +02:00
mca_drv.h
mca.c ia64: mca: allocate early mca with GFP_ATOMIC 2021-04-10 13:36:09 +02:00
minstate.h
module.c ia64: module: fix symbolizer crash on fdescr 2021-05-19 10:12:59 +02:00
msi_ia64.c
nr-irqs.c
numa.c
pal.S
palinfo.c
patch.c
pci-dma.c
perfmon_default_smpl.c
perfmon_generic.h
perfmon_itanium.h
perfmon_mckinley.h
perfmon_montecito.h
process.c sched/idle: Fix arch_cpu_idle() vs tracing 2020-11-24 16:47:35 +01:00
ptrace.c ia64: fix ia64_syscall_get_set_arguments() for break-based syscalls 2021-03-30 14:31:52 +02:00
relocate_kernel.S
sal.c
salinfo.c
setup.c
sigframe.h
signal.c
smp.c
smpboot.c sched/core: Initialize the idle task with preemption disabled 2021-07-14 16:55:50 +02:00
stacktrace.c
sys_ia64.c
time.c
topology.c
traps.c
unaligned.c
uncached.c
unwind_decoder.c
unwind_i.h
unwind.c
vmlinux.lds.S