[PATCH] bsps/raspberrypi: Add SEV Instruction for RPi SMP firmware changes.

Pranav Dangi dangipranav at gmail.com
Tue Aug 17 17:48:55 UTC 2021


ping

On Wed, 11 Aug 2021, 21:36 Gedare Bloom, <gedare at rtems.org> wrote:

> I think this looks fine. Joel, can you check it in?
>
> On Wed, Aug 11, 2021 at 10:01 AM Pranav Dangi <dangipranav at gmail.com>
> wrote:
> >
> > ping
> >
> > On Mon, 9 Aug 2021, 16:43 pranav, <dangipranav at gmail.com> wrote:
> >>
> >> The Pi firmware added a wfe(wait for event), the cores 1-3 wait
> >> for the start address being written to the mailbox register, followed
> >> by a SEV poke to the mailbox that acts as a wfe wake-up event.
> >> ---
> >>  bsps/arm/raspberrypi/start/bspsmp.c | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/bsps/arm/raspberrypi/start/bspsmp.c
> b/bsps/arm/raspberrypi/start/bspsmp.c
> >> index 44f7a1d376..9dcfb0fb03 100644
> >> --- a/bsps/arm/raspberrypi/start/bspsmp.c
> >> +++ b/bsps/arm/raspberrypi/start/bspsmp.c
> >> @@ -42,6 +42,7 @@ bool _CPU_SMP_Start_processor( uint32_t cpu_index )
> >>    if (cpu_index != cpu_index_self) {
> >>
> >>      BCM2835_REG(BCM2836_MAILBOX_3_WRITE_SET_BASE + 0x10 * cpu_index) =
> (uint32_t)_start;
> >> +    _ARM_Send_event();
> >>
> >>      /*
> >>       * Wait for secondary processor to complete its basic
> initialization so
> >> --
> >> 2.30.2
> >>
> > _______________________________________________
> > devel mailing list
> > devel at rtems.org
> > http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210817/8061dc95/attachment.html>


More information about the devel mailing list