summaryrefslogtreecommitdiffstats
path: root/arch/mips/mm/tlb-funcs.S
diff options
context:
space:
mode:
authorMaciej W. Rozycki2013-09-23 15:01:53 +0200
committerRalf Baechle2013-10-29 21:24:48 +0100
commit7f177a52a13e3d3751b599ae2b46d3d4658985cd (patch)
tree6648ace46bdcb938c636b20f7954b87f55965177 /arch/mips/mm/tlb-funcs.S
parentMIPS: DECstation CPU feature overrides (diff)
downloadkernel-qcow2-linux-7f177a52a13e3d3751b599ae2b46d3d4658985cd.tar.gz
kernel-qcow2-linux-7f177a52a13e3d3751b599ae2b46d3d4658985cd.tar.xz
kernel-qcow2-linux-7f177a52a13e3d3751b599ae2b46d3d4658985cd.zip
MIPS: Tell R4k SC and MC variations apart
There is no reliable way to tell R4000/R4400 SC and MC variations apart, however simple heuristic should give good results. Only the MC version supports coherent caching so we can rely on such a mode having been set for KSEG0 by the power-on firmware to reliably indicate an MC processor. SC processors reportedly hang on coherent cached memory accesses and Linux is linked to a cached load address so the firmware has to use the correct caching mode to download the kernel image in a cached mode successfully. OTOH if the firmware chooses to use either the non-coherent cached or the uncached mode for KSEG0 on an MC processor, then the SC variant will be reported, just as we currently do, so no regression here. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Cc: Jonas Gorski <jogo@openwrt.org> Cc: MIPS Mailing List <linux-mips@linux-mips.org> Patchwork: https://patchwork.linux-mips.org/patch/5882/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/tlb-funcs.S')
0 files changed, 0 insertions, 0 deletions