From: Leif Lindholm <leif.lindholm@linaro.org>
To: Rob Herring <robherring2@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org, roy.franz@linaro.org,
linux-efi@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kernel@vger.kernel.org, grant.likely@secretlab.ca,
matt.fleming@intel.com, msalter@redhat.com,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
arnd@arndb.de
Subject: Re: [PATCH v2 1/3] Documentation: arm: add UEFI support documentation
Date: Thu, 3 Oct 2013 19:18:02 +0200 [thread overview]
Message-ID: <20131003171800.GC1557@rocoto.smurfnet.nu> (raw)
In-Reply-To: <524D9726.6080501@gmail.com>
On Thu, Oct 03, 2013 at 11:11:18AM -0500, Rob Herring wrote:
> Adding devicetree list since you are defining bindings...
>
> > +with CONFIG_OF.
> > +
> > +It parses the FDT /chosen node for the following parameters:
>
> DT bindings should be documented in Documentation/devicetree/bindings.
>
> I also wonder if this would be more appropriately placed in a /firmware
> node.
This is information passed to the kernel by the bootloader - not
system descriptiont - so I don't quite see why it needs different
treatment from initrd and bootargs.
Feedback on v1 was:
https://lkml.org/lkml/2013/6/26/378
and
https://lkml.org/lkml/2013/6/27/420
I don't really mind either way, but the current layout is now used
across 3 sets of kernel patches, so we need to reach some sort of
consensus. Interested parties so far: me, you, Grant, Arnd, Mark.
> > +- 'linux,efi-mmap':
> > + The EFI memory map as an embedded property. (required)
> > + An array of type EFI_MEMORY_DESCRIPTOR as described by the UEFI
> > + specification, current version described in Linux by efi_memory_desc_t.
>
> Is that too complex to describe here?
No, just felt a bit redundant, and also not architecture-specific.
> > + The memory map is represented in little-endian, not DT, byte order.
> > + This map needs to contain at least the regions to be preserved for runtime
> > + services, but would normally just be the map retreieved by calling UEFI
> > + GetMemoryMap() immediately before ExitBootServices().
> > +- 'linux,efi-mmap-desc-size':
> > + Size of each descriptor in the memory map. (override default)
>
> 32-bit value?
Value as returned by the above mentioned GetMemoryMap().
Defined in UEFI specification (and <linux/efi.h>) as 32-bit (native
int). But yes, I can be explicit.
> > +- 'linux,efi-mmap-desc-ver':
> > + Memory descriptor format version. (override default)
>
> String? Number?
Value as returned by the above mentioned GetMemoryMap().
Defined in the UEFI specification as 32-bit (uint32), not
architecture specific. And I can add that too.
> Are these all generated by UEFI at runtime or could they be statically
> set in a platform's DTB?
Generated at runtime.
This is not the platform memory map, this is the UEFI memory map,
which tells us which regions we need to preserve for runtime
services, ACPI and such.
> How would other OS's get this information? Is this really linux specific?
The way it is passed through DT is. Other operating systems might keep
boot services running for longer, and make calls into UEFI later, so
not needing to cache the data. Since boot services means the timer
interrupt is active, the ARM Linux boot protocol effectively prohibits
this.
Many of these questions are about generic UEFI mechanisms.
If they need to be documented outside the UEFI specification,
Documentation/arm is not the right place for it.
If you want, I could give a basic Documentation/uefi.txt a shot.
/
Leif
next prev parent reply other threads:[~2013-10-03 17:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 11:24 [PATCH v2 0/3] arm: [U]EFI runtime services support Leif Lindholm
2013-10-03 11:24 ` [PATCH v2 1/3] Documentation: arm: add UEFI support documentation Leif Lindholm
2013-10-03 16:11 ` Rob Herring
2013-10-03 17:18 ` Leif Lindholm [this message]
2013-10-04 12:54 ` Mark Rutland
2013-10-03 17:10 ` Mark Rutland
2013-10-03 19:44 ` Leif Lindholm
2013-10-03 11:24 ` [PATCH v2 2/3] arm: Add [U]EFI runtime services support Leif Lindholm
2013-10-17 14:07 ` Matt Fleming
2013-10-17 14:31 ` Leif Lindholm
2013-10-17 16:58 ` Mark Salter
2013-10-03 11:24 ` [PATCH v2 3/3] init: efi: arm: enable (U)EFI runtime services on arm Leif Lindholm
2013-11-15 18:04 ` [PATCH v2 0/3] arm: [U]EFI runtime services support Olof Johansson
2013-11-15 18:54 ` Leif Lindholm
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=20131003171800.GC1557@rocoto.smurfnet.nu \
--to=leif.lindholm@linaro.org \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@secretlab.ca \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=matt.fleming@intel.com \
--cc=msalter@redhat.com \
--cc=robherring2@gmail.com \
--cc=roy.franz@linaro.org \
/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
all inboxes | Powered by JetHome®