]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: asm: pgtable: Prevent HTW race when updating PTEs
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 26 Jan 2015 09:40:36 +0000 (09:40 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 16 Feb 2015 09:55:26 +0000 (10:55 +0100)
commit48160b0de1015d06e9a9cfbb3a020566c327bd63
treee3a4c51518bcdc9ea6760eeff69299adde6752a8
parent4cda8329f89aa71bf5001af595c3ac7d3b81d876
MIPS: asm: pgtable: Prevent HTW race when updating PTEs

Whenever we modify a page table entry, we need to ensure that the HTW
will not fetch a stable entry. And for that to happen we need to ensure
that HTW is stopped before we modify the said entry otherwise the HTW
may already be in the process of reading that entry and fetching the
old information. As a result of which, we replace the htw_reset() calls
with htw_{stop,start} in more appropriate places. This also removes the
remaining users of htw_reset() and as a result we drop that macro

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: <stable@vger.kernel.org> # 3.17+
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9116/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/pgtable.h