Le ven. 20 nov. 2020 à 08:09, Peng Fan <[email protected]> a écrit :

> > Subject: Re: zephyr ARM64 SMP runs on Jailhouse
> >
> > On 19.11.20 03:50, Peng Fan wrote:
> > > Just share info, we have enabled zephyr ARM64 SMP on Jailhouse using
> > > i.MX8M
> > >
> >
> > This is great news, indeed! Do you need patches against Zephyr, or is
> > upstream ready for this? Would it work in qemuarm64 as well?
>
> Current upstream zephyr not support SMP, and only runs in secure world.
> So I have some patches to make it run in normal world and SMP support.

that would be great to share!

>
>
> I only did this on i.MX8MM EVK board. Qemuarm64 needs some porting
> effort. Jailhouse also needs one minor patch as below:
>
> @@ -364,15 +365,21 @@ static enum mmio_result
> gicv3_handle_redist_access(void *arg,
>         case GICR_SYNCR:
>                 mmio->value = 0;
>                 return MMIO_HANDLED;
> -       case GICR_CTLR:
> -       case GICR_STATUSR:
> -       case GICR_WAKER:
>         case GICR_SGI_BASE + GICR_ISENABLER:
>         case GICR_SGI_BASE + GICR_ICENABLER:
>         case GICR_SGI_BASE + GICR_ISPENDR:
>         case GICR_SGI_BASE + GICR_ICPENDR:
>         case GICR_SGI_BASE + GICR_ISACTIVER:
>         case GICR_SGI_BASE + GICR_ICACTIVER:
> +               if (this_cell() != cpu_public->cell) {
> +                       /* ignore access to foreign redistributors */
> +                       return MMIO_HANDLED;
> +               }
> +               mmio->value &= ~(SGI_MASK | (1 << mnt_irq));
> +               break;
> +       case GICR_CTLR:
> +       case GICR_STATUSR:
> +       case GICR_WAKER:
>         case REG_RANGE(GICR_SGI_BASE + GICR_IPRIORITYR, 8, 4):
>         case REG_RANGE(GICR_SGI_BASE + GICR_ICFGR, 2, 4):
>                 if (this_cell() != cpu_public->cell) {
>
>
> I'll prepare my zephyr patches to zephyr PR.
>
> Regards,
> Peng.
>
> >
> > Jan
> >
> > --
> > Siemens AG, T RDA IOT
> > Corporate Competence Center Embedded Linux
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jailhouse" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jailhouse-dev/DB6PR0402MB276009F841DA2D085725319688FF0%40DB6PR0402MB2760.eurprd04.prod.outlook.com
> .
>
-- 
François-Frédéric Ozog | *Director Linaro Edge & Fog Computing Group*
T: +33.67221.6485
[email protected] | Skype: ffozog

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/CAHFG_%3DVZ2ZwV6AHLxr8zvEacfnASKef3YjbuNGeTt3zzBC9%2BnQ%40mail.gmail.com.

Reply via email to