From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXo9D-00029w-E6 for qemu-devel@nongnu.org; Thu, 12 Feb 2009 21:51:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXo9B-00025o-H3 for qemu-devel@nongnu.org; Thu, 12 Feb 2009 21:51:22 -0500 Received: from [199.232.76.173] (port=48286 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXo9B-00025c-DX for qemu-devel@nongnu.org; Thu, 12 Feb 2009 21:51:21 -0500 Received: from [202.81.31.146] (port=50802 helo=e23smtp04.au.ibm.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LXo9A-0006Lh-C7 for qemu-devel@nongnu.org; Thu, 12 Feb 2009 21:51:21 -0500 Received: from d23relay02.au.ibm.com (d23relay02.au.ibm.com [202.81.31.244]) by e23smtp04.au.ibm.com (8.13.1/8.13.1) with ESMTP id n1D2nPba005270 for ; Fri, 13 Feb 2009 13:49:25 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay02.au.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n1D2pBMd1187996 for ; Fri, 13 Feb 2009 13:51:11 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n1D2pBXF012428 for ; Fri, 13 Feb 2009 13:51:11 +1100 Date: Fri, 13 Feb 2009 13:51:01 +1100 From: David Gibson Subject: Re: DTS syntax and DTC patches (was: Re: [Qemu-devel] [RFC] Machine description as data) Message-ID: <20090213025101.GC10476@yookeroo.seuss> References: <87iqnh6kyv.fsf@pike.pond.sub.org> <1234378228.28751.79.camel@slate.austin.ibm.com> <20090212040138.GD31142@yookeroo.seuss> <87iqng0x3t.fsf@pike.pond.sub.org> <20090213004305.GB8104@yookeroo.seuss> <4994D6C8.5050004@gmx.net> <20090213021704.GA10476@yookeroo.seuss> <4994DED9.6020803@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4994DED9.6020803@gmx.net> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Carl-Daniel Hailfinger Cc: qemu-devel@nongnu.org, devicetree-discuss@ozlabs.org, Markus Armbruster , Hollis Blanchard , Coreboot On Fri, Feb 13, 2009 at 03:45:45AM +0100, Carl-Daniel Hailfinger wrote: > [Adding the coreboot mailing list to CC. It's moderated for > non-subscribers, but it won't take long for legitimate mails to be > approved.] > > On 13.02.2009 03:17, David Gibson wrote: > > On Fri, Feb 13, 2009 at 03:11:20AM +0100, Carl-Daniel Hailfinger wrote: > > > >> On 13.02.2009 01:43, David Gibson wrote: > >> > >>> On Thu, Feb 12, 2009 at 11:26:46AM +0100, Markus Armbruster wrote: > >>> > >>> > >>>> I didn't mean to say they are a bad idea for FDTs, just that they're on > >>>> an awkward level of abstraction for QEMU configuration. There, I'd > >>>> rather express a PCI address as "02:01.0" than as <0x00000220>. > >>>> Translating text to binary is the machine's job, not the user's. > >>>> > >>>> > >>> Ah, I see what you mean. Hrm, there are several possibilities here, > >>> we'll have to see which works out best for your purposes. > >>> > >> Using the DTC version included in the coreboot v3 sources would solve > >> that problem and give you a readable PCI address representation. > >> > > > > Hrm.. it would be nice if you'd co-ordinated with Jon and I about > > this. Then we could have at least the bits which make sense in > > upstream dtc... > > > > Probably the biggest obstacle for a full merge right now is that the > coreboot v3 DTC is rather old and has been extended not only for a more > readable DTS syntax variant, but also for additional output modes (C > header and C code). If the C output mode is what I'm guessing, it should be pretty easy to add (we already have an asm output mode upstream). The syntax changes will be trickier. I want to review any new syntax for dts very carefully, because I really, really don't want to have to break backwards compatibility in future (I'm unhappy enough about the dts-v0 to dts-v1 transition we've already have). Can you summarise what the syntax changes are? Maybe start a new thread with just devicetree-discuss not the other lists for that. > We (coreboot developers) are interested in reducing our diff with > upstream DTC in order to improve maintainability of our DTC code. Good :) -- 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