OSDN Git Service

powerpc/mm: Enable radix GTSE only if supported.
authorBharata B Rao <bharata@linux.ibm.com>
Fri, 3 Jul 2020 05:36:06 +0000 (11:06 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:00:21 +0000 (13:00 +1000)
commit029ab30b4c0a7ec587eece1ec07c3981fdff2bed
tree07f443c331f0961a38b1c6d28dad74eb61e2f7c9
parent793d74a8c78e05d6833bfcf582e24e40bd92518f
powerpc/mm: Enable radix GTSE only if supported.

Make GTSE an MMU feature and enable it by default for radix.
However for guest, conditionally enable it if hypervisor supports
it via OV5 vector. Let prom_init ask for radix GTSE only if the
support exists.

Having GTSE as an MMU feature will make it easy to enable radix
without GTSE. Currently radix assumes GTSE is enabled by default.

Signed-off-by: Bharata B Rao <bharata@linux.ibm.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200703053608.12884-2-bharata@linux.ibm.com
arch/powerpc/include/asm/mmu.h
arch/powerpc/kernel/dt_cpu_ftrs.c
arch/powerpc/kernel/prom_init.c
arch/powerpc/mm/init_64.c