mips/ide: flush dcache also if icache does not snoop dcache
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Thu, 6 Oct 2011 07:55:00 +0000 (09:55 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 24 Jan 2014 21:39:56 +0000 (22:39 +0100)
commitd3864767a85b13e0e0ecc5f4284f65cc26252446
tree19090a7d35b94ef612fe085d87567f4005616b25
parent3c06b12b046e426200d016dbdb1e3e81ffb1c185
mips/ide: flush dcache also if icache does not snoop dcache

If this is not done then the new just read data which remains in dcache
will not make it into icache on time. Thus the CPU loads invalid data
and executes crap. The result is that the user is not able to execute
anything from its IDE based media while reading plain data is still
working well.

This problem has been reported as Debian #404951
http://bugs.debian.org/404951
http://comments.gmane.org/gmane.linux.ide/45092

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Signed-off-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/2820/
arch/mips/include/asm/mach-generic/ide.h