]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/64: Make type of partition table flush depend on partition type
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 28 Mar 2017 16:54:21 +0000 (13:54 -0300)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:17:54 +0000 (14:17 -0600)
commit2f0d6eceb0ab950297d5881a2f6326d60d6449ac
tree36777d225324c2940515bd59a5eb4e5441ce3934
parentee1a4fbdbc30354ce2a89ac25cbe4ab476d8724d
powerpc/64: Make type of partition table flush depend on partition type

BugLink: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1675806
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>
(cherry picked from commit 16ed141677c5a1a796408e74ccd0a6f6554c3f21)
Signed-off-by: Breno Leitao <breno.leitao@gmail.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/powerpc/mm/pgtable_64.c