# git rev-parse -q --verify 2d9cdedc4bdfec9a9d484d3564a1153c3f76ae2d^{commit} 2d9cdedc4bdfec9a9d484d3564a1153c3f76ae2d already have revision, skipping fetch # git checkout -q -f -B kisskb 2d9cdedc4bdfec9a9d484d3564a1153c3f76ae2d # git clean -qxdf # < git log -1 # commit 2d9cdedc4bdfec9a9d484d3564a1153c3f76ae2d # Author: Qian Cai # Date: Wed Oct 28 11:27:17 2020 -0400 # # powerpc/eeh_cache: Fix a possible debugfs deadlock # # Lockdep complains that a possible deadlock below in # eeh_addr_cache_show() because it is acquiring a lock with IRQ enabled, # but eeh_addr_cache_insert_dev() needs to acquire the same lock with IRQ # disabled. Let's just make eeh_addr_cache_show() acquire the lock with # IRQ disabled as well. # # CPU0 CPU1 # ---- ---- # lock(&pci_io_addr_cache_root.piar_lock); # local_irq_disable(); # lock(&tp->lock); # lock(&pci_io_addr_cache_root.piar_lock); # # lock(&tp->lock); # # *** DEADLOCK *** # # lock_acquire+0x140/0x5f0 # _raw_spin_lock_irqsave+0x64/0xb0 # eeh_addr_cache_insert_dev+0x48/0x390 # eeh_probe_device+0xb8/0x1a0 # pnv_pcibios_bus_add_device+0x3c/0x80 # pcibios_bus_add_device+0x118/0x290 # pci_bus_add_device+0x28/0xe0 # pci_bus_add_devices+0x54/0xb0 # pcibios_init+0xc4/0x124 # do_one_initcall+0xac/0x528 # kernel_init_freeable+0x35c/0x3fc # kernel_init+0x24/0x148 # ret_from_kernel_thread+0x5c/0x80 # # lock_acquire+0x140/0x5f0 # _raw_spin_lock+0x4c/0x70 # eeh_addr_cache_show+0x38/0x110 # seq_read+0x1a0/0x660 # vfs_read+0xc8/0x1f0 # ksys_read+0x74/0x130 # system_call_exception+0xf8/0x1d0 # system_call_common+0xe8/0x218 # # Fixes: 5ca85ae6318d ("powerpc/eeh_cache: Add a way to dump the EEH address cache") # Signed-off-by: Qian Cai # Reviewed-by: Oliver O'Halloran # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20201028152717.8967-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 2d9cdedc4bdfec9a9d484d3564a1153c3f76ae2d # < 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-rc1-g2d9cdedc4bdf Created: Fri Oct 30 00:48:53 2020 Image 0 (kernel@0) Description: Linux 5.10.0-rc1-g2d9cdedc4bdf Created: Fri Oct 30 00:48:53 2020 Type: Kernel Image Compression: gzip compressed Data Size: 5173252 Bytes = 5052.00 KiB = 4.93 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x80982d18 Hash algo: sha1 Hash value: 198ff9e6552daf8d83f9cc0d546424125050f574 Image 1 (fdt@boston) Description: img,boston Device Tree Created: Fri Oct 30 00:48:53 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: Fri Oct 30 00:48:53 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: Fri Oct 30 00:48:53 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: Fri Oct 30 00:48:53 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: Fri Oct 30 00:48:53 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:07.218170