]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/64: Make type of partition table flush depend on partition type
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 30 Jan 2017 10:21:39 +0000 (21:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 31 Jan 2017 08:11:46 +0000 (19:11 +1100)
commit16ed141677c5a1a796408e74ccd0a6f6554c3f21
treea7ac68e587e3081144399fa80e714000b8ebf81a
parentba9b399aee6fb70cbe988f0750d6dd9f6677293b
powerpc/64: Make type of partition table flush depend on partition type

When changing a partition table entry on POWER9, we do a particular
form of the tlbie instruction which flushes all TLBs and caches of
the partition table for a given logical partition ID (LPID).
This instruction has a field in the instruction word, labelled R
(radix), which should be 1 if the partition was previously a radix
partition and 0 if it was a HPT partition.  This implements that
logic.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/pgtable_64.c