From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-06.arcor-online.net (mail-in-06.arcor-online.net [151.189.21.46]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 4E206DDF29 for ; Sun, 13 May 2007 00:08:25 +1000 (EST) In-Reply-To: <20070510235453.GD27188@localhost.localdomain> References: <20070509004948.GB4198@localhost.localdomain> <1178706570.3453.63.camel@zod.rchland.ibm.com> <0f60e44e6c7848e5eee8c82c0f2bfaec@kernel.crashing.org> <20070510235453.GD27188@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [PATCH v2 6/7] Holly DTS Date: Sat, 12 May 2007 14:02:42 +0200 To: David Gibson Cc: Olof Johansson , linuxppc-dev@ozlabs.org, Loeliger Jon-LOELIGER List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >>> 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. Segher