From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v4, 07/11] spl: add support to booting with OP-TEE
Date: Mon, 19 Feb 2018 10:44:31 -0500 [thread overview]
Message-ID: <20180219154431.GR4311@bill-the-cat> (raw)
In-Reply-To: <C0C58442-E6FC-4249-A0B7-1B29494E754D@theobroma-systems.com>
On Fri, Feb 02, 2018 at 04:56:57PM +0100, Dr. Philipp Tomsich wrote:
> Bryan,
>
> > On 2 Feb 2018, at 16:37, Bryan O'Donoghue <bryan.odonoghue@linaro.org> wrote:
> >
> >
> >
> > On 02/02/18 15:02, Dr. Philipp Tomsich wrote:
> >> Where do we stand on this: can we reuse IH_TYPE_TEE, will be use IH_TYPE_OPTEE or will there be a new IH_TYPE_OPTEE_SPL?
> >
> > I think because you aren't doing anything different with the image type you can reuse IH_TYPE_TEE
> >
> > This
> >
> > +#if CONFIG_IS_ENABLED(OPTEE)
> > + case IH_OS_OP_TEE:
> > + debug("Jumping to U-Boot via OP-TEE\n");
> > + spl_optee_entry(NULL, NULL, spl_image->fdt_addr,
> > + (void *)spl_image.entry_point);
> > + break;
> > +#endif
> >
> > could just as easily be this
> >
> > +#if CONFIG_IS_ENABLED(OPTEE)
> > + case IH_TYPE_TEE:
> > + debug("Jumping to U-Boot via OP-TEE\n");
> > + spl_optee_entry(NULL, NULL, spl_image->fdt_addr,
> > + (void *)spl_image.entry_point);
> > + break;
> > +#endif
> >
> > should be a matter of just replacing the call to mkimage to use
> >
> > mkimage -A arm -T tee
> >
> > instead of
> >
> > mkimage -A arm -T optee
> >
> > and the suggested change above.. case IH_OS_OP_TEE -> case IH_TYPE_TEE
>
> Thanks for summarising your suggestion.
>
> However, my mail was intended to test the waters to see what the consensus was.
> A it appears that none has yet emerged between all the involved parties (including
> our colleagues from TI that had also chimed in on the discussion).
> So for now, I’ll sit back and wait until some sort of consensus (or at least a majority
> for one solution or the other) emerges.
>
> Personally, I am not happy with having a ‘tee’ and an ‘optee’ both refering to OP-TEE
> and the upstream OP-TEE documentation suggesting that their envisioned boot
> process was to boot through the OP-TEE (i.e. what the ‘tee’ image type does).
> However, with the ‘tee’ image type already being defined, we seem to have already
> backed ourselves into a situation where the naming is non-intuitive.
Alright, I'm a little confused here. I guess first, there's a
disconnect in upstream OP-TEE land about how 32bit ARM should be done?
I guess we have three different implemented and upstreamed flows:
- SPL->U-Boot->OP-TEE->U-Boot->Linux
- SPL->U-Boot->OP-TEE->Linux
- SPL->OP-TEE->U-Boot->Linux
And in this last case we have a combined image that is passed from SPL
to OP-TEE.
Since all 3 of these flows are in upstream OP-TEE, we need to support
them all. The biggest constraint is that we have the first flow already
in and named "tee" (my fault, I should have made sure everyone would use
the same flow). So we need to have descriptive enough names for the
other flows that we're going to add so that it's clear what's what. How
about "tee-standalone" for "U-Boot starts OP-TEE, and is done" and
"tee-combo" for "SPL gives OP-TEE an image to deal with". This could
even in theory I suspect be SPL gives OP-TEE a Linux kernel to boot.
I'm also happy to hear better suffixes but I don't want "tee" and
"optee". And if we can cover two flows under the same name, that's good
too, we just need to name the last flow "tee-something". Thanks all!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180219/8ff24172/attachment.sig>
next prev parent reply other threads:[~2018-02-19 15:44 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-04 7:06 [U-Boot] [PATCH v4 00/11] rockchip: add tpl and OPTEE support for rk3229 Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 01/11] lib: add TPL_OF_LIBFDT option for TPL Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 02/11] arm: add option for TPL ARCH_MEM in arm 32bit Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 03/11] arm: add a separate stack for TPL Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 04/11] rockchip: rk322x: enable tpl support Kever Yang
2018-01-12 11:27 ` [U-Boot] [U-Boot, v4, " Philipp Tomsich
2018-01-25 9:46 ` Philipp Tomsich
2018-01-04 7:07 ` [U-Boot] [PATCH v4 05/11] sysreset: enable driver support in SPL/TPL Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 06/11] image: add os type for OP-TEE Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 07/11] spl: add support to booting with OP-TEE Kever Yang
2018-01-12 11:27 ` [U-Boot] [U-Boot, v4, " Philipp Tomsich
2018-01-12 15:10 ` Bryan O'Donoghue
2018-01-15 3:25 ` Kever Yang
2018-01-15 4:48 ` Peng Fan
2018-01-17 17:48 ` Bryan O'Donoghue
2018-01-18 1:31 ` Kever Yang
2018-01-18 11:21 ` Bryan O'Donoghue
2018-01-25 10:09 ` Bryan O'Donoghue
2018-02-02 15:02 ` Dr. Philipp Tomsich
2018-02-02 15:37 ` Bryan O'Donoghue
2018-02-02 15:56 ` Dr. Philipp Tomsich
2018-02-19 15:44 ` Tom Rini [this message]
2018-02-21 3:27 ` Bryan O'Donoghue
2018-02-21 13:16 ` Dr. Philipp Tomsich
2018-02-21 14:30 ` Andrew F. Davis
2018-01-25 9:46 ` Philipp Tomsich
2018-01-04 7:07 ` [U-Boot] [PATCH v4 08/11] rockchip: rk322x: dts: enable uart2 for SPL/TPL Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 09/11] rockchip: add fit source file for pack itb with op-tee Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 10/11] rockchip: evb-rk3229: add README file for OP-TEE support Kever Yang
2018-01-04 7:07 ` [U-Boot] [PATCH v4 11/11] rockchip: evb-rk322x: update defconfig with tpl and optee support Kever Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180219154431.GR4311@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox