# git rev-parse -q --verify 478cb53ce5e2d5fd96c2da42d0f9d2b53620881a^{commit} 478cb53ce5e2d5fd96c2da42d0f9d2b53620881a already have revision, skipping fetch # git checkout -q -f -B kisskb 478cb53ce5e2d5fd96c2da42d0f9d2b53620881a # git clean -qxdf # < git log -1 # commit 478cb53ce5e2d5fd96c2da42d0f9d2b53620881a # Author: Nicholas Piggin # Date: Wed Nov 10 12:50:56 2021 +1000 # # powerpc/watchdog: read TB close to where it is used # # When taking watchdog actions, printing messages, comparing and # re-setting wd_smp_last_reset_tb, etc., read TB close to the point of use # and under wd_smp_lock or printing lock (if applicable). # # This should keep timebase mostly monotonic with kernel log messages, and # could prevent (in theory) a laggy CPU updating wd_smp_last_reset_tb to # something a long way in the past, and causing other CPUs to appear to be # stuck. # # These additional TB reads are all slowpath (lockup has been detected), # so performance does not matter. # # Signed-off-by: Nicholas Piggin # Reviewed-by: Laurent Dufour # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20211110025056.2084347-5-npiggin@gmail.com # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 478cb53ce5e2d5fd96c2da42d0f9d2b53620881a # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- randconfig # Added to kconfig CONFIG_STANDALONE=y # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # Added to kconfig CONFIG_CPU_BIG_ENDIAN=y # Added to kconfig CONFIG_PPC64=y # Added to kconfig CONFIG_PPC_DISABLE_WERROR=y # Added to kconfig CONFIG_SECTION_MISMATCH_WARN_ONLY=y # Added to kconfig CONFIG_PREVENT_FIRMWARE_BUILD=y # Added to kconfig CONFIG_CC_STACKPROTECTOR_STRONG=n # Added to kconfig CONFIG_GCC_PLUGINS=n # Added to kconfig CONFIG_LD_HEAD_STUB_CATCH=y # Added to kconfig CONFIG_TRIM_UNUSED_KSYMS=n # Added to kconfig CONFIG_UBSAN=n # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:5780:warning: override: reassigning to symbol STANDALONE .config:5785:warning: override: reassigning to symbol PPC_DISABLE_WERROR .config:5786:warning: override: reassigning to symbol SECTION_MISMATCH_WARN_ONLY .config:5789:warning: override: reassigning to symbol GCC_PLUGINS .config:5792:warning: override: reassigning to symbol UBSAN # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- :1559:2: warning: #warning syscall futex_waitv not implemented [-Wcpp] /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.stubs' from `drivers/net/ethernet/freescale/enetc/enetc.o' being placed in section `.stubs' /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.stubs' from `drivers/net/ethernet/freescale/enetc/enetc_cbdr.o' being placed in section `.stubs' /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: warning: orphan section `.stubs' from `drivers/net/ethernet/freescale/enetc/enetc_ethtool.o' being placed in section `.stubs' /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld: arch/powerpc/sysdev/xive/common.o:(.toc+0x0): undefined reference to `xive_has_save_restore' make[1]: *** [/kisskb/src/Makefile:1161: vmlinux] Error 1 make: *** [Makefile:219: __sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next-rand_powerpc-randconfig_powerpc-gcc9 # Build took: 0:05:34.634048