# git rev-parse -q --verify 3c53776e29f81719efcf8f7a6e30cdf753bee94d^{commit} 3c53776e29f81719efcf8f7a6e30cdf753bee94d already have revision, skipping fetch # git checkout -q -f -B kisskb 3c53776e29f81719efcf8f7a6e30cdf753bee94d # git clean -qxdf # < git log -1 # commit 3c53776e29f81719efcf8f7a6e30cdf753bee94d # Author: Linus Torvalds # Date: Mon Jan 8 11:51:04 2018 -0800 # # Mark HI and TASKLET softirq synchronous # # Way back in 4.9, we committed 4cd13c21b207 ("softirq: Let ksoftirqd do # its job"), and ever since we've had small nagging issues with it. For # example, we've had: # # 1ff688209e2e ("watchdog: core: make sure the watchdog_worker is not deferred") # 8d5755b3f77b ("watchdog: softdog: fire watchdog even if softirqs do not get to run") # 217f69743681 ("net: busy-poll: allow preemption in sk_busy_loop()") # # all of which worked around some of the effects of that commit. # # The DVB people have also complained that the commit causes excessive USB # URB latencies, which seems to be due to the USB code using tasklets to # schedule USB traffic. This seems to be an issue mainly when already # living on the edge, but waiting for ksoftirqd to handle it really does # seem to cause excessive latencies. # # Now Hanna Hawa reports that this issue isn't just limited to USB URB and # DVB, but also causes timeout problems for the Marvell SoC team: # # "I'm facing kernel panic issue while running raid 5 on sata disks # connected to Macchiatobin (Marvell community board with Armada-8040 # SoC with 4 ARMv8 cores of CA72) Raid 5 built with Marvell DMA engine # and async_tx mechanism (ASYNC_TX_DMA [=y]); the DMA driver (mv_xor_v2) # uses a tasklet to clean the done descriptors from the queue" # # The latency problem causes a panic: # # mv_xor_v2 f0400000.xor: dma_sync_wait: timeout! # Kernel panic - not syncing: async_tx_quiesce: DMA error waiting for transaction # # We've discussed simply just reverting the original commit entirely, and # also much more involved solutions (with per-softirq threads etc). This # patch is intentionally stupid and fairly limited, because the issue # still remains, and the other solutions either got sidetracked or had # other issues. # # We should probably also consider the timer softirqs to be synchronous # and not be delayed to ksoftirqd (since they were the issue with the # earlier watchdog problems), but that should be done as a separate patch. # This does only the tasklet cases. # # Reported-and-tested-by: Hanna Hawa # Reported-and-tested-by: Josef Griebichler # Reported-by: Mauro Carvalho Chehab # Cc: Alan Stern # Cc: Greg Kroah-Hartman # Cc: Eric Dumazet # Cc: Ingo Molnar # Signed-off-by: Linus Torvalds # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 3c53776e29f81719efcf8f7a6e30cdf753bee94d # < make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/linus_mpc85xx_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1256:20: warning: 'root' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/printk/printk.c: In function 'devkmsg_sysctl_set_loglvl': /kisskb/src/kernel/printk/printk.c:183:16: warning: 'old' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:803:70: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:800:68: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1433:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function 'regmap_raw_read': /kisskb/src/drivers/base/regmap/regmap.c:2497:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/base/regmap/regmap.c: In function '_regmap_raw_write': /kisskb/src/drivers/base/regmap/regmap.c:1819:6: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] /kisskb/src/drivers/tty/serial/8250/8250_core.c: In function 'univ8250_release_irq': /kisskb/src/drivers/tty/serial/8250/8250_core.c:251:18: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/drivers/tty/serial/8250/8250_core.c:231:19: note: 'i' was declared here /kisskb/src/fs/proc/inode.c: In function 'proc_reg_open': /kisskb/src/include/linux/list.h:65:12: warning: 'pdeo' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/fs/proc/inode.c:339:21: note: 'pdeo' was declared here /kisskb/src/fs/udf/unicode.c: In function 'udf_name_conv_char': /kisskb/src/fs/udf/unicode.c:132:8: warning: 'c' may be used uninitialized in this function [-Wuninitialized] 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/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 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb6b49c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xb5ad50) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532707 Bytes = 5403.03 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5508270 Bytes = 5379.17 kB = 5.25 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532737 Bytes = 5403.06 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:27 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532186 Bytes = 5402.53 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532704 Bytes = 5403.03 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532206 Bytes = 5402.54 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532705 Bytes = 5403.03 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532393 Bytes = 5402.73 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532842 Bytes = 5403.17 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:29 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5531983 Bytes = 5402.33 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532784 Bytes = 5403.11 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:29 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532100 Bytes = 5402.44 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532207 Bytes = 5402.55 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532113 Bytes = 5402.45 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:28 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532859 Bytes = 5403.18 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.18.0-rc5-g3c53776 Created: Wed Jul 18 10:46:29 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5532949 Bytes = 5403.27 kB = 5.28 MB Load Address: 00c00000 Entry Point: 00c00248 Completed OK # rm -rf /kisskb/build/linus_mpc85xx_defconfig_powerpc # Build took: 0:01:31.408485