]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Fix execution hazard during watchpoint register probe
authorPaul Burton <paul.burton@imgtec.com>
Sat, 15 Jun 2013 15:34:40 +0000 (15:34 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jun 2013 19:26:57 +0000 (21:26 +0200)
commita47430fa24bc8f8beb4481c4f6422f9a8ece22b9
treef1a2e8c118f9c515e3e56123b12e02e12a613177
parentbe383f185376168bd7bda26558c7da56506e9322
MIPS: Fix execution hazard during watchpoint register probe

Writing a value to a WatchLo* register creates an execution hazard, so
if its value is then read before that hazard is cleared then said value
may be invalid. The mips_probe_watch_registers function must therefore
clear the execution hazard between setting the match bits in a WatchLo*
register & reading the register back in order to check which are set.

This fixes intermittent incorrect watchpoint register probing on some
MIPS cores such as interAptiv & proAptiv.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/5474/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/watch.c