]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64: Invalidate process table caching after setting process table
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 27 Feb 2017 03:32:41 +0000 (14:32 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 3 Mar 2017 00:24:50 +0000 (11:24 +1100)
commitb5959116b0fdfe172ada7fb8f68a01d574583381
tree7aa6e7b2a53410641818236d49ede506fc8ce850
parent45a566416ce8dfae10135e89ddf3db4e46f1a0a2
powerpc/64: Invalidate process table caching after setting process table

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>
arch/powerpc/mm/pgtable-radix.c