[Skiboot] [PATCH 5/7] mambo: Advertise the sim supports 256M and 1TB segments in device tree

Michael Neuling mikey at neuling.org
Tue Oct 20 15:49:02 AEDT 2015


Advertise the sim supports 256M and 1TB segments in device tree.  If
we don't have this, Linux will default to 256MB segments.

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 external/mambo/skiboot.tcl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index aa19485..6ac9e1a 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -145,6 +145,8 @@ mysim of addprop $cpus_node int "#size-cells" 0
 
 set cpu0_node [mysim of find_device "/cpus/PowerPC at 0"]
 mysim of addprop $cpu0_node int "ibm,chip-id" 0
+set reg  [list 0x0000001c00000028 0xffffffffffffffff]
+mysim of addprop $cpu0_node array64 "ibm,processor-segment-sizes" reg
 
 set mem0_node [mysim of find_device "/memory at 0"]
 mysim of addprop $mem0_node int "ibm,chip-id" 0
-- 
2.1.4



More information about the Skiboot mailing list