OSDN Git Service

MIPS: Ingenic: Disable abandoned HPTLB function.
authorZhou Yanjie <zhouyanjie@zoho.com>
Tue, 19 Nov 2019 14:28:47 +0000 (22:28 +0800)
committerPaul Burton <paulburton@kernel.org>
Fri, 22 Nov 2019 22:00:28 +0000 (14:00 -0800)
commitb02efeb056998076163083a2be3df4a60830335a
treef9626cc8f74869849a20aebd5da2f2399ec60784
parent37640adbefd66491cb8083a438f7bf366ac09bc7
MIPS: Ingenic: Disable abandoned HPTLB function.

JZ4760/JZ4770/JZ4775/X1000/X1500 has an abandoned huge page tlb,
this mode is not compatible with the MIPS standard, it will cause
tlbmiss and into an infinite loop (line 21 in the tlb-funcs.S)
when starting the init process. write 0xa9000000 to cp0 register 5
sel 4 to disable this function to prevent getting stuck. Confirmed
by Ingenic, this operation will not adversely affect processors
without HPTLB function.

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: ralf@linux-mips.org
Cc: jhogan@kernel.org
Cc: jiaxun.yang@flygoat.com
Cc: gregkh@linuxfoundation.org
Cc: malat@debian.org
Cc: tglx@linutronix.de
Cc: chenhc@lemote.com
arch/mips/include/asm/mipsregs.h
arch/mips/kernel/cpu-probe.c