summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/reg.h
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2016-07-13 15:05:21 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2016-07-17 16:42:50 +1000
commitbf16cdf48a5369ba29614a0ade4ae5daf7a9e47c (patch)
tree4abc3ff7bb6e15944e9a377bfe4a6064b457a402 /arch/powerpc/include/asm/reg.h
parent8cd6d3c23e226ec6cb8825e1aa6a391ebda71c72 (diff)
downloadlinux-stable-bf16cdf48a5369ba29614a0ade4ae5daf7a9e47c.tar.gz
linux-stable-bf16cdf48a5369ba29614a0ade4ae5daf7a9e47c.tar.bz2
linux-stable-bf16cdf48a5369ba29614a0ade4ae5daf7a9e47c.zip
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>
Diffstat (limited to 'arch/powerpc/include/asm/reg.h')
-rw-r--r--arch/powerpc/include/asm/reg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index 6de6abe7deef..295a19aec9b9 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -366,6 +366,7 @@
#define LPCR_HVICE 0x00000002 /* P9: HV interrupt enable */
#define LPCR_HDICE 0x00000001 /* Hyp Decr enable (HV,PR,EE) */
#define LPCR_UPRT 0x00400000 /* Use Process Table (ISA 3) */
+#define LPCR_HR 0x00100000
#ifndef SPRN_LPID
#define SPRN_LPID 0x13F /* Logical Partition Identifier */
#endif