OSDN Git Service

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)
commite9ef81e1079b0c4c374fba0f9affa7129c7c913b
tree6715fb49cda98b91be61f073c8254764ec9f2921
parent69aa8e078545bc14d84a8b4b3cb914ac8f9f280e
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