]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/64: Invalidate process table caching after setting process table
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 28 Mar 2017 16:54:41 +0000 (13:54 -0300)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:17:54 +0000 (14:17 -0600)
commitdb87633750233ac931bdee1ea7b1aee16eec8d9f
tree0480ee9c8409512aa605127bd60ca9df7f3a1658
parent906b835a5cfd1f24ecd34763f97d686ea8791cbb
powerpc/64: Invalidate process table caching after setting process table

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1675806
The POWER9 MMU reads and caches entries from the process table.
When we kexec from one kernel to another, the second kernel sets
its process table pointer but doesn't currently do anything to
make the CPU invalidate any cached entries from the old process table.
This adds a tlbie (TLB invalidate entry) instruction with parameters
to invalidate caching of the process table after the new process
table is installed.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
(cherry picked from commit 7a70d7288c926ae88e0c773fbb506aa374e99c2d)
Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/mm/pgtable-radix.c