# git rev-parse -q --verify 249fad734a25889a4f23ed014d43634af6798063^{commit} 249fad734a25889a4f23ed014d43634af6798063 already have revision, skipping fetch # git checkout -q -f -B kisskb 249fad734a25889a4f23ed014d43634af6798063 # git clean -qxdf # < git log -1 # commit 249fad734a25889a4f23ed014d43634af6798063 # Author: Madhavan Srinivasan # Date: Mon Nov 18 09:14:52 2019 +0530 # # powerpc/perf: Disable trace_imc pmu # # When a root user or a user with CAP_SYS_ADMIN privilege uses any # trace_imc performance monitoring unit events, to monitor application # or KVM threads, it may result in a checkstop (System crash). # # The cause is frequent switching of the "trace/accumulation" mode of # the In-Memory Collection hardware (LDBAR). # # This patch disables the trace_imc PMU unit entirely to avoid # triggering the checkstop. A future patch will reenable it at a later # stage once a workaround has been developed. # # Fixes: 012ae244845f ("powerpc/perf: Trace imc PMU functions") # Cc: stable@vger.kernel.org # v5.2+ # Signed-off-by: Madhavan Srinivasan # Tested-by: Hariharan T.S. # [mpe: Add pr_info_once() so dmesg shows the PMU has been disabled] # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20191118034452.9939-1-maddy@linux.vnet.ibm.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 249fad734a25889a4f23ed014d43634af6798063 # < make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc512x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc512x_defconfig # make -s -j 32 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc512x_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/drivers/mtd/nand/raw/mpc5121_nfc.c: In function 'ads5121_select_chip': /kisskb/src/drivers/mtd/nand/raw/mpc5121_nfc.c:293:19: warning: unused variable 'mtd' [-Wunused-variable] struct mtd_info *mtd = nand_to_mtd(nand); ^ INFO: Uncompressed kernel (size 0x68fb6c) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.4.0-g249fad734a25 Created: Fri Dec 6 03:09:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3371653 Bytes = 3292.63 KiB = 3.22 MiB Load Address: 00000000 Entry Point: 00000000 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc512x_defconfig_powerpc-gcc5 # Build took: 0:00:54.982015