linux-stable/arch
Huacai Chen 46e35a5065 LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init()
commit 5056c596c3 upstream.

Machines which have more than 8 nodes fail to boot SMP after commit
a2ccf46333 ("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: a2ccf46333 ("LoongArch/smp: Call rcutree_report_cpu_starting() earlier")
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-02-05 20:14:38 +00:00
..
alpha rtc: Add support for configuring the UIP timeout for RTC reads 2024-01-31 16:18:56 -08:00
arc ARC: fix smatch warning 2024-01-20 11:51:44 +01:00
arm ARM: dts: imx23/28: Fix the DMA controller node name 2024-02-05 20:14:23 +00:00
arm64 arm64: irq: set the correct node for shadow call stack 2024-02-05 20:14:38 +00:00
csky arch: consolidate arch_irq_work_raise prototypes 2024-02-05 20:14:17 +00:00
hexagon Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
ia64 cpu-hotplug: Provide prototypes for arch CPU registration 2023-10-11 14:27:37 +02:00
loongarch LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init() 2024-02-05 20:14:38 +00:00
m68k ata changes for 6.6 2023-09-05 12:37:28 -07:00
microblaze Microblaze patches for 6.6-rc1 2023-09-05 10:15:22 -07:00
mips mips: Call lose_fpu(0) before initializing fcr31 in mips_set_personality_nan 2024-01-31 16:19:13 -08:00
nios2 Add x86 shadow stack support 2023-08-31 12:20:12 -07:00
openrisc OpenRISC updates for 6.6 2023-09-05 10:09:31 -07:00
parisc parisc/firmware: Fix F-extend for PDC addresses 2024-01-31 16:18:52 -08:00
powerpc arch: consolidate arch_irq_work_raise prototypes 2024-02-05 20:14:17 +00:00
riscv riscv: Fix build error on rv32 + XIP 2024-02-05 20:14:34 +00:00
s390 KVM: s390: fix setting of fpc register 2024-02-05 20:14:17 +00:00
sh sh: ecovec24: Rename missed backlight field from fbdev to dev 2024-01-31 16:18:48 -08:00
sparc sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-10-27 20:06:06 -04:00
um um: time-travel: fix time corruption 2024-02-05 20:14:31 +00:00
x86 mm, kmsan: fix infinite recursion due to RCU critical section 2024-02-05 20:14:38 +00:00
xtensa xtensa: boot/lib: fix function prototypes 2023-09-20 05:03:30 -07:00
.gitignore
Kconfig Add x86 shadow stack support 2023-08-31 12:20:12 -07:00