aboutsummaryrefslogtreecommitdiff
path: root/hw/phb3.c
diff options
context:
space:
mode:
authorRussell Currey <ruscur@russell.cc>2018-02-05 15:00:08 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-02-20 00:09:22 -0600
commit08b1929052f8dfa1cc6b0ab3a9df77c9b5493914 (patch)
tree641ffdba280e694275b72b907bc570d062af1699 /hw/phb3.c
parentac8a62b09c6343b9f992450dffa448e3bb416c53 (diff)
downloadskiboot-08b1929052f8dfa1cc6b0ab3a9df77c9b5493914.zip
skiboot-08b1929052f8dfa1cc6b0ab3a9df77c9b5493914.tar.gz
skiboot-08b1929052f8dfa1cc6b0ab3a9df77c9b5493914.tar.bz2
phb3/phb4/p7ioc: Document supported TCE sizes in DT
Add a new property, "ibm,supported-tce-sizes", to advertise to Linux how big the available TCE sizes are. Each value is a bit shift, from smallest to largest. Signed-off-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/phb3.c')
-rw-r--r--hw/phb3.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/phb3.c b/hw/phb3.c
index 0b4c3c3..0c4e1eb 100644
--- a/hw/phb3.c
+++ b/hw/phb3.c
@@ -4469,6 +4469,11 @@ static void phb3_add_properties(struct phb3 *p)
tkill = reg + PHB_TCE_KILL;
dt_add_property_cells(np, "ibm,opal-tce-kill",
hi32(tkill), lo32(tkill));
+ dt_add_property_cells(np, "ibm,supported-tce-sizes",
+ 12, // 4K
+ 16, // 64K
+ 24, // 16M
+ 28); // 256M
/*
* Indicate to Linux that the architected IODA2 MSI EOI method