• Paul Burton's avatar
    MIPS: CPS: Prevent multi-core with dcache aliasing · 5570ba2e
    Paul Burton authored
    Systems using the MIPS Coherence Manager (CM) cannot support multi-core
    SMP with dcache aliasing. This is because CPU caches are VIPT, but
    interventions in CM-based systems provide only the physical address to
    remote caches. This means that interventions may behave incorrectly in
    the presence of an aliasing dcache, since the physical address used
    when handling an intervention may lead to operation on an aliased cache
    line rather than the correct line.
    
    Prevent us from running into this issue by refusing to boot secondary
    cores in systems where dcache aliasing may occur.
    Signed-off-by: default avatarPaul Burton <paul.burton@imgtec.com>
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16196/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    5570ba2e
smp-cps.c 14.4 KB