From: David Gibson <dwg@au1.ibm.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Olof Johansson <olof@lixom.net>,
linuxppc-dev@ozlabs.org,
Loeliger Jon-LOELIGER <jdl@Freescale.com>
Subject: Re: [PATCH v2 6/7] Holly DTS
Date: Mon, 14 May 2007 10:24:57 +1000 [thread overview]
Message-ID: <20070514002457.GD6517@localhost.localdomain> (raw)
In-Reply-To: <b5cd56b7081eaba062cf056545777989@kernel.crashing.org>
On Sat, May 12, 2007 at 02:02:42PM +0200, Segher Boessenkool wrote:
> >>> What exactly did this ?? syntax imply? I must have missed that
> >>> thread.
> >>
> >> A property in a DTS file can use that to say
> >> the property should have a value, but it will
> >> be filled in by the bootwrapper instead (memory
> >> address/size, or network MAC address, for
> >> instance). Presumably the kernel parser would
> >> complain when it sees the this-is-still-undefined
> >> marker.
> >>
> >> The original proposal specified the length of
> >> the property value IIRC, but that isn't necessary
> >> anymore.
> >
> > Well.. sort of. The first cut at the idea is that ? would be
> > equivalent to zeroes in terms of dtc output, but would act as internal
> > documentation that that property is supposed to be filled in by the
> > bootloader.
>
> Yes.
>
> > Refinements to try to enforce that would be nice:
>
> Exactly my point.
>
> > easiest is to
> > replace it with a configurable poison value. When using asm output,
> > or with a map file, it might be possible to generate out-of-band
> > information which we can use to check that the right things are filled
> > in.
> >
> > It's not a simply a matter of making the kernel parser recognize the
> > uninitialized info, because there's no way to encode that in the dtb
> > itself.
>
> There can be, with a new DTB version -- perhaps simply
> define proplen == -1 to mean "undefined" or similar.
That doesn't quite do it, because I'd prefer ? to cover cases where
the property's length is known, just not its value. In particular
that could be useful for device trees where *only* non-moving edits
are required by the bootloader, letting us use the asm output mode as
intended.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2007-05-14 0:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-05 16:13 [PATCH v2 0/7] Add support for 750CL Holly board Josh Boyer
2007-05-05 16:14 ` [PATCH v2 0/1] Add tsi108_pci.h for common PCI functions Josh Boyer
2007-05-05 16:15 ` [PATCH v2 2/7] Generalize tsi108 PHY types Josh Boyer
2007-05-05 16:16 ` [PATCH v2 3/7] Generalize TSI 108 PCI setup Josh Boyer
2007-05-05 16:17 ` [PATCH v2 4/7] Add support for 750CL Holly board Josh Boyer
2007-05-07 4:22 ` Paul Mackerras
2007-05-07 10:32 ` Josh Boyer
2007-05-05 16:19 ` [PATCH v2 5/7] Holly defconfig Josh Boyer
2007-05-05 16:20 ` [PATCH v2 6/7] Holly DTS Josh Boyer
2007-05-05 17:21 ` Segher Boessenkool
2007-05-05 18:12 ` Josh Boyer
2007-05-05 20:44 ` Segher Boessenkool
2007-05-05 21:36 ` Josh Boyer
2007-05-06 0:47 ` Segher Boessenkool
2007-05-05 19:13 ` Olof Johansson
2007-05-05 19:46 ` Josh Boyer
2007-05-05 20:51 ` Segher Boessenkool
2007-05-05 20:49 ` Segher Boessenkool
2007-05-07 17:50 ` Loeliger Jon-LOELIGER
2007-05-09 0:49 ` David Gibson
2007-05-09 7:40 ` Stephen Rothwell
2007-05-09 10:29 ` Josh Boyer
2007-05-09 15:28 ` Segher Boessenkool
2007-05-10 23:54 ` David Gibson
2007-05-12 12:02 ` Segher Boessenkool
2007-05-14 0:24 ` David Gibson [this message]
2007-05-14 12:33 ` Segher Boessenkool
2007-05-14 16:16 ` Scott Wood
2007-05-06 0:40 ` David Gibson
2007-05-07 13:11 ` Josh Boyer
2007-05-08 0:06 ` David Gibson
2007-05-05 16:20 ` [PATCH v2 7/7] Holly bootwrapper Josh Boyer
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=20070514002457.GD6517@localhost.localdomain \
--to=dwg@au1.ibm.com \
--cc=jdl@Freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=olof@lixom.net \
--cc=segher@kernel.crashing.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).