OSDN Git Service

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)
commit7a70d7288c926ae88e0c773fbb506aa374e99c2d
tree7aa6e7b2a53410641818236d49ede506fc8ce850
parent4ceae137bdab2232e57b2e6fd5631a22a0160938
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