From: Michael Ellerman <michael@ellerman.id.au>
To: Jon Loeliger <jdl@freescale.com>
Cc: "linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>,
Michael Neuling <mikey@neuling.org>
Subject: Re: [patch][rfc]flattened device tree: Passing a dtb (blob) to Linux.
Date: Tue, 18 Apr 2006 20:04:11 +0200 [thread overview]
Message-ID: <1145383451.20176.9.camel@localhost.localdomain> (raw)
In-Reply-To: <1145378886.5314.57.camel@cashmere.sps.mot.com>
[-- Attachment #1: Type: text/plain, Size: 2526 bytes --]
On Tue, 2006-04-18 at 11:48 -0500, Jon Loeliger wrote:
> On Thu, 2006-04-13 at 09:34, Michael Ellerman wrote:
> > On Thu, 2006-04-13 at 09:19 -0400, Jimi Xenidis wrote:
> > > Actually, is this even an issue? can the LMB handle repeated
> > > reservations?
> >
> > It can, but we were thinking about adding code to check and warn if
> > reservations overlap, because it usually indicates a bug. Although
> > that's probably ok in this case, as long as dtc gets fixed eventually.
> > Another option would be to not warn for identical reservations.
>
> > > >>>>> NOTE: that the dtc must also not generate the blob reservation
> > > >>>>> entry.
>
> > > >> looking passed my own world I see:
> > > >> - iSeries: not reserving the blob at all
> > > >
> > > > That sounds right. I think having the kernel do it is definitely the
> > > > right option.
>
>
> OK, I'm back to reading the list and beginning to catch
> up some here...
>
> Let me see if I understand the consensus and direction:
>
> 1) DTC should NOT reserve its own blob space in the
> memory map, as it does for generated ASM code now,
>
> 2) Kernel should reserve the blob space early so as
> not to step on itself later,
>
> 3a) Kernel LMB handling should be modified to warn
> for overlapping LMB reservations,
>
> Except that Ben says:
>
> 3b) We should make lmb_reserve() of redudant/overlapping
> entries become harmless I think. We need to be
> backward compatible with earlier blobs that do
> contain themselves in the reserve map.
>
> I think we should interpret "harmless" to be "warn" and not
> cause an error at this point in time.
>
> I do not think we should have the blob generate its own
> reservation because it is possible that some post-processing
> (like U-Boot) can modify and extend it. Only after that can
> the blob's true size be determined. (Sure, it could update
> on the fly too... but double blah).
>
> In all of this, I'm on deck for step 1) above.
Nice summary :)
I'm up for 3a, we should make redundant/overlapping reserves "harmless",
by which I mean "not an error", but there should definitely be a warning
in the dmesg - as it will _usually_ indicate a bug.
cheers
--
Michael Ellerman
IBM OzLabs
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~2006-04-18 18:04 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 2:05 [patch][rfc]flattened device tree: Passing a dtb (blob) to Linux Jimi Xenidis
2006-04-13 2:15 ` Jimi Xenidis
2006-04-13 5:36 ` Michael Neuling
2006-04-13 10:37 ` Jimi Xenidis
2006-04-13 11:07 ` Michael Ellerman
2006-04-13 13:19 ` Jimi Xenidis
2006-04-13 14:34 ` Michael Ellerman
2006-04-18 16:48 ` Jon Loeliger
2006-04-18 18:04 ` Michael Ellerman [this message]
2006-04-18 18:42 ` Jimi Xenidis
2006-04-20 15:42 ` Jon Loeliger
2006-04-20 20:20 ` Mark A. Greer
2006-04-13 23:12 ` Benjamin Herrenschmidt
2006-04-14 12:45 ` Jimi Xenidis
2006-04-14 16:19 ` Michael Ellerman
2006-05-18 22:03 ` [PATCH] powerpc: Auto reserve of device tree blob Michael Neuling
2006-05-22 16:25 ` Jon Loeliger
2006-05-23 15:04 ` Jon Loeliger
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=1145383451.20176.9.camel@localhost.localdomain \
--to=michael@ellerman.id.au \
--cc=jdl@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=mikey@neuling.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;
as well as URLs for NNTP newsgroup(s).