On Tue, Apr 25, 2023 at 11:22 AM Ryan Eatmon via
lists.yoctoproject.org <[email protected]> wrote:
> On 4/25/2023 5:40, paresh-ti wrote:
> > - Add and enable Jailhouse support for TI's k3-am625-sk similarly to how 
> > other
> > TI platforms were added and enabled in the past by adding platform-specific
> > configuration variables for the root cell DTB overlay, and the Linux demo 
> > inmate
> > DTB, configuration, and Kernel command line settings.
> >
> > - Migrate the old recipe to kirkstone.
> >
> > - Switch to latest upstream source tree for jailhouse. The TI Jailhouse 
> > repo has
> > gone stale and now upstream is really the happening place where new 
> > development
> > happens including for new devices such as AM62x. Hence go ahead and switch 
> > to
> > using the upstream repo.
> >
> > - Update the platform-specific config files to such that the root cell DTB 
> > overlay
> > gets included in the file system images.
> >
> > - Enable additional console on ttyS3 (usually mapped to main_uart1) and 
> > ttyS2 for
> > the Linux demo inmate to use.
> >
> > - Add patches for the Jailhouse source tree for am62x.
> >
> > Signed-off-by: Andreas Dannenberg <[email protected]>
> > Signed-off-by: paresh-ti <[email protected]>
> > ---
> >   meta-ti-bsp/conf/machine/include/am62xx.inc   |   3 +
> >   ...k3-am625-sk-Add-crypto-memory-region.patch |  50 +++++
> >   ...-am625-sk-Switch-inmate-boot-console.patch |  60 +++++
> >   ...64-k3-am625-sk-Add-VTM-memory-region.patch |  40 ++++
> >   ...4-k3-am625-sk-Add-GPMC-memory-region.patch |  47 ++++
> >   .../recipes-ti/jailhouse/jailhouse-arch.inc   |  22 ++
> >   .../recipes-ti/jailhouse/jailhouse_git.bb     | 209 ++++++++++++++++++
> >   7 files changed, 431 insertions(+)
> >   create mode 100644 
> > meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch
> >   create mode 100644 
> > meta-ti-extras/recipes-ti/jailhouse/files/0002-configs-arm64-k3-am625-sk-Switch-inmate-boot-console.patch
> >   create mode 100644 
> > meta-ti-extras/recipes-ti/jailhouse/files/0003-configs-arm64-k3-am625-sk-Add-VTM-memory-region.patch
> >   create mode 100644 
> > meta-ti-extras/recipes-ti/jailhouse/files/0004-configs-arm64-k3-am625-sk-Add-GPMC-memory-region.patch
> >   create mode 100644 meta-ti-extras/recipes-ti/jailhouse/jailhouse-arch.inc
> >   create mode 100644 meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
> >
> > diff --git a/meta-ti-bsp/conf/machine/include/am62xx.inc 
> > b/meta-ti-bsp/conf/machine/include/am62xx.inc
> > index 623d90eb..a205a18c 100644
> > --- a/meta-ti-bsp/conf/machine/include/am62xx.inc
> > +++ b/meta-ti-bsp/conf/machine/include/am62xx.inc
> > @@ -23,3 +23,6 @@ TFA_BOARD = "lite"
> >   TFA_K3_SYSTEM_SUSPEND = "1"
> >
> >   OPTEEMACHINE = "k3-am62x"
> > +
> > +# Normally AM62 boards use ttyS2, but our Jailhouse inmate may use ttyS3, 
> > so try both
> > +SERIAL_CONSOLES = "115200;ttyS2 115200;ttyS3"
> > diff --git 
> > a/meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch
> >  
> > b/meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch
> > new file mode 100644
> > index 00000000..d37631f9
> > --- /dev/null
> > +++ 
> > b/meta-ti-extras/recipes-ti/jailhouse/files/0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch
> > @@ -0,0 +1,49 @@
> > +From 723ca87d25c1f8bac68d2608dbc3b5e8caba69ca Mon Sep 17 00:00:00 2001
> > +From: Andreas Dannenberg <[email protected]>
> > +Date: Mon, 12 Sep 2022 13:22:04 -0500
> > +Subject: [PATCH] configs: arm64: k3-am625-sk: Add crypto memory region
> > +
> > +Add the memory region for the AM62x crypto accelerator to the device-
> > +specific config file. This fixes a runtime exception when the kernel
> > +accesses that memory region:
> > +
> > +<snip>
> > +Unhandled data read at 0x40910010(4)
> > +
> > +FATAL: unhandled trap (exception class 0x24)
> > +<snip>
> > +
> > +Signed-off-by: Andreas Dannenberg <[email protected]>
>
> All of these patches need Upstream-Status.  Please add them.
>
> https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations:_Upstream-Status

You can find the ones I sent upstream at
https://groups.google.com/g/jailhouse-dev/c/3BrwWSbrq90

> > +SRC_URI = " \
> > +    git://github.com/siemens/jailhouse.git;protocol=https;branch=${BRANCH} 
> > \
> > +    file://0001-configs-arm64-k3-am625-sk-Add-crypto-memory-region.patch \
> > +    file://0002-configs-arm64-k3-am625-sk-Switch-inmate-boot-console.patch 
> > \
> > +    file://0003-configs-arm64-k3-am625-sk-Add-VTM-memory-region.patch \
> > +    file://0001-jailhouse-k3-fix-bar-mask-size.patch \

It seems this one wasn't added here?

I guess it is the one we have at
https://github.com/foundriesio/meta-lmp/blob/main/meta-lmp-bsp/recipes-kernel/jailhouse/jailhouse/0001-configs-k3-use-intx-for-bar_mask.patch.

Thanks,
-- 
Ricardo Salveti
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16417): 
https://lists.yoctoproject.org/g/meta-ti/message/16417
Mute This Topic: https://lists.yoctoproject.org/mt/98490018/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to