• Ian Munsie's avatar
    powerpc/mm: Add hooks for cxl · 4c6d9acc
    Ian Munsie authored
    This adds hooks into the core powerpc mm code for cxl.
    
    The core powerpc code sometimes uses local tlbie. Unfortunately this won't
    work with the current cxl driver as it relies on snooping tlbie broadcasts.
    
    The cxl hardware can have TLB entries invalidated via MMIO but this is not
    currently supported by the driver. In future we can make local tlbie smarter so
    that it invalidates cxl contexts via MMIO when it needs to but for now we have
    this workaround.
    
    This workaround checks for any active cxl contexts and if so, disables local
    tlbie.
    
    This also adds a hook for when SLBs are invalidated. This ensures any
    corresponding SLBs in cxl are also invalidated at the same time. This is
    required for segment demotion.
    Signed-off-by: default avatarIan Munsie <imunsie@au1.ibm.com>
    Signed-off-by: default avatarMichael Neuling <mikey@neuling.org>
    Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
    4c6d9acc
hash_native_64.c 18.6 KB