aboutsummaryrefslogtreecommitdiff
path: root/include/processor.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-06-24 14:17:28 -0500
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-06-26 14:28:58 +1000
commit1cb276acc130d1dfbd8ce8347d2ee27035178e65 (patch)
tree0bb9234ea5249145fc46d34d3f7fb5b6f4a6570f /include/processor.h
parent24726a1f5e41e416b1035f2486870def72a2ce8a (diff)
downloadskiboot-1cb276acc130d1dfbd8ce8347d2ee27035178e65.zip
skiboot-1cb276acc130d1dfbd8ce8347d2ee27035178e65.tar.gz
skiboot-1cb276acc130d1dfbd8ce8347d2ee27035178e65.tar.bz2
cpu: Support setting HID[RADIX] and set it by default on P9
This adds new opal_reinit_cpus() flags to setup radix or hash mode in HID[8] on POWER9. By default HID[8] will be set. On P9 DD1.0, Linux will change it as needed. On P9 DD2.0 hash works in radix mode (radix is really "dual" mode) so KVM won't break and existing kernels will work. Newer kernels built for hash will call this to clear the HID bit and thus get the full size of the TLB as an optimization. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/processor.h')
-rw-r--r--include/processor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/processor.h b/include/processor.h
index 5906b86..af3fd2b 100644
--- a/include/processor.h
+++ b/include/processor.h
@@ -169,6 +169,7 @@
#define SPR_HID0_POWER9_HILE PPC_BIT(4)
#define SPR_HID0_POWER8_ENABLE_ATTN PPC_BIT(31)
#define SPR_HID0_POWER9_ENABLE_ATTN PPC_BIT(3)
+#define SPR_HID0_POWER9_RADIX PPC_BIT(8)
/* PVR bits */
#define SPR_PVR_TYPE 0xffff0000