]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1fbccaecfdf3afd853b21fd8294ad3c8bb821017
tree3faa8cc35a0550e326af511bce32ae69013b4830
parent5843cac2c9157a161499e8ccd4b180bd33d6b296
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