# 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 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc64_defconfig # make -s -j 24 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc64_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- WARNING: 2 bad relocations c00000000199d480 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_start c00000000199d488 R_PPC64_ADDR64 _binary__btf_vmlinux_bin_end Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc64_defconfig_powerpc-gcc5 # Build took: 0:03:51.198127