From owner-freebsd-sparc64@FreeBSD.ORG Mon Nov 1 15:20:04 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40FEE106564A; Mon, 1 Nov 2010 15:20:04 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 0A8278FC24; Mon, 1 Nov 2010 15:20:04 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id B46B846B85; Mon, 1 Nov 2010 11:20:03 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id CCA448A01D; Mon, 1 Nov 2010 11:20:02 -0400 (EDT) From: John Baldwin To: freebsd-ppc@freebsd.org Date: Mon, 1 Nov 2010 09:41:28 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <4CCDD51F.2040003@freebsd.org> In-Reply-To: <4CCDD51F.2040003@freebsd.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011010941.28522.john@baldwin.cx> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Mon, 01 Nov 2010 11:20:02 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.96.3 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.9 required=4.2 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bigwig.baldwin.cx Cc: freebsd-sparc64@freebsd.org Subject: Re: Review request -- splitting OF enumeration from nexus X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2010 15:20:04 -0000 On Sunday, October 31, 2010 4:44:15 pm Nathan Whitehorn wrote: > Nexus on OF platforms doesn't behave like nexus on x86, which generates > some periodic difficulty with cryptosoft or syscons attaching to all > devices and taking over the system when someone makes a wrong > assumption. I have done some work to split out OF enumeration into a > new, acpi(4)-like bus called ofwbus that does all of the OF enumeration > previously done by nexus(4). The patch can be found at > http://people.freebsd.org/~nwhitehorn/ofwbus.diff. > > Doing this also provides a number of other benefits: it shares code > between PowerPC and sparc64, unifies the AIM and Book-E nexus > implementations on PPC, and makes it easier to have non-Open Firmware > platforms on PPC (the original motivation for the work). I have tested > this code with no obvious problems on a variety of Apple PPC machines > and a Sun Ultra 5. More testing and comments would be much appreciated. > If no has any objections, I will commit these changes in 2 weeks. Sounds good to me. It's a bit of a shame that nexus is MI. I do wonder if cryptosoft even needs a device_t at all. -- John Baldwin