]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7c2b75188a3102f41e8c81f704a9e465991111d6
tree07f443c331f0961a38b1c6d28dad74eb61e2f7c9
parent762aff01d0e707394e646dfb2c0858c81350bf33
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