lkml.org 
[lkml]   [2023]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v4 2/5] powerpc/smp: Disable MC domain for shared processor
    Date
    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>
    ---
    arch/powerpc/kernel/smp.c | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/arch/powerpc/kernel/smp.c b/arch/powerpc/kernel/smp.c
    index 69a3262024f1..1dae4e9ba42d 100644
    --- a/arch/powerpc/kernel/smp.c
    +++ b/arch/powerpc/kernel/smp.c
    @@ -1052,6 +1052,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;
    }

    --
    2.31.1
    \
     
     \ /
      Last update: 2023-11-20 13:53    [W:7.315 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site