# git rev-parse -q --verify 99f070b62322a4b8c1252952735806d09eb44b68^{commit} 99f070b62322a4b8c1252952735806d09eb44b68 already have revision, skipping fetch # git checkout -q -f -B kisskb 99f070b62322a4b8c1252952735806d09eb44b68 # git clean -qxdf # < git log -1 # commit 99f070b62322a4b8c1252952735806d09eb44b68 # Author: Qian Cai # Date: Wed Oct 28 14:23:34 2020 -0400 # # powerpc/smp: Call rcu_cpu_starting() earlier # # The call to rcu_cpu_starting() in start_secondary() is not early # enough in the CPU-hotplug onlining process, which results in lockdep # splats as follows (with CONFIG_PROVE_RCU_LIST=y): # # WARNING: suspicious RCU usage # ----------------------------- # kernel/locking/lockdep.c:3497 RCU-list traversed in non-reader section!! # # other info that might help us debug this: # # RCU used illegally from offline CPU! # rcu_scheduler_active = 1, debug_locks = 1 # no locks held by swapper/1/0. # # Call Trace: # dump_stack+0xec/0x144 (unreliable) # lockdep_rcu_suspicious+0x128/0x14c # __lock_acquire+0x1060/0x1c60 # lock_acquire+0x140/0x5f0 # _raw_spin_lock_irqsave+0x64/0xb0 # clockevents_register_device+0x74/0x270 # register_decrementer_clockevent+0x94/0x110 # start_secondary+0x134/0x800 # start_secondary_prolog+0x10/0x14 # # This is avoided by adding a call to rcu_cpu_starting() near the # beginning of the start_secondary() function. Note that the # raw_smp_processor_id() is required in order to avoid calling into # lockdep before RCU has declared the CPU to be watched for readers. # # It's safe to call rcu_cpu_starting() in the arch code as well as later # in generic code, as explained by Paul: # # It uses a per-CPU variable so that RCU pays attention only to the # first call to rcu_cpu_starting() if there is more than one of them. # This is even intentional, due to there being a generic # arch-independent call to rcu_cpu_starting() in # notify_cpu_starting(). # # So multiple calls to rcu_cpu_starting() are fine by design. # # Fixes: 4d004099a668 ("lockdep: Fix lockdep recursion") # Signed-off-by: Qian Cai # Acked-by: Paul E. McKenney # [mpe: Add Fixes tag, reword slightly & expand change log] # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20201028182334.13466-1-cai@redhat.com # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-gcc --version # < /opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux-ld --version # < git log --format=%s --max-count=1 99f070b62322a4b8c1252952735806d09eb44b68 # < make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- defconfig # make -s -j 120 ARCH=mips O=/kisskb/build/powerpc-fixes_mips-defconfig_mipsel CROSS_COMPILE=/opt/cross/kisskb/br-mipsel-o32-full-2016.08-613-ge98b4dd/bin/mipsel-linux- FIT description: Linux 5.10.0-rc2-g99f070b62322 Created: Tue Nov 3 00:56:04 2020 Image 0 (kernel@0) Description: Linux 5.10.0-rc2-g99f070b62322 Created: Tue Nov 3 00:56:04 2020 Type: Kernel Image Compression: gzip compressed Data Size: 5173751 Bytes = 5052.49 KiB = 4.93 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x80982f78 Hash algo: sha1 Hash value: 5edfeb38170739207337c1f5e713cd3ba0cdd7cd Image 1 (fdt@boston) Description: img,boston Device Tree Created: Tue Nov 3 00:56:04 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 3793 Bytes = 3.70 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 4799f50d688573234da6e9d7701234d394759ef4 Image 2 (fdt@ni169445) Description: NI 169445 device tree Created: Tue Nov 3 00:56:04 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 1871 Bytes = 1.83 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 51b89b31605ee62038c8468c429af091dfc75ec7 Image 3 (fdt@ocelot_pcb123) Description: MSCC Ocelot PCB123 Device Tree Created: Tue Nov 3 00:56:04 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 4659 Bytes = 4.55 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 5bcb6e4f21e8e5372544aa130b3bd097355a9050 Image 4 (fdt@ocelot_pcb120) Description: MSCC Ocelot PCB120 Device Tree Created: Tue Nov 3 00:56:04 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 5418 Bytes = 5.29 KiB = 0.01 MiB Architecture: MIPS Hash algo: sha1 Hash value: 93d882f2009a217e0fa9dab94788535ed2be8476 Image 5 (fdt@xilfpga) Description: MIPSfpga (xilfpga) Device Tree Created: Tue Nov 3 00:56:04 2020 Type: Flat Device Tree Compression: uncompressed Data Size: 2708 Bytes = 2.64 KiB = 0.00 MiB Architecture: MIPS Hash algo: sha1 Hash value: 63d058b780f65e22da30f0a183433765f1807f1d Default Configuration: 'conf@default' Configuration 0 (conf@default) Description: Generic Linux kernel Kernel: kernel@0 Configuration 1 (conf@boston) Description: Boston Linux kernel Kernel: kernel@0 FDT: fdt@boston Configuration 2 (conf@ni169445) Description: NI 169445 Linux Kernel Kernel: kernel@0 FDT: fdt@ni169445 Configuration 3 (conf@ocelot_pcb123) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb123 Configuration 4 (conf@ocelot_pcb120) Description: Ocelot Linux kernel Kernel: kernel@0 FDT: fdt@ocelot_pcb120 Configuration 5 (conf@xilfpga) Description: MIPSfpga Linux kernel Kernel: kernel@0 FDT: fdt@xilfpga Completed OK # rm -rf /kisskb/build/powerpc-fixes_mips-defconfig_mipsel # Build took: 0:01:06.813144