diff mbox

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

Message ID 1445316544-12816-5-git-send-email-mikey@neuling.org
State Accepted
Headers show

Commit Message

Michael Neuling Oct. 20, 2015, 4:49 a.m. UTC
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@neuling.org>
---
 external/mambo/skiboot.tcl | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

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@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@0"]
 mysim of addprop $mem0_node int "ibm,chip-id" 0