# git rev-parse -q --verify f2748bdfe157343eb8cf910a1d89ccf2fd20100b^{commit} f2748bdfe157343eb8cf910a1d89ccf2fd20100b already have revision, skipping fetch # git checkout -q -f -B kisskb f2748bdfe157343eb8cf910a1d89ccf2fd20100b # git clean -qxdf # < git log -1 # commit f2748bdfe157343eb8cf910a1d89ccf2fd20100b # Author: Nicholas Piggin # Date: Sun Apr 1 20:36:15 2018 +1000 # # powerpc/powernv: Always stop secondaries before reboot/shutdown # # Currently powernv reboot and shutdown requests just leave secondaries # to do their own things. This is undesirable because they can trigger # any number of watchdogs while waiting for reboot, but also we don't # know what else they might be doing -- they might be causing trouble, # trampling memory, etc. # # The opal scheduled flash update code already ran into watchdog problems # due to flashing taking a long time, and it was fixed with 2196c6f1ed # ("powerpc/powernv: Return secondary CPUs to firmware before FW update"), # which returns secondaries to opal. It's been found that regular reboots # can take over 10 seconds, which can result in the hard lockup watchdog # firing, # # reboot: Restarting system # [ 360.038896709,5] OPAL: Reboot request... # Watchdog CPU:0 Hard LOCKUP # Watchdog CPU:44 detected Hard LOCKUP other CPUS:16 # Watchdog CPU:16 Hard LOCKUP # watchdog: BUG: soft lockup - CPU#16 stuck for 3s! [swapper/16:0] # # This patch removes the special case for flash update, and calls # smp_send_stop in all cases before calling reboot/shutdown. # # smp_send_stop could return CPUs to OPAL, the main reason not to is # that the request could come from a NMI that interrupts OPAL code, # so re-entry to OPAL can cause a number of problems. Putting # secondaries into simple spin loops improves the chances of a # successful reboot. # # Signed-off-by: Nicholas Piggin # Reviewed-by: Vasant Hegde # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux-gcc --version # < git log --format=%s --max-count=1 f2748bdfe157343eb8cf910a1d89ccf2fd20100b # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc CROSS_COMPILE=/opt/cross/kisskb/gcc-4.6.3-nolibc/powerpc-linux/bin/powerpc-linux- /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/mm/hugetlb.c: In function 'alloc_pool_huge_page': /kisskb/src/mm/hugetlb.c:1439:5: warning: 'page' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/kernel/cgroup/cgroup-v1.c: In function 'cgroup1_mount': /kisskb/src/kernel/cgroup/cgroup-v1.c:1268:20: warning: 'root' 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/sound/soc/codecs/wm8960.c: In function 'wm8960_configure_clocking': /kisskb/src/sound/soc/codecs/wm8960.c:803:56: warning: 'j' may be used uninitialized in this function [-Wuninitialized] /kisskb/src/sound/soc/codecs/wm8960.c:800:54: warning: 'i' may be used uninitialized in this function [-Wuninitialized] /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 INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xbe12d8) 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 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbe12d8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd0b54) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761726 Bytes = 5626.69 kB = 5.49 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5738445 Bytes = 5603.95 kB = 5.47 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761969 Bytes = 5626.92 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5764857 Bytes = 5629.74 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5764452 Bytes = 5629.35 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5762755 Bytes = 5627.69 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5762013 Bytes = 5626.97 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761724 Bytes = 5626.68 kB = 5.49 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761967 Bytes = 5626.92 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5763591 Bytes = 5628.51 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5764729 Bytes = 5629.62 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761752 Bytes = 5626.71 kB = 5.49 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761981 Bytes = 5626.93 kB = 5.50 MB Load Address: 00c00000 Entry Point: 00c00248 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761751 Bytes = 5626.71 kB = 5.49 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761691 Bytes = 5626.65 kB = 5.49 MB Load Address: 00c00000 Entry Point: 00c00288 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 02:31:07 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5761889 Bytes = 5626.84 kB = 5.49 MB Load Address: 00c00000 Entry Point: 00c00288 Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc # Build took: 0:01:05.875607