]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/smp: Use existing L2 cache_map cpumask to find L3 cache siblings
authorParth Shah <parth@linux.ibm.com>
Wed, 28 Jul 2021 17:56:07 +0000 (23:26 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Aug 2021 00:53:39 +0000 (10:53 +1000)
commit418ab57b1ac39eba5c65544308a8c3f95680d8cf
tree6715fb49cda98b91be61f073c8254764ec9f2921
parent3071e77943738b062914a8f98d9f826bb5619471
powerpc/smp: Use existing L2 cache_map cpumask to find L3 cache siblings

On POWER10 systems, the "ibm,thread-groups" property "2" indicates the cpus
in thread-group share both L2 and L3 caches. Hence, use cache_property = 2
itself to find both the L2 and L3 cache siblings.
Hence, create a new thread_group_l3_cache_map to keep list of L3 siblings,
but fill the mask using same property "2" array.

Signed-off-by: Parth Shah <parth@linux.ibm.com>
Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210728175607.591679-4-parth@linux.ibm.com
arch/powerpc/include/asm/smp.h
arch/powerpc/kernel/cacheinfo.c
arch/powerpc/kernel/smp.c