# 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-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-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-5.3 CROSS_COMPILE=/opt/cross/kisskb/gcc-5.3.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_mpc85xx_smp_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)) ^ INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Uncompressed kernel (size 0xbd9594) 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 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbd9594) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xc00000) INFO: Uncompressed kernel (size 0xbc8ddc) 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 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842172 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842066 Bytes = 5705.14 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844513 Bytes = 5707.53 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842100 Bytes = 5705.18 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842177 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844644 Bytes = 5707.66 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842161 Bytes = 5705.24 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842090 Bytes = 5705.17 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844012 Bytes = 5707.04 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842181 Bytes = 5705.25 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5841907 Bytes = 5704.99 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842143 Bytes = 5705.22 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5818362 Bytes = 5681.99 kB = 5.55 MB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842064 Bytes = 5705.14 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c00278 Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5842353 Bytes = 5705.42 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Image Name: Linux-4.16.0-rc4-gf2748bd Created: Wed Apr 4 03:12:22 2018 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5844287 Bytes = 5707.31 kB = 5.57 MB Load Address: 00c00000 Entry Point: 00c0020c Completed OK # rm -rf /kisskb/build/powerpc-next_mpc85xx_smp_defconfig_powerpc-5.3 # Build took: 0:01:11.770578