diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2024-01-26 16:22:07 +0800 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2024-01-26 16:22:07 +0800 |
commit | 5056c596c3d1848021a4eaa76ee42f4c05c50346 (patch) | |
tree | 3ecd98925c625312d67cd30c12e12a4eeb4a68ba /scripts/rust_is_available_test.py | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) |
LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init()
Machines which have more than 8 nodes fail to boot SMP after commit
a2ccf46333d7b2cf96 ("LoongArch/smp: Call rcutree_report_cpu_starting()
earlier"). Because such machines use tlb-based per-cpu base address
rather than dmw-based per-cpu base address, resulting per-cpu variables
can only be accessed after tlb_init(). But rcutree_report_cpu_starting()
is now called before tlb_init() and accesses per-cpu variables indeed.
Since the original patch want to avoid the lockdep warning caused by
page allocation in tlb_init(), we can move rcutree_report_cpu_starting()
to tlb_init() where after tlb exception configuration but before page
allocation.
Fixes: a2ccf46333d7b2cf96 ("LoongArch/smp: Call rcutree_report_cpu_starting() earlier")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'scripts/rust_is_available_test.py')
0 files changed, 0 insertions, 0 deletions