# git rev-parse -q --verify c0beffc4f4c658fde86d52c837e784326e9cc875^{commit} c0beffc4f4c658fde86d52c837e784326e9cc875 already have revision, skipping fetch # git checkout -q -f -B kisskb c0beffc4f4c658fde86d52c837e784326e9cc875 # git clean -qxdf # < git log -1 # commit c0beffc4f4c658fde86d52c837e784326e9cc875 # Author: Nicholas Piggin # Date: Tue May 15 01:59:46 2018 +1000 # # powerpc/powernv: Fix opal_event_shutdown() called with interrupts disabled # # A kernel crash in process context that calls emergency_restart from # panic will end up calling opal_event_shutdown with interrupts disabled # but not in interrupt. This causes a sleeping function to be called # which gives the following warning with sysrq+c: # # Rebooting in 10 seconds.. # BUG: sleeping function called from invalid context at kernel/locking/mutex.c:238 # in_atomic(): 0, irqs_disabled(): 1, pid: 7669, name: bash # CPU: 20 PID: 7669 Comm: bash Tainted: G D W 4.17.0-rc5+ #3 # Call Trace: # dump_stack+0xb0/0xf4 (unreliable) # ___might_sleep+0x174/0x1a0 # mutex_lock+0x38/0xb0 # __free_irq+0x68/0x460 # free_irq+0x70/0xc0 # opal_event_shutdown+0xb4/0xf0 # opal_shutdown+0x24/0xa0 # pnv_shutdown+0x28/0x40 # machine_shutdown+0x44/0x60 # machine_restart+0x28/0x80 # emergency_restart+0x30/0x50 # panic+0x2a0/0x328 # oops_end+0x1ec/0x1f0 # bad_page_fault+0xe8/0x154 # handle_page_fault+0x34/0x38 # --- interrupt: 300 at sysrq_handle_crash+0x44/0x60 # LR = __handle_sysrq+0xfc/0x260 # flag_spec.62335+0x12b844/0x1e8db4 (unreliable) # __handle_sysrq+0xfc/0x260 # write_sysrq_trigger+0xa8/0xb0 # proc_reg_write+0xac/0x110 # __vfs_write+0x6c/0x240 # vfs_write+0xd0/0x240 # ksys_write+0x6c/0x110 # # Fixes: 9f0fd0499d30 ("powerpc/powernv: Add a virtual irqchip for opal events") # Signed-off-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 c0beffc4f4c658fde86d52c837e784326e9cc875 # < make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # make -s -j 80 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:10:0, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:77:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^ arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8548cds_32b.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/sbc8548.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/sbc8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e0009000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_bridge): /pcie@e000b000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8544ds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8541cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) arch/powerpc/boot/mpc8568mds.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8568mds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe08000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe09000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_bridge): /pcie@ffe0a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/mpc8572ds.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/tqm8548.dtb: Warning (pci_bridge): /pcie@e000a000/pcie@0: missing bus-range for PCI bridge arch/powerpc/boot/tqm8548.dtb: Warning (pci_device_bus_num): Failed prerequisite 'pci_bridge' arch/powerpc/boot/mpc8555cds.dtb: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5b6b8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb4af00) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5586010 Bytes = 5455.09 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585988 Bytes = 5455.07 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585767 Bytes = 5454.85 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585642 Bytes = 5454.73 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5586017 Bytes = 5455.09 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585598 Bytes = 5454.69 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5562095 Bytes = 5431.73 kB = 5.30 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585372 Bytes = 5454.46 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585599 Bytes = 5454.69 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585783 Bytes = 5454.87 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585772 Bytes = 5454.86 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585707 Bytes = 5454.79 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585772 Bytes = 5454.86 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585990 Bytes = 5455.07 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585580 Bytes = 5454.67 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.17.0-rc3-gc0beffc Created: Fri May 18 04:00:30 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5585568 Bytes = 5454.66 kB = 5.33 MB Load Address: 00c00000 Entry Point: 00c00278 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_defconfig_powerpc-5.3 # Build took: 0:01:54.625447