powerpc/smp: Disable MC domain for shared processor
authorSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Thu, 14 Dec 2023 18:07:12 +0000 (23:37 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 15 Dec 2023 02:51:34 +0000 (13:51 +1100)
Like L2-cache info, coregroup information which is used to determine MC
sched domains is only present on dedicated LPARs. i.e PowerVM doesn't
export coregroup information for shared processor LPARs. Hence disable
creating MC domains on shared LPAR Systems.

Signed-off-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231214180720.310852-3-srikar@linux.vnet.ibm.com
arch/powerpc/kernel/smp.c

index 3fc8ad9646a442676cb751fd34e300339f574bc3..2cebc53e97f950ab57d3b9af337f2ea0ded9decf 100644 (file)
@@ -1055,6 +1055,10 @@ static struct cpumask *cpu_coregroup_mask(int cpu)
 
 static bool has_coregroup_support(void)
 {
+       /* Coregroup identification not available on shared systems */
+       if (is_shared_processor())
+               return 0;
+
        return coregroup_enabled;
 }