MIPS: tlb-r4k: Add missing HTW stop/start sequences
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 17 Nov 2014 09:31:07 +0000 (09:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:57:12 +0000 (15:57 -0800)
commitd17bb5349a8c47681e4b8c13b18d5a474f1447af
treec71db274f88a50d734128314c42a0a2b51774db4
parent51b4651a82bb4fee40de9f5bd0770db4eb798e8a
MIPS: tlb-r4k: Add missing HTW stop/start sequences

commit 6a8dff6ab16c903b0d8ef5fbf21543f39bf5d675 upstream.

HTW needs to stop and start again whenever the EntryHI register
changes otherwise an inflight HTW operation might use the new
EntryHI register for updating an old entry and that could lead
to crashes or even a machine check exception. We fix this by
ensuring the HTW has stop whenever the EntryHI register is about
to change

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8511/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/mips/mm/tlb-r4k.c