summaryrefslogtreecommitdiff
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2015-01-26 09:40:36 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-06 14:52:55 -0800
commite3201ff0eeeef367dcd8d5fafbcab180df5b4e76 (patch)
tree75e4e0622ce4ee79fb8053c4080447c4074a04bc /arch/mips/kernel
parent6ce23db8e9e0677fe8f5312a3a1da66f4c840014 (diff)
downloadlwn-e3201ff0eeeef367dcd8d5fafbcab180df5b4e76.tar.gz
lwn-e3201ff0eeeef367dcd8d5fafbcab180df5b4e76.zip
MIPS: asm: pgtable: Prevent HTW race when updating PTEs
commit fde3538a8a711aedf1173ecb2d45aed868f51c97 upstream. 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: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/9116/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/mips/kernel')
0 files changed, 0 insertions, 0 deletions