All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jose Marinho <Jose.Marinho@arm.com>
To: Simon Glass <sjg@chromium.org>, Rob Herring <robh@kernel.org>
Cc: "tf-a@lists.trustedfirmware.org" <tf-a@lists.trustedfirmware.org>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	"boot-architecture@lists.linaro.org"
	<boot-architecture@lists.linaro.org>,
	"François Ozog" <francois.ozog@linaro.org>,
	"Manish Pandey2" <Manish.Pandey2@arm.com>,
	"Joanna Farley" <Joanna.Farley@arm.com>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Matteo Carlini" <Matteo.Carlini@arm.com>,
	"Dan Handley" <Dan.Handley@arm.com>,
	"Harb Abdulhamid (harb@amperecomputing.com)"
	<harb@amperecomputing.com>,
	"Samer El-Haj-Mahmoud" <Samer.El-Haj-Mahmoud@arm.com>,
	nd <nd@arm.com>
Subject: RE: [RFC] Proposed location to host the firmware handoff specification.
Date: Wed, 6 Jul 2022 10:50:02 +0000	[thread overview]
Message-ID: <DBBPR08MB601241E4808677CBA4C91F8E88809@DBBPR08MB6012.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <CAPnjgZ0o2oCLUeA9hxZPPZs_yvw8pftMckHsEM3VQGXz_TGtiQ@mail.gmail.com>

Hi All,

> -----Original Message-----
> From: Simon Glass <sjg@chromium.org>
> Sent: 06 July 2022 09:34
> To: Rob Herring <robh@kernel.org>
> Cc: Jose Marinho <Jose.Marinho@arm.com>; tf-a@lists.trustedfirmware.org;
> u-boot@lists.denx.de; boot-architecture@lists.linaro.org; François Ozog
> <francois.ozog@linaro.org>; Manish Pandey2 <Manish.Pandey2@arm.com>;
> Joanna Farley <Joanna.Farley@arm.com>; Ilias Apalodimas
> <ilias.apalodimas@linaro.org>; Matteo Carlini <Matteo.Carlini@arm.com>;
> Dan Handley <Dan.Handley@arm.com>; Harb Abdulhamid
> (harb@amperecomputing.com) <harb@amperecomputing.com>; Samer El-
> Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>; nd <nd@arm.com>
> Subject: Re: [RFC] Proposed location to host the firmware handoff
> specification.
> 
> Hi Rob,
> 
> On Tue, 5 Jul 2022 at 11:27, Rob Herring <robh@kernel.org> wrote:
> >
> > On Tue, Jul 5, 2022 at 10:37 AM Simon Glass <sjg@chromium.org> wrote:
> > >
> > > Hi Rob,
> > >
> > > On Tue, 5 Jul 2022 at 09:24, Rob Herring <robh@kernel.org> wrote:
> > > >
> > > > On Thu, Jun 30, 2022 at 3:24 AM Simon Glass <sjg@chromium.org>
> wrote:
> > > > >
> > > > > Hi Jose,
> > > > >
> > > > > I don't think this is correct. TF-A is a project that aims to
> > > > > replace U-Boot SPL (and perhaps other components) with more
> > > > > closed firmware, e.g. the permissive license.
> > > > >
> > > > > This spec needs to be in a neutral place, not captive of one project.
> > > > >
> > > > > Given its close relationship to device tree, I suggest
> > > > > github.com/devicetree-org
> > > >
> > > > The only relationship to DT I see is DT is a payload as is ACPI.
> > > > So I don't think dt.org is the right place.
> > >
> > > Actually I was about to email you about this. Here's how I see it.
> > >
> > > DT is a base structure to allow self-describing data to be stored.
> > > This is in contrast with ACPI where there is just a header, but it
> > > is not possible to read the data without specific parsing code for
> > > the particular table types. Let's ignore ACPI for this discussion.
> > >
> > > Unfortunately DT has an overhead and is too expensive for early
> > > firmware use. It takes 3-4KB of code for libfdt as well as extra
> > > code and data to read properties, etc.
> > >
> > > Transfer List aims to bridge the gap, allowing simple C structures
> > > to be put into a tagged data structure. The intention is that
> > > anything more complex than that would use DT.
> > >
> > > So there is at least some relationship: simple stuff = Transfer
> > > list, complex stuff = DT.
> >
> > That's a stretch IMO. Perhaps if this was a new output (DTB) format
> > for easier parsing, I'd agree. It's related to DT only as much as any
> > other data passed between 2 boot components (remember ATAGS?).
> 
> Yes it is a stretch. I'm just making the case.
> 
> >
> > > The Transfer List spec specifies the data format for each entry type
> > > (the analog to the schema). The DT provides the format and schema
> > > for more complicated stuff.
> > >
> > > We could perhaps put it in an entirely separate repo, but to me
> > > there is a relationship with DT.
> >
> > It seems to me that TF is the main driver and user of this, so I don't
> > see the issue with them hosting it at least to start as long as
> > there's not barriers to contributions. It's just a namespace like
> > devicetree-org. Personally, I'd be more concerned on what the source
> > format is (I assume the plan is not to commit PDFs) and what the
> > output generation is. GH has a lot of nice features to support that
> > which we've used for the DT spec and EBBR.

The default working plan is for the source format to be sphinx.
Other alternatives/suggestions are welcome.

The output generated should be html (pdf can be supported too for 0/negligible effort).
This generation process can and will most likely evolve over time, depending on community direction/desire and the tools we have at our disposal.
The process should be as automated as possible given any practical constraints 😊 .

Regards,
Jose

> 
> Yes the DT spec works well and I hope the same thing can be used.
> 
> >
> > I'm not saying no to devicetree-org either. If the consensus is to put
> > it there, I really don't care so much as it takes less time to create
> > a new repo there than to write this email.
> 
> I do hope that this can become a standard beyond ARM, e.g. with Intel and
> another i can think of. Intel is essentially trying to create a different thing
> independently, although has apparently adjusted to use device tree due to
> its self-describing properties. I suspect that having this spec in an ARM site
> would be a barrier to that.
> 
> I am OK with ARM TF being the means to get this into the open, but not with
> it being the final destination.
> 
> If we cannot agree on anything better, I am happy with creating a new
> project on github. We'll need to pick someone to own it and make final calls
> when there is disagreement.
> 
> Regards,
> Simon

  reply	other threads:[~2022-07-06 10:50 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-23 14:20 [RFC] Proposed location to host the firmware handoff specification Jose Marinho
2022-06-30  9:24 ` Simon Glass
2022-06-30 10:40   ` Ilias Apalodimas
2022-07-05 19:04     ` Tom Rini
2022-06-30 14:11   ` Dan Handley
2022-07-05 15:24   ` Rob Herring
2022-07-05 16:37     ` Simon Glass
2022-07-05 17:26       ` Rob Herring
2022-07-06  8:33         ` Simon Glass
2022-07-06 10:50           ` Jose Marinho [this message]
2022-07-06 11:57             ` Varun Wadekar
2022-07-06 14:57               ` Jose Marinho
2022-07-09  1:35 ` [TF-A] " Julius Werner
2022-07-10 19:21   ` Jose Marinho
2022-07-12  4:32     ` Julius Werner
2022-11-15  9:45       ` Jose Marinho
2022-11-30  1:52         ` Julius Werner
2022-11-30  2:15           ` Simon Glass
2022-11-30  3:48             ` Julius Werner
2022-12-02 17:54               ` Simon Glass
2022-12-05 17:50                 ` Dan Handley
2022-12-05 18:00                   ` Simon Glass
2022-12-06  4:18                     ` Julius Werner
2022-12-06 16:14                       ` Dan Handley
2023-05-09  8:48                         ` Jose Marinho
2022-12-06 22:54                       ` [TF-A] " Stuart Yoder
2022-12-07  5:55                         ` Julius Werner
     [not found] ` <166187274353.1181.17281765112373731506@lists.trustedfirmware.org>
2022-09-13 15:48   ` Dan Handley
2022-09-18  3:05     ` Simon Glass
2022-11-14 15:29       ` Jose Marinho
2022-11-15 15:29         ` Varun Wadekar
2022-11-15 17:09           ` Dan Handley

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=DBBPR08MB601241E4808677CBA4C91F8E88809@DBBPR08MB6012.eurprd08.prod.outlook.com \
    --to=jose.marinho@arm.com \
    --cc=Dan.Handley@arm.com \
    --cc=Joanna.Farley@arm.com \
    --cc=Manish.Pandey2@arm.com \
    --cc=Matteo.Carlini@arm.com \
    --cc=Samer.El-Haj-Mahmoud@arm.com \
    --cc=boot-architecture@lists.linaro.org \
    --cc=francois.ozog@linaro.org \
    --cc=harb@amperecomputing.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=nd@arm.com \
    --cc=robh@kernel.org \
    --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.