* [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers
@ 2021-05-19 7:40 Sumit Garg
2021-05-20 15:25 ` [meta-arm] " Jon Mason
0 siblings, 1 reply; 5+ messages in thread
From: Sumit Garg @ 2021-05-19 7:40 UTC (permalink / raw)
To: meta-arm; +Cc: patches, Sumit Garg
Add a config fragment to enable kernel TEE drivers.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
---
meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg | 10 ++++++++++
.../recipes-kernel/linux/linux-yocto_5.10.bbappend | 5 ++++-
2 files changed, 14 insertions(+), 1 deletion(-)
create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
diff --git a/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
new file mode 100644
index 0000000..3de03bf
--- /dev/null
+++ b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
@@ -0,0 +1,10 @@
+CONFIG_HW_RANDOM_OPTEE=y
+CONFIG_TEE=y
+
+#
+# TEE drivers
+#
+CONFIG_OPTEE=y
+CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
+# end of TEE drivers
+
diff --git a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
index b9995e0..3c3d36a 100644
--- a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
+++ b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
@@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
"
FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
-SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
+SRC_URI_append_qemuarm64-secureboot = " \
+ file://zone_dma_revert.patch \
+ file://tee.cfg \
+ "
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [meta-arm] [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers
2021-05-19 7:40 [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers Sumit Garg
@ 2021-05-20 15:25 ` Jon Mason
2021-07-20 5:54 ` Sumit Garg
0 siblings, 1 reply; 5+ messages in thread
From: Jon Mason @ 2021-05-20 15:25 UTC (permalink / raw)
To: Sumit Garg; +Cc: meta-arm, patches
On Wed, May 19, 2021 at 01:10:44PM +0530, Sumit Garg wrote:
> Add a config fragment to enable kernel TEE drivers.
>
> Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
Added to master branch
Thanks,
Jon
> ---
> meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg | 10 ++++++++++
> .../recipes-kernel/linux/linux-yocto_5.10.bbappend | 5 ++++-
> 2 files changed, 14 insertions(+), 1 deletion(-)
> create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
>
> diff --git a/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> new file mode 100644
> index 0000000..3de03bf
> --- /dev/null
> +++ b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> @@ -0,0 +1,10 @@
> +CONFIG_HW_RANDOM_OPTEE=y
> +CONFIG_TEE=y
> +
> +#
> +# TEE drivers
> +#
> +CONFIG_OPTEE=y
> +CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
> +# end of TEE drivers
> +
> diff --git a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> index b9995e0..3c3d36a 100644
> --- a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> +++ b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> @@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
> "
>
> FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
> -SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
> +SRC_URI_append_qemuarm64-secureboot = " \
> + file://zone_dma_revert.patch \
> + file://tee.cfg \
> + "
> --
> 2.25.1
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-arm] [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers
2021-05-20 15:25 ` [meta-arm] " Jon Mason
@ 2021-07-20 5:54 ` Sumit Garg
2021-07-20 14:41 ` Jon Mason
0 siblings, 1 reply; 5+ messages in thread
From: Sumit Garg @ 2021-07-20 5:54 UTC (permalink / raw)
To: Jon Mason; +Cc: meta-arm, Patch Tracking
On Thu, 20 May 2021 at 20:55, Jon Mason <jdmason@kudzu.us> wrote:
>
> On Wed, May 19, 2021 at 01:10:44PM +0530, Sumit Garg wrote:
> > Add a config fragment to enable kernel TEE drivers.
> >
> > Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
>
> Added to master branch
>
Thanks Jon, can you apply this to the hardknott branch as well?
-Sumit
> Thanks,
> Jon
>
> > ---
> > meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg | 10 ++++++++++
> > .../recipes-kernel/linux/linux-yocto_5.10.bbappend | 5 ++++-
> > 2 files changed, 14 insertions(+), 1 deletion(-)
> > create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> >
> > diff --git a/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > new file mode 100644
> > index 0000000..3de03bf
> > --- /dev/null
> > +++ b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > @@ -0,0 +1,10 @@
> > +CONFIG_HW_RANDOM_OPTEE=y
> > +CONFIG_TEE=y
> > +
> > +#
> > +# TEE drivers
> > +#
> > +CONFIG_OPTEE=y
> > +CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
> > +# end of TEE drivers
> > +
> > diff --git a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > index b9995e0..3c3d36a 100644
> > --- a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > +++ b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > @@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
> > "
> >
> > FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
> > -SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
> > +SRC_URI_append_qemuarm64-secureboot = " \
> > + file://zone_dma_revert.patch \
> > + file://tee.cfg \
> > + "
> > --
> > 2.25.1
> >
>
> >
> >
> >
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-arm] [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers
2021-07-20 5:54 ` Sumit Garg
@ 2021-07-20 14:41 ` Jon Mason
2021-07-22 8:01 ` Sumit Garg
0 siblings, 1 reply; 5+ messages in thread
From: Jon Mason @ 2021-07-20 14:41 UTC (permalink / raw)
To: Sumit Garg; +Cc: meta-arm, Patch Tracking
On Tue, Jul 20, 2021 at 11:24:21AM +0530, Sumit Garg wrote:
> On Thu, 20 May 2021 at 20:55, Jon Mason <jdmason@kudzu.us> wrote:
> >
> > On Wed, May 19, 2021 at 01:10:44PM +0530, Sumit Garg wrote:
> > > Add a config fragment to enable kernel TEE drivers.
> > >
> > > Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> >
> > Added to master branch
> >
>
> Thanks Jon, can you apply this to the hardknott branch as well?
I had to rework it a little, due to the zone dma hacks ever changing.
It's in hardknott-next branch and I'll push after it passes CI.
Thanks,
Jon
>
> -Sumit
>
> > Thanks,
> > Jon
> >
> > > ---
> > > meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg | 10 ++++++++++
> > > .../recipes-kernel/linux/linux-yocto_5.10.bbappend | 5 ++++-
> > > 2 files changed, 14 insertions(+), 1 deletion(-)
> > > create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > >
> > > diff --git a/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > > new file mode 100644
> > > index 0000000..3de03bf
> > > --- /dev/null
> > > +++ b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > > @@ -0,0 +1,10 @@
> > > +CONFIG_HW_RANDOM_OPTEE=y
> > > +CONFIG_TEE=y
> > > +
> > > +#
> > > +# TEE drivers
> > > +#
> > > +CONFIG_OPTEE=y
> > > +CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
> > > +# end of TEE drivers
> > > +
> > > diff --git a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > > index b9995e0..3c3d36a 100644
> > > --- a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > > +++ b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > > @@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
> > > "
> > >
> > > FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
> > > -SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
> > > +SRC_URI_append_qemuarm64-secureboot = " \
> > > + file://zone_dma_revert.patch \
> > > + file://tee.cfg \
> > > + "
> > > --
> > > 2.25.1
> > >
> >
> > >
> > >
> > >
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [meta-arm] [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers
2021-07-20 14:41 ` Jon Mason
@ 2021-07-22 8:01 ` Sumit Garg
0 siblings, 0 replies; 5+ messages in thread
From: Sumit Garg @ 2021-07-22 8:01 UTC (permalink / raw)
To: Jon Mason; +Cc: meta-arm, Patch Tracking
On Tue, 20 Jul 2021 at 20:11, Jon Mason <jdmason@kudzu.us> wrote:
>
> On Tue, Jul 20, 2021 at 11:24:21AM +0530, Sumit Garg wrote:
> > On Thu, 20 May 2021 at 20:55, Jon Mason <jdmason@kudzu.us> wrote:
> > >
> > > On Wed, May 19, 2021 at 01:10:44PM +0530, Sumit Garg wrote:
> > > > Add a config fragment to enable kernel TEE drivers.
> > > >
> > > > Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> > >
> > > Added to master branch
> > >
> >
> > Thanks Jon, can you apply this to the hardknott branch as well?
>
> I had to rework it a little, due to the zone dma hacks ever changing.
> It's in hardknott-next branch and I'll push after it passes CI.
>
Thanks.
-Sumit
> Thanks,
> Jon
>
> >
> > -Sumit
> >
> > > Thanks,
> > > Jon
> > >
> > > > ---
> > > > meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg | 10 ++++++++++
> > > > .../recipes-kernel/linux/linux-yocto_5.10.bbappend | 5 ++++-
> > > > 2 files changed, 14 insertions(+), 1 deletion(-)
> > > > create mode 100644 meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > > >
> > > > diff --git a/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > > > new file mode 100644
> > > > index 0000000..3de03bf
> > > > --- /dev/null
> > > > +++ b/meta-arm/recipes-kernel/linux/linux-yocto/tee.cfg
> > > > @@ -0,0 +1,10 @@
> > > > +CONFIG_HW_RANDOM_OPTEE=y
> > > > +CONFIG_TEE=y
> > > > +
> > > > +#
> > > > +# TEE drivers
> > > > +#
> > > > +CONFIG_OPTEE=y
> > > > +CONFIG_OPTEE_SHM_NUM_PRIV_PAGES=1
> > > > +# end of TEE drivers
> > > > +
> > > > diff --git a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > > > index b9995e0..3c3d36a 100644
> > > > --- a/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > > > +++ b/meta-arm/recipes-kernel/linux/linux-yocto_5.10.bbappend
> > > > @@ -14,4 +14,7 @@ SRC_URI_append_qemuarm64-sbsa = " \
> > > > "
> > > >
> > > > FILESEXTRAPATHS_prepend_qemuarm64-secureboot = "${ARMFILESPATHS}"
> > > > -SRC_URI_append_qemuarm64-secureboot = " file://zone_dma_revert.patch"
> > > > +SRC_URI_append_qemuarm64-secureboot = " \
> > > > + file://zone_dma_revert.patch \
> > > > + file://tee.cfg \
> > > > + "
> > > > --
> > > > 2.25.1
> > > >
> > >
> > > >
> > > >
> > > >
> > >
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-07-22 8:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-19 7:40 [PATCH] arm/qemuarm64-secureboot: Enable kernel TEE drivers Sumit Garg
2021-05-20 15:25 ` [meta-arm] " Jon Mason
2021-07-20 5:54 ` Sumit Garg
2021-07-20 14:41 ` Jon Mason
2021-07-22 8:01 ` Sumit Garg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.