aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2017-01-12 14:54:07 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-01-15 12:42:54 +1100
commit821675b3d44f6995cb78ff9bc10ed91d1c9ea8af (patch)
treee916b3add831b160202bd2c705b425f7d32dc040 /hdata
parentbe533cb5b360415d9e6e04a20eb332ae20303cd9 (diff)
downloadskiboot-821675b3d44f6995cb78ff9bc10ed91d1c9ea8af.zip
skiboot-821675b3d44f6995cb78ff9bc10ed91d1c9ea8af.tar.gz
skiboot-821675b3d44f6995cb78ff9bc10ed91d1c9ea8af.tar.bz2
hdat: add radix-AP-encodings
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@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/cpu-common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hdata/cpu-common.c b/hdata/cpu-common.c
index 491eab8..528f008 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 */