• Gautham R. Shenoy's avatar
    powerpc: Detect the presence of big-cores via "ibm, thread-groups" · 425752c6
    Gautham R. Shenoy authored
    On IBM POWER9, the device tree exposes a property array identifed by
    "ibm,thread-groups" which will indicate which groups of threads share
    a particular set of resources.
    
    As of today we only have one form of grouping identifying the group of
    threads in the core that share the L1 cache, translation cache and
    instruction data flow.
    
    This patch adds helper functions to parse the contents of
    "ibm,thread-groups" and populate a per-cpu variable to cache
    information about siblings of each CPU that share the L1, traslation
    cache and instruction data-flow.
    
    It also defines a new global variable named "has_big_cores" which
    indicates if the cores on this configuration have multiple groups of
    threads that share L1 cache.
    
    For each online CPU, it maintains a cpu_smallcore_mask, which
    indicates the online siblings which share the L1-cache with it.
    Signed-off-by: default avatarGautham R. Shenoy <ego@linux.vnet.ibm.com>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    425752c6
smp.h 6.43 KB