[PATCHv2 7/9] cmd: cpu: add release subcommand

Z.Q. Hou zhiqiang.hou at nxp.com
Thu Jul 25 16:32:42 CEST 2024



> -----Original Message-----
> From: Simon Glass <sjg at chromium.org>
> Sent: Thursday, July 25, 2024 10:03 PM
> To: Z.Q. Hou <zhiqiang.hou at nxp.com>
> Cc: u-boot at lists.denx.de; trini at konsulko.com; Peng Fan
> <peng.fan at nxp.com>; festevam at gmail.com
> Subject: Re: [PATCHv2 7/9] cmd: cpu: add release subcommand
> 
> Hi Zhiqiang,
> 
> On Thu, 25 Jul 2024 at 03:32, Zhiqiang Hou <Zhiqiang.Hou at nxp.com> wrote:
> >
> > From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> >
> > Add a new subcommand 'release' to bring up a core to run baremetal and
> > RTOS applications.
> >
> > For example on i.MX8M Plus EVK, release the LAST core to run a RTOS
> > application, passing the sequence number of the CPU core to release,
> > here it is 3:
> >     u-boot=> cpu list
> >       0: cpu at 0      NXP i.MX8MP Rev1.1 A53 at 1200 MHz at 31C
> >
> >       1: cpu at 1      NXP i.MX8MP Rev1.1 A53 at 1200 MHz at 30C
> >
> >       2: cpu at 2      NXP i.MX8MP Rev1.1 A53 at 1200 MHz at 31C
> >
> >       3: cpu at 3      NXP i.MX8MP Rev1.1 A53 at 1200 MHz at 31C
> >
> >     u-boot=> load mmc 1:2 C0000000 /hello_world.bin
> >     66008 bytes read in 5 ms (12.6 MiB/s)
> >     u-boot=> dcache flush; icache flush
> >     u-boot=> cpu release 3 C0000000
> >     Released CPU core (mpidr: 0x3) to address 0xc0000000
> >
> > Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> > ---
> > V2:
> >  - No change.
> >
> >  cmd/cpu.c | 44 ++++++++++++++++++++++++++++++++++++++++++--
> >  1 file changed, 42 insertions(+), 2 deletions(-)
> 
> Reviewed-by: Simon Glass <sjg at chromium.org>
> 
> While you are here, would you mind adding a doc/usage/cmd/cpu.rst as that
> is missing.

Yes, I'd like to.

Zhiqiang


More information about the U-Boot mailing list