# git rev-parse -q --verify 0be47634db0baa9e91c7e635e7e73355d6a5cf43^{commit} # git fetch -q -n -f git://gitlab.ozlabs.ibm.com/linuxppc/linux.git next-test # git rev-parse -q --verify 0be47634db0baa9e91c7e635e7e73355d6a5cf43^{commit} 0be47634db0baa9e91c7e635e7e73355d6a5cf43 # 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-8.1.0-nolibc/m68k-linux/bin/m68k-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux-ld --version # < git log --format=%s --max-count=1 0be47634db0baa9e91c7e635e7e73355d6a5cf43 # < make -s -j 24 ARCH=m68k O=/kisskb/build/powerpc-next_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux- defconfig # < make -s -j 24 ARCH=m68k O=/kisskb/build/powerpc-next_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux- help # make -s -j 24 ARCH=m68k O=/kisskb/build/powerpc-next_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux- olddefconfig # make -s -j 24 ARCH=m68k O=/kisskb/build/powerpc-next_m68k-defconfig_m68k-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/m68k-linux/bin/m68k-linux- /kisskb/src/arch/m68k/mvme147/config.c: In function 'mvme147_hwclk': /kisskb/src/arch/m68k/mvme147/config.c:174:2: warning: #warning check me! [-Wcpp] #warning check me! ^~~~~~~ /kisskb/src/arch/m68k/mvme16x/config.c: In function 'mvme16x_hwclk': /kisskb/src/arch/m68k/mvme16x/config.c:439:2: warning: #warning check me! [-Wcpp] #warning check me! ^~~~~~~ In file included from /kisskb/src/kernel/rcu/update.c:578: /kisskb/src/kernel/rcu/tasks.h:710:13: warning: 'show_rcu_tasks_rude_gp_kthread' defined but not used [-Wunused-function] static void show_rcu_tasks_rude_gp_kthread(void) {} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/drivers/net/ethernet/8390/xsurf100.c:48: /kisskb/src/drivers/net/ethernet/8390/lib8390.c:995:27: warning: '____alloc_ei_netdev' defined but not used [-Wunused-function] static struct net_device *____alloc_ei_netdev(int size) ^~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:957:13: warning: '__ei_set_multicast_list' defined but not used [-Wunused-function] static void __ei_set_multicast_list(struct net_device *dev) ^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:857:33: warning: '__ei_get_stats' defined but not used [-Wunused-function] static struct net_device_stats *__ei_get_stats(struct net_device *dev) ^~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:512:13: warning: '__ei_poll' defined but not used [-Wunused-function] static void __ei_poll(struct net_device *dev) ^~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:303:20: warning: '__ei_start_xmit' defined but not used [-Wunused-function] static netdev_tx_t __ei_start_xmit(struct sk_buff *skb, ^~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:257:13: warning: '__ei_tx_timeout' defined but not used [-Wunused-function] static void __ei_tx_timeout(struct net_device *dev, unsigned int txqueue) ^~~~~~~~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:233:12: warning: '__ei_close' defined but not used [-Wunused-function] static int __ei_close(struct net_device *dev) ^~~~~~~~~~ /kisskb/src/drivers/net/ethernet/8390/lib8390.c:204:12: warning: '__ei_open' defined but not used [-Wunused-function] static int __ei_open(struct net_device *dev) ^~~~~~~~~ In file included from /kisskb/src/arch/m68k/include/asm/atomic.h:7, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/linux/cpumask.h:13, from /kisskb/src/include/linux/smp.h:13, from /kisskb/src/include/linux/lockdep.h:14, from /kisskb/src/include/linux/spinlock.h:59, from /kisskb/src/include/linux/wait.h:9, from /kisskb/src/include/linux/wait_bit.h:8, from /kisskb/src/include/linux/fs.h:6, from /kisskb/src/fs/ocfs2/file.c:13: /kisskb/src/fs/ocfs2/file.c: In function 'ocfs2_file_write_iter': /kisskb/src/arch/m68k/include/asm/cmpxchg.h:79:22: warning: value computed is not used [-Wunused-value] #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/fs/ocfs2/file.c:2419:3: note: in expansion of macro 'xchg' xchg(&iocb->ki_complete, saved_ki_complete); ^~~~ Completed OK # rm -rf /kisskb/build/powerpc-next_m68k-defconfig_m68k-gcc8 # Build took: 0:03:01.709043