# git rev-parse -q --verify ce9f98c0229de93b6b90bcf3deb536f922ad893a^{commit} ce9f98c0229de93b6b90bcf3deb536f922ad893a already have revision, skipping fetch # git checkout -q -f -B kisskb ce9f98c0229de93b6b90bcf3deb536f922ad893a # git clean -qxdf # < git log -1 # commit ce9f98c0229de93b6b90bcf3deb536f922ad893a # Author: Athira Rajeev # Date: Wed Aug 26 02:40:29 2020 -0400 # # powerpc/perf: Fix reading of MSR[HV/PR] bits in trace-imc # # IMC trace-mode uses MSR[HV/PR] bits to set the cpumode for the # instruction pointer captured in each sample. The bits are fetched from # the third double word of the trace record. Reading third double word # from IMC trace record should use be64_to_cpu() along with READ_ONCE # inorder to fetch correct MSR[HV/PR] bits. Patch addresses this change. # # Currently we are using PERF_RECORD_MISC_HYPERVISOR as cpumode if MSR # HV is 1 and PR is 0 which means the address is from host counter. But # using PERF_RECORD_MISC_HYPERVISOR for host counter data will fail to # resolve the address -> symbol during "perf report" because perf tools # side uses PERF_RECORD_MISC_KERNEL to represent the host counter data. # Therefore, fix the trace imc sample data to use # PERF_RECORD_MISC_KERNEL as cpumode for host kernel information. # # Fixes: 77ca3951cc37 ("powerpc/perf: Add kernel support for new MSR[HV PR] bits in trace-imc") # Signed-off-by: Athira Rajeev # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/1598424029-1662-1-git-send-email-atrajeev@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 ce9f98c0229de93b6b90bcf3deb536f922ad893a # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/kernel/rcu/update.c:591:0: /kisskb/src/kernel/rcu/tasks.h:593:13: warning: 'show_rcu_tasks_classic_gp_kthread' defined but not used [-Wunused-function] static void show_rcu_tasks_classic_gp_kthread(void) { } ^ In file included from /kisskb/src/include/linux/skbuff.h:31:0, from /kisskb/src/include/linux/if_ether.h:19, from /kisskb/src/include/uapi/linux/ethtool.h:19, from /kisskb/src/include/linux/ethtool.h:18, from /kisskb/src/include/linux/netdevice.h:37, from /kisskb/src/drivers/net/ethernet/sfc/net_driver.h:13, from /kisskb/src/drivers/net/ethernet/sfc/ef100.c:12: /kisskb/src/drivers/net/ethernet/sfc/ef100.c: In function 'ef100_pci_parse_continue_entry': /kisskb/src/include/linux/dma-mapping.h:139:25: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ /kisskb/src/drivers/net/ethernet/sfc/ef100.c:145:6: note: in expansion of macro 'DMA_BIT_MASK' DMA_BIT_MASK(ESF_GZ_TX_SEND_ADDR_WIDTH), ^ /kisskb/src/include/linux/dma-mapping.h:139:25: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ /kisskb/src/drivers/net/ethernet/sfc/ef100.c:163:6: note: in expansion of macro 'DMA_BIT_MASK' DMA_BIT_MASK(ESF_GZ_TX_SEND_ADDR_WIDTH), ^ /kisskb/src/drivers/net/ethernet/sfc/ef100.c: In function 'ef100_pci_parse_xilinx_cap': /kisskb/src/include/linux/dma-mapping.h:139:25: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ /kisskb/src/drivers/net/ethernet/sfc/ef100.c:337:5: note: in expansion of macro 'DMA_BIT_MASK' DMA_BIT_MASK(ESF_GZ_TX_SEND_ADDR_WIDTH), ^ /kisskb/src/drivers/net/ethernet/sfc/ef100.c: In function 'ef100_pci_probe': /kisskb/src/include/linux/dma-mapping.h:139:25: warning: large integer implicitly truncated to unsigned type [-Woverflow] #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) ^ /kisskb/src/drivers/net/ethernet/sfc/ef100.c:498:5: note: in expansion of macro 'DMA_BIT_MASK' DMA_BIT_MASK(ESF_GZ_TX_SEND_ADDR_WIDTH), ^ INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xae9478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xaf9b60) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) INFO: Uncompressed kernel (size 0xae9478) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xb00000) Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5236862 Bytes = 5114.12 KiB = 4.99 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5267265 Bytes = 5143.81 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5267253 Bytes = 5143.80 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5267322 Bytes = 5143.87 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5267096 Bytes = 5143.65 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00894 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:09 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5266694 Bytes = 5143.26 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5267174 Bytes = 5143.72 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5267623 Bytes = 5144.16 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00294 Image Name: Linux-5.9.0-rc1+ Created: Thu Aug 27 00:27:10 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5266920 Bytes = 5143.48 KiB = 5.02 MiB Load Address: 00b00000 Entry Point: 00b00894 Completed OK # rm -rf /kisskb/build/powerpc-fixes_ppc6xx_defconfig_powerpc-gcc5 # Build took: 0:03:49.189937