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)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 19 Nov 2014 17:22:08 +0000 (18:22 +0100)
commit6a8dff6ab16c903b0d8ef5fbf21543f39bf5d675
tree3faa8cc35a0550e326af511bce32ae69013b4830
parent58563817cfed0432e9a54476d5fc6c3aeba475e4
MIPS: tlb-r4k: Add missing HTW stop/start sequences

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: <stable@vger.kernel.org> # v3.17+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8511/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlb-r4k.c