]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 12 Aug 2019 09:30:41 +0000 (11:30 +0200)
commit28ebab99969d53722cc39c64179e947116999fc5
tree135561cd221f73f6a47cf1102c5873295a03f8a1
parent34bcfd46bf84caec58ef8c93c276572b850de6ad
parisc: Add memory clobber to TLB purges

BugLink: https://bugs.launchpad.net/bugs/1837516
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>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/parisc/include/asm/cache.h