linux_dsm_epyc7002/arch/x86/mm
Yinghai Lu 3b28cf32cc x86, numa: Fix numa_emulation code with memory-less node0
This crash happens on a system that does not have RAM on node0.

When numa_emulation is compiled in, and:

 1. we boot the system without numa=fake...
 2. or we boot the system with numa=fake=128 to make emulation fail

we will get:

[    0.076025] ------------[ cut here ]------------
[    0.080004] kernel BUG at arch/x86/mm/numa_64.c:788!
[    0.080004] invalid opcode: 0000 [#1] SMP
[...]

need to use early_cpu_to_node() directly, because cpu_to_apicid
and apicid_to_node will return node0 that is not onlined.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
LKML-Reference: <4D6ECF72.5010308@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2011-03-04 15:20:19 +01:00
..
kmemcheck
amdtopology_64.c
dump_pagetables.c
extable.c
fault.c
gup.c thp: mmu_notifier_test_young 2011-01-13 17:32:46 -08:00
highmem_32.c
hugetlbpage.c
init_32.c
init_64.c
init.c
iomap_32.c
ioremap.c
kmmio.c
Makefile
memblock.c
memtest.c
mmap.c
mmio-mod.c
numa_32.c
numa_64.c x86, numa: Fix numa_emulation code with memory-less node0 2011-03-04 15:20:19 +01:00
numa.c x86: Unify "numa=" command line option handling 2011-01-19 10:25:18 +01:00
pageattr-test.c
pageattr.c x86, nx: Don't force pages RW when setting NX bits 2011-02-02 16:02:36 -08:00
pat_internal.h
pat_rbtree.c
pat.c
pf_in.c
pf_in.h
pgtable_32.c
pgtable.c thp: add x86 32bit support 2011-01-13 17:32:44 -08:00
physaddr.c
physaddr.h
setup_nx.c
srat_32.c x86: Unify "numa=" command line option handling 2011-01-19 10:25:18 +01:00
srat_64.c
testmmiotrace.c
tlb.c