powerpc/book3s64/kuep: Use Key 3 to implement KUEP with hash translation.
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Fri, 27 Nov 2020 04:44:20 +0000 (10:14 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:27 +0000 (01:01 +1100)
Radix use IAMR Key 0 and hash translation use IAMR key 3.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: Sandipan Das <sandipan@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201127044424.40686-19-aneesh.kumar@linux.ibm.com
arch/powerpc/include/asm/book3s/64/kup.h

index b9cbb96d9aed435b67c2f9def9b59e06f576f9cb..f54ab2cb189b1b08364904fe6403f04c0da643f3 100644 (file)
@@ -7,7 +7,7 @@
 
 #define AMR_KUAP_BLOCK_READ    UL(0x5455555555555555)
 #define AMR_KUAP_BLOCK_WRITE   UL(0xa8aaaaaaaaaaaaaa)
-#define AMR_KUEP_BLOCKED       (1UL << 62)
+#define AMR_KUEP_BLOCKED       UL(0x5455555555555555)
 #define AMR_KUAP_BLOCKED       (AMR_KUAP_BLOCK_READ | AMR_KUAP_BLOCK_WRITE)
 
 #ifdef __ASSEMBLY__