All of lore.kernel.org
 help / color / mirror / Atom feed
From: Manish Pandey2 <Manish.Pandey2@arm.com>
To: "Daniel Thompson" <daniel.thompson@linaro.org>,
	"François Ozog" <francois.ozog@linaro.org>
Cc: Julius Werner <jwerner@chromium.org>,
	Ed Stuber <edstuber@amperecomputing.com>,
	Boot Architecture Mailman List
	<boot-architecture@lists.linaro.org>,
	undefined <loic.pallardy@st.com>,
	Harb Abdulhamid OS <abdulhamid@os.amperecomputing.com>,
	Simon Glass <sjg@chromium.org>,
	Arjun Khare <akhare@amperecomputing.com>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	"tf-a@lists.trustedfirmware.org" <tf-a@lists.trustedfirmware.org>,
	Paul Isaac's <paul.isaacs@linaro.org>,
	Ron Minnich <rminnich@google.com>,
	Moe Ammar <moe@amperecomputing.com>
Subject: Re: [TF-A] Proposal: TF-A to adopt hand-off blocks (HOBs) for information passing between boot stages
Date: Fri, 9 Jul 2021 15:43:12 +0000	[thread overview]
Message-ID: <VI1PR08MB34722CEB749F941F19EDD1E9C0189@VI1PR08MB3472.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <20210709100732.zynd3qkwqjamb5qm@maple.lan>

Please find my replies

To Julius's question:
Just to clarify: are you using "bloblist" as a general term for the concept of a simple linked list of tagged data blobs, or to refer specifically to the U-Boot implementation with that name? The existing TF-A implementation (bl_aux_params) is basically identical in concept to the U-Boot bloblist, but not binary compatible. Are we talking about just keeping that, or throwing it away in order to reimplement the exact structure U-Boot is using? (I would prefer to keep the bl_aux_params as they are to avoid disrupting existing uses, of course. Making backwards-incompatible changes to an interface that passes across multiple repos and firmware components is always a big pain.)
- "bloblist" is a general term for concept of linked list and it's not exactly U-boot implementation. The proposed solution will cause some degree of changes in all the participating projects. For backward compatibility issue, we have already though about it and proposed to have build configs which will be enabled by platform integrators.

To Daniel's question:
In short are you confident adopting a mantra of "it doesn't exist unless it's upstreamed" is sufficient?
- "If it is not upstreamed we don't know if it exists or not?", Since we can't know/control what all are hidden in closed sources, so we are only concentrating on open sources.

Finally, We are trying to solve a problem(in a standard way) which is already solved in different projects differently. To have a common solution acceptable to all, changes in participating projects are inevitable. Once we get agreement in principle, we should be ready to have some changes in the codebase. The TF-A project is willing to put effort to put something out there that will enable other projects, but we need some degree of assurances that proposed changes will be accepted in other projects also.


Thanks
Manish
________________________________
From: Daniel Thompson <daniel.thompson@linaro.org>
Sent: 09 July 2021 11:07
To: François Ozog <francois.ozog@linaro.org>
Cc: Julius Werner <jwerner@chromium.org>; Ed Stuber <edstuber@amperecomputing.com>; Boot Architecture Mailman List <boot-architecture@lists.linaro.org>; undefined <loic.pallardy@st.com>; Harb Abdulhamid OS <abdulhamid@os.amperecomputing.com>; Simon Glass <sjg@chromium.org>; Arjun Khare <akhare@amperecomputing.com>; U-Boot Mailing List <u-boot@lists.denx.de>; tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.org>; Paul Isaac's <paul.isaacs@linaro.org>; Ron Minnich <rminnich@google.com>; Moe Ammar <moe@amperecomputing.com>; Manish Pandey2 <Manish.Pandey2@arm.com>
Subject: Re: [TF-A] Proposal: TF-A to adopt hand-off blocks (HOBs) for information passing between boot stages

On Fri, Jul 09, 2021 at 09:05:09AM +0200, François Ozog wrote:
> Le ven. 9 juil. 2021 à 03:09, Julius Werner <jwerner@chromium.org> a écrit :
>
> > > Of course every project would like not to change...
> > >
> > > For TF-A I wonder whether it will/should in fact use devicetree if there
> > is a lot of complex data? TBD, I suppose.
> >
> > Okay, sorry, now I'm a bit confused -- I thought the discussion in
> > this thread was about which parameter hand-off mechanism to use *for
> > TF-A*? Or did it shift to discuss other projects in the meantime (I
> > didn't always follow it closely)? I think it started with the UEFI
> > guys wanting to implement a HOB format to interface with TF-A, and I
> > think we now concluded that they're okay with using a simple parameter
> > list instead (and wrapping their custom HOBs into a parameter blob
> > that contains their UUID and everything else in the data part).
> >
> > So for TF-A, if the decision is that we want a parameter list, I think
> > it makes sense to keep using the format that has already been there
> > and in use for several years, and define new tags for the UEFI HOB use
> > case in that. I don't really see a reason to switch TF-A and all other
> > projects currently interfacing with it that way (e.g. coreboot) to
> > something only used by U-Boot right now, if they're practically
> > identical in concept.
>
> Looking at bl_au_params: used by 3 SoCs to deal with gpio and serial.

I presume this analysis only covers those SoCs where someone (vendor,
customer, community) has upstreamed their TF-A implementation?

It is only relatively recently[1] that the TF-A CLA requirements that
inhibited upstreaming were relaxed. Additionally the current silicon
supply crunch is forcing board designers to second (third and forth)
source critical components which can drive usage of firmware parameter
passing.

In short are you confident adopting a mantra of "it doesn't exist
unless it's upstreamed" is sufficient?


Daniel.


[1] Perhaps not that recent if measured in years... but certainly
    recent relative to firmware life cycles!


> Migration may not be that a big effort (handful lines of code?).  The
> key thing is that the biggest consumer of them are BL33 and a little
> bit by some OS drivers (OS itself shall not be a consumer).  U-Boot
> has an established mechanism which is used in particular on all chrome
> books in both x86 and Arm environments.  I have the impression that
> U-Boot is the typical BL33 so I would import the mechanism into TFA,
> not the other way round.  EDK2 has typically its own code for TFA
> matters and may just import BL31, so it does not appear a priority in
> that decision. But I may be wrong…
>
> >
> > --
> François-Frédéric Ozog | *Director Business Development* T:
> +33.67221.6485 francois.ozog@linaro.org | Skype: ffozog
> _______________________________________________ boot-architecture
> mailing list boot-architecture@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/boot-architecture

  reply	other threads:[~2021-07-09 15:43 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <010001785912437d-ab3ef3d5-960c-4f85-bd2c-7f7853900e7a-000000@email.amazonses.com>
     [not found] ` <CAHFG_=W8LGwtEMW=qrki4DixTtatc4tcdHM5Gekx2eoRHXe-Ng@mail.gmail.com>
     [not found]   ` <CAPnjgZ1HK+Wnw0p+6bZddeMM804sxEmU_BJW8nAu64GG4D-9MA@mail.gmail.com>
     [not found]     ` <010001785e96cf83-06ded054-1d8b-47f3-8096-f205a92305f0-000000@email.amazonses.com>
     [not found]       ` <CAHFG_=WueeAuVB9Z2kg635zEF8skCVAwENU52BoEiu9BGQGMzg@mail.gmail.com>
     [not found]         ` <MW2PR0102MB345115D85F03D5863BB3EDB8EE649@MW2PR0102MB3451.prod.exchangelabs.com>
2021-03-24 22:35           ` [TF-A] Proposal: TF-A to adopt hand-off blocks (HOBs) for information passing between boot stages Simon Glass
     [not found]           ` <0100017866b46da2-7ac1b1ae-03f2-4048-81f8-bd38fb59b99f-000000@email.amazonses.com>
2021-03-25  2:42             ` Julius Werner
     [not found]             ` <010001786743f45c-823a9973-7ac5-4f32-bd9d-a5c244d22b31-000000@email.amazonses.com>
2021-03-26 14:58               ` raghu.ncstate at icloud.com
2021-03-29  7:42                 ` Simon Glass
2021-03-29 10:18                   ` Grant Likely
2021-03-29 22:24                     ` Simon Glass
2021-03-29 23:48                 ` Julius Werner
2021-03-30 19:01                   ` raghu.ncstate at icloud.com
     [not found]             ` <010001786743a2ac-3d2da6df-c6f2-4e19-acaa-628ff7d466c2-000000@email.amazonses.com>
2021-04-08 11:55               ` Manish Pandey2
2021-04-08 17:24                 ` Harb Abdulhamid OS
2021-04-08 18:19                   ` Simon Glass
2021-04-08 18:58                     ` Mark Kettenis
2021-04-12 15:16                       ` François Ozog
2021-04-08 21:22                   ` Julius Werner
     [not found]               ` <01000178b1570317-d1af5a40-d575-49ef-9b91-06abe8d04f4b-000000@email.amazonses.com>
2021-04-08 15:50                 ` François Ozog
2021-04-30 12:13                   ` Manish Pandey2
2021-05-05 17:42                     ` Harb Abdulhamid OS
2021-05-05 22:49                       ` Simon Glass
     [not found]                       ` <010001793ebb08a4-29440b1d-778d-4a80-8def-619c2946e275-000000@email.amazonses.com>
2021-05-14 12:29                         ` Okash Khawaja
     [not found]                         ` <010001796adacdd6-3f239ac5-27bb-4c79-a878-30592929b893-000000@email.amazonses.com>
2021-05-16 10:18                           ` Joanna Farley
     [not found]                           ` <0100017974aff4fb-0af45782-0b60-4724-b300-822f8fe4b799-000000@email.amazonses.com>
2021-05-19  1:57                             ` Madhukar Pappireddy
     [not found]                             ` <0100017982591630-15bf1d32-8f0b-4b2a-bb4d-a2ba39760820-000000@email.amazonses.com>
2021-05-19  2:50                               ` Madhukar Pappireddy
2021-05-19 14:33                                 ` Joanna Farley
2021-05-19 14:41                                   ` Joanna Farley
2021-06-02 14:29                                 ` Joanna Farley
2021-06-02 15:26                                   ` Joanna Farley
2021-06-10 21:57                                     ` Manish Pandey2
2021-06-11 11:51                                       ` François Ozog
2021-06-17 19:37                                         ` Simon Glass
2021-06-17 19:47                                           ` François Ozog
2021-07-08 11:18                                             ` Manish Pandey2
2021-07-08 11:48                                               ` François Ozog
     [not found]                                             ` <0100017a8648f3d5-98a3bce6-b2dc-48cb-84e4-c292bcef5622-000000@email.amazonses.com>
2021-07-08 21:56                                               ` Julius Werner
2021-07-08 22:31                                                 ` Simon Glass
2021-07-09  1:08                                                   ` Julius Werner
2021-07-09  7:05                                                     ` François Ozog
2021-07-09 10:07                                                       ` Daniel Thompson
2021-07-09 15:43                                                         ` Manish Pandey2 [this message]
2021-07-09 23:06                                                           ` Julius Werner
2021-07-15 14:25                                                             ` François Ozog
2021-07-15 15:03                                                               ` Simon Glass
2021-07-16  2:23                                                                 ` Julius Werner
     [not found]                                           ` <0100017a1b8bea04-71a338d9-55ac-4163-80c9-2c350d62d425-000000@email.amazonses.com>
2021-06-17 23:45                                             ` raghu.ncstate
2021-06-18 14:43                                               ` Ron Minnich
2021-06-18 16:45                                               ` Simon Glass
2021-06-18 17:17                                               ` Tom Rini
2021-06-21  9:57                                                 ` François Ozog
2021-05-19 21:50                               ` Jeremy Linton
     [not found]                               ` <01000179869c5dac-96846caa-3f3d-4987-8d70-6843f9e46090-000000@email.amazonses.com>
2021-05-20  5:34                                 ` François Ozog
2021-05-20 10:34                               ` Julian Hall
2021-05-20 16:42                                 ` Simon Glass
2021-06-21 10:32                                   ` Alexander Graf
2021-06-21 10:38                                     ` François Ozog
     [not found]                             ` <010001798258ec0b-a221c5f8-618a-456c-9068-b7cc44aa9dec-000000@email.amazonses.com>
2021-05-20  5:45                               ` François Ozog

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=VI1PR08MB34722CEB749F941F19EDD1E9C0189@VI1PR08MB3472.eurprd08.prod.outlook.com \
    --to=manish.pandey2@arm.com \
    --cc=abdulhamid@os.amperecomputing.com \
    --cc=akhare@amperecomputing.com \
    --cc=boot-architecture@lists.linaro.org \
    --cc=daniel.thompson@linaro.org \
    --cc=edstuber@amperecomputing.com \
    --cc=francois.ozog@linaro.org \
    --cc=jwerner@chromium.org \
    --cc=loic.pallardy@st.com \
    --cc=moe@amperecomputing.com \
    --cc=paul.isaacs@linaro.org \
    --cc=rminnich@google.com \
    --cc=sjg@chromium.org \
    --cc=tf-a@lists.trustedfirmware.org \
    --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 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.