From owner-freebsd-sparc64@FreeBSD.ORG Thu Sep 12 15:07:22 2013 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1003D586; Thu, 12 Sep 2013 15:07:22 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from smtpauth3.wiscmail.wisc.edu (wmauth3.doit.wisc.edu [144.92.197.226]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D9D712944; Thu, 12 Sep 2013 15:07:21 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) id <0MT000L00OD6ZT00@smtpauth3.wiscmail.wisc.edu>; Thu, 12 Sep 2013 10:07:20 -0500 (CDT) X-Spam-PmxInfo: Server=avs-3, Version=6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2013.9.12.145714, SenderIP=0.0.0.0 X-Spam-Report: AuthenticatedSender=yes, SenderIP=0.0.0.0 Received: from comporellon.tachypleus.net (unknown [76.210.60.217]) by smtpauth3.wiscmail.wisc.edu (Oracle Communications Messaging Server 7u4-27.01(7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0MT0003B0Q067Q00@smtpauth3.wiscmail.wisc.edu>; Thu, 12 Sep 2013 10:07:19 -0500 (CDT) Message-id: <5231D8A6.9080501@freebsd.org> Date: Thu, 12 Sep 2013 10:07:18 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130907 Thunderbird/17.0.8 To: freebsd-ppc@freebsd.org, freebsd-arm@freebsd.org, freebsd-sparc64 Subject: Re: Patch for Cross-Reference Phandles References: <522CC7E0.9060508@freebsd.org> In-reply-to: <522CC7E0.9060508@freebsd.org> X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Sep 2013 15:07:22 -0000 On 09/08/13 13:54, Nathan Whitehorn wrote: > Open Firmware has three namespaces for handles: > 1. Instance handles, for open devices > 2. Package handles for the client interface > 3. Package handles for device tree cross references > > On Powermac hardware, we assume that (2) and (3) are identical and > call both phandles. On embedded FDT systems, you can't open devices > and so we abuse ihandle_t for (3). IBM pSeries hardware, however, has > all three things. With that in mind, I'd like to start separating > them. The patch at > http://people.freebsd.org/~nwhitehorn/xref_phandle.diff adds a new > function (OF_child_xref_phandle) that takes a phandle of type (3) and > turns into one of type (2) by searching for entries named "phandle", > "ibm,phandle", or "linux,phandle" in the tree. This should work for > FDT as well, but is not connected in the patch to anything actually > FDT related. > > Comments would be appreciated. I'd like to get to get this as in as > soon as possible (given the HEAD freeze) otherwise. > -Nathan Since I haven't heard anything, it shouldn't affect any existing platforms or code, and it would be nice to have this interface available in the 10.x series, I plan to ask re@ for commit approval tomorrow. Please let me know if there are any objections. -Nathan