From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 31 20:44:17 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C741106564A for ; Sun, 31 Oct 2010 20:44:17 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from mail.icecube.wisc.edu (trout.icecube.wisc.edu [128.104.255.119]) by mx1.freebsd.org (Postfix) with ESMTP id E4D7C8FC12 for ; Sun, 31 Oct 2010 20:44:16 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.icecube.wisc.edu (Postfix) with ESMTP id F39DB582C3; Sun, 31 Oct 2010 15:44:15 -0500 (CDT) X-Virus-Scanned: amavisd-new at icecube.wisc.edu Received: from mail.icecube.wisc.edu ([127.0.0.1]) by localhost (trout.icecube.wisc.edu [127.0.0.1]) (amavisd-new, port 10030) with ESMTP id sjNjVsh+0+Rm; Sun, 31 Oct 2010 15:44:15 -0500 (CDT) Received: from comporellon.tachypleus.net (unknown [76.210.66.181]) by mail.icecube.wisc.edu (Postfix) with ESMTP id A9BA1582C2; Sun, 31 Oct 2010 15:44:15 -0500 (CDT) Message-ID: <4CCDD51F.2040003@freebsd.org> Date: Sun, 31 Oct 2010 15:44:15 -0500 From: Nathan Whitehorn User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.14) Gecko/20101021 Thunderbird/3.0.9 MIME-Version: 1.0 To: freebsd-ppc@freebsd.org, freebsd-sparc64@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Review request -- splitting OF enumeration from nexus X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2010 20:44:17 -0000 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. -Nathan