# git rev-parse -q --verify 0be47634db0baa9e91c7e635e7e73355d6a5cf43^{commit} 0be47634db0baa9e91c7e635e7e73355d6a5cf43 already have revision, skipping fetch # git checkout -q -f -B kisskb 0be47634db0baa9e91c7e635e7e73355d6a5cf43 # git clean -qxdf # < git log -1 # commit 0be47634db0baa9e91c7e635e7e73355d6a5cf43 # Author: Gautham R. Shenoy # Date: Thu Dec 10 16:08:59 2020 +0530 # # powerpc/cacheinfo: Print correct cache-sibling map/list for L2 cache # # On POWER platforms where only some groups of threads within a core # share the L2-cache (indicated by the ibm,thread-groups device-tree # property), we currently print the incorrect shared_cpu_map/list for # L2-cache in the sysfs. # # This patch reports the correct shared_cpu_map/list on such platforms. # # Example: # On a platform with "ibm,thread-groups" set to # 00000001 00000002 00000004 00000000 # 00000002 00000004 00000006 00000001 # 00000003 00000005 00000007 00000002 # 00000002 00000004 00000000 00000002 # 00000004 00000006 00000001 00000003 # 00000005 00000007 # # This indicates that threads {0,2,4,6} in the core share the L2-cache # and threads {1,3,5,7} in the core share the L2 cache. # # However, without the patch, the shared_cpu_map/list for L2 for CPUs 0, # 1 is reported in the sysfs as follows: # # /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_list:0-7 # /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map:000000,000000ff # # /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_list:0-7 # /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_map:000000,000000ff # # With the patch, the shared_cpu_map/list for L2 cache for CPUs 0, 1 is # correctly reported as follows: # # /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_list:0,2,4,6 # /sys/devices/system/cpu/cpu0/cache/index2/shared_cpu_map:000000,00000055 # # /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_list:1,3,5,7 # /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_map:000000,000000aa # # This patch also defines cpu_l2_cache_mask() for !CONFIG_SMP case. # # Signed-off-by: Gautham R. Shenoy # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/1607596739-32439-6-git-send-email-ego@linux.vnet.ibm.com # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 0be47634db0baa9e91c7e635e7e73355d6a5cf43 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc6xx_defconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/block/genhd.c: In function 'diskstats_show': /kisskb/src/block/genhd.c:1659:1: warning: the frame size of 1160 bytes is larger than 1024 bytes [-Wframe-larger-than=] } ^ INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc91f20) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc81910) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc81910) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5450055 Bytes = 5322.32 KiB = 5.20 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5450134 Bytes = 5322.40 KiB = 5.20 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5446869 Bytes = 5319.21 KiB = 5.19 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5449412 Bytes = 5321.69 KiB = 5.20 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5450182 Bytes = 5322.44 KiB = 5.20 MiB Load Address: 00d00000 Entry Point: 00d00894 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5447093 Bytes = 5319.43 KiB = 5.19 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5416125 Bytes = 5289.18 KiB = 5.17 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5447645 Bytes = 5319.97 KiB = 5.20 MiB Load Address: 00d00000 Entry Point: 00d00294 Image Name: Linux-5.10.0-rc2+ Created: Fri Dec 11 02:48:01 2020 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 5449453 Bytes = 5321.73 KiB = 5.20 MiB Load Address: 00d00000 Entry Point: 00d00294 Completed OK # rm -rf /kisskb/build/powerpc-next_ppc6xx_defconfig_powerpc-gcc4.9 # Build took: 0:02:01.224805