]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/radix: Update LPCR HR bit as per ISA
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 13 Jul 2016 09:35:21 +0000 (15:05 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 17 Jul 2016 06:42:50 +0000 (16:42 +1000)
commite83b44dd04f5245d6c6f222adcb98aa3de5e885a
tree4abc3ff7bb6e15944e9a377bfe4a6064b457a402
parent32de628e0df097d152cbac95bc4b2badbbef0ba6
powerpc/mm/radix: Update LPCR HR bit as per ISA

PowerISA 3.0 requires the MMU mode (radix vs. hash) of the hypervisor
to be mirrored in the LPCR register, in addition to the partition table.
This is done to avoid fetching from the table when deciding, among other
things, how to perform transitions to HV mode on some interrupts.
So let's set it up appropriately

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/reg.h
arch/powerpc/mm/pgtable-radix.c