]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Add memory clobber to TLB purges
authorJohn David Anglin <dave.anglin@bell.net>
Sun, 21 Apr 2019 23:47:17 +0000 (19:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:21:58 +0000 (18:21 +0200)
commitf4a05c586c3adabd48de69734cb7d78daa32c9ec
tree4b95de7c9e079f31b69406d43c056b33308bd7d9
parent52b905433b0d804b3e77826f5bbe977f0dbe2d95
parisc: Add memory clobber to TLB purges

commit 44224bdb99150ad17cf394973b25736cb92c246a upstream.

The pdtlb and pitlb instructions are strongly ordered. The asms invoking
these instructions should be compiler memory barriers to ensure the
compiler doesn't reorder memory operations around these instructions.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
CC: stable@vger.kernel.org # v4.20+
Fixes: 3847dab77421 ("parisc: Add alternative coding infrastructure")
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/include/asm/cache.h