From: Srikar Dronamraju Date: Thu, 14 Dec 2023 18:07:12 +0000 (+0530) Subject: powerpc/smp: Disable MC domain for shared processor X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0e1c1986e0e65746daa05405d7747ce882f83cf1;p=linux.git powerpc/smp: Disable MC domain for shared processor 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 Signed-off-by: Michael Ellerman Link: https://msgid.link/20231214180720.310852-3-srikar@linux.vnet.ibm.com --- diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c index 3fc8ad9646a44..2cebc53e97f95 100644 --- a/arch/powerpc/kernel/smp.c +++ b/arch/powerpc/kernel/smp.c @@ -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; }