[Skiboot] [PATCH 08/14] hdat: add radix-AP-encodings
Oliver O'Halloran
oohall at gmail.com
Thu Jan 12 14:54:07 AEDT 2017
The the P9 Radix TLB management instructions use an arbitrary "AP" field
that specifies the actual page size. The values used in the AP field are
processor dependent and needs to be passed in via the devicetree by
firmware. This patch adds the property for P9 based systems that boot
via the HDAT path.
Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
---
hdata/cpu-common.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hdata/cpu-common.c b/hdata/cpu-common.c
index 491eab84a91c..528f008251f4 100644
--- a/hdata/cpu-common.c
+++ b/hdata/cpu-common.c
@@ -78,6 +78,10 @@ struct dt_node * add_core_common(struct dt_node *cpus,
dt_add_property_cells(cpu, "ibm,processor-page-sizes",
0xc, 0x10, 0x18, 0x22);
+ if (proc_gen == proc_gen_p9)
+ dt_add_property_cells(cpu, "ibm,processor-radix-AP-encodings",
+ 0x0000000c, 0xa0000010, 0x20000015, 0x4000001e);
+
/* Page size encodings appear to be the same for P7 and P8 */
dt_add_property_cells(cpu, "ibm,segment-page-sizes",
0x0c, 0x000, 3, 0x0c, 0x0000, /* 4K seg 4k pages */
--
2.7.4
More information about the Skiboot
mailing list