[Skiboot] [PATCH v3 4/6] external/mambo: skiboot.tcl add Power11 config

Mahesh J Salgaonkar mahesh at linux.ibm.com
Tue Feb 18 17:31:19 AEDT 2025


On 2025-02-18 10:38:06 Tue, Nicholas Piggin wrote:
> On Thu Feb 6, 2025 at 11:56 PM AEST, Mahesh Salgaonkar wrote:
> > Setup skiboot.tcl with Power11 config to be boot on Power11 mambo.
> 
> I don't use mambo much these days but it looks okay. AFAIKS just
> a copy paste of the P10 entry with PVR changed and s/P10/P11?

Yes, it is copy-paste of P10 entry with PVR change.

> 
> Acked-by: Nicholas Piggin <npiggin at gmail.com>

Thanks,
-Mahesh

> 
> >
> > Signed-off-by: Mahesh Salgaonkar <mahesh at linux.ibm.com>
> > ---
> >  external/mambo/skiboot.tcl | 28 ++++++++++++++++++++++++++++
> >  1 file changed, 28 insertions(+)
> >
> > diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
> > index 6c0eb5a0d0..cce84d2058 100644
> > --- a/external/mambo/skiboot.tcl
> > +++ b/external/mambo/skiboot.tcl
> > @@ -175,6 +175,34 @@ if { $default_config == "P10" } {
> >      }
> >  }
> >  
> > +if { $default_config == "P11" } {
> > +    # PVR configured for POWER11 DD2.0, LPAR-per-thread
> > +    myconf config processor/initial/SIM_CTRL  0x0c1dd60000000000
> > +    if { $mconf(threads) == 8 } {
> > +        # Big-core mode.
> > +        myconf config processor/initial/PVR 0x00820200
> > +        myconf config processor/initial/SIM_CTRL1 0xc0400c0400040a40
> > +	puts "Set P11 big-core mode"
> > +    } else {
> > +        # Small-core mode.
> > +        myconf config processor/initial/PVR 0x00821200
> > +        myconf config processor/initial/SIM_CTRL1 0xc0400c0401040a40
> > +        if { $mconf(threads) != 1 && $mconf(threads) != 2 && $mconf(threads) != 4 } {
> > +            puts "ERROR: Bad threads configuration"
> > +            exit
> > +        }
> > +        if { $mconf(threads) != 4 && $mconf(cpus) != 1 } {
> > +            puts "ERROR: Bad threads, cpus configuration"
> > +            exit
> > +        }
> > +
> > +	puts "Set P11 small-core mode"
> > +    }
> > +
> > +    if { $mconf(numa) } {
> > +        myconf config memory_region_id_shift 44
> > +    }
> > +}
> >  
> >  if { $mconf(numa) } {
> >      myconf config memory_regions $mconf(cpus)
> 

-- 
Mahesh J Salgaonkar


More information about the Skiboot mailing list