Skip to content

Commit 6e8521a

Browse files
maheshsalrarbab
authored andcommitted
external/mambo: skiboot.tcl add Power11 config
Setup skiboot.tcl with Power11 config to be boot on Power11 mambo. Signed-off-by: Mahesh Salgaonkar <[email protected]> Acked-by: Nicholas Piggin <[email protected]> Signed-off-by: Reza Arbab <[email protected]>
1 parent 138f089 commit 6e8521a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

external/mambo/skiboot.tcl

+28
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,34 @@ if { $default_config == "P10" } {
175175
}
176176
}
177177

178+
if { $default_config == "P11" } {
179+
# PVR configured for POWER11 DD2.0, LPAR-per-thread
180+
myconf config processor/initial/SIM_CTRL 0x0c1dd60000000000
181+
if { $mconf(threads) == 8 } {
182+
# Big-core mode.
183+
myconf config processor/initial/PVR 0x00820200
184+
myconf config processor/initial/SIM_CTRL1 0xc0400c0400040a40
185+
puts "Set P11 big-core mode"
186+
} else {
187+
# Small-core mode.
188+
myconf config processor/initial/PVR 0x00821200
189+
myconf config processor/initial/SIM_CTRL1 0xc0400c0401040a40
190+
if { $mconf(threads) != 1 && $mconf(threads) != 2 && $mconf(threads) != 4 } {
191+
puts "ERROR: Bad threads configuration"
192+
exit
193+
}
194+
if { $mconf(threads) != 4 && $mconf(cpus) != 1 } {
195+
puts "ERROR: Bad threads, cpus configuration"
196+
exit
197+
}
198+
199+
puts "Set P11 small-core mode"
200+
}
201+
202+
if { $mconf(numa) } {
203+
myconf config memory_region_id_shift 44
204+
}
205+
}
178206

179207
if { $mconf(numa) } {
180208
myconf config memory_regions $mconf(cpus)

0 commit comments

Comments
 (0)