From owner-freebsd-sparc64@FreeBSD.ORG Mon Nov 1 15:35: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 DB500106566C for ; Mon, 1 Nov 2010 15:35:04 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 625B58FC0A for ; Mon, 1 Nov 2010 15:35:04 +0000 (UTC) Received: by wyb42 with SMTP id 42so5626118wyb.13 for ; Mon, 01 Nov 2010 08:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=UXnnATeAHq6duI3eaCIpxbyM/mH6RgAT7ia1CBzRpWo=; b=GgBGPAscETho1E75MR3dkMAawviiUz+ud4Tr3C2VMBAQ6CxyUc6KZsHJ/QMO071RQA Mplb/B2sI2A6X1hlnklkaY6nzk4l4u5m0fikkGgYYaLUg5oHQYGiby2jDvDTH3JqJTmU rcIe/R3dIi0L6YLu0Eqh1VY/kxW6MFBkhe9KE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=hI6nNLmgjWDUwLb7whPShDAzEvL1bjMk9g3fZDyEiERXk41Mj/zmx3bANGobBgJkvj 4yLwpx+3kXXdhjN8bqLEvuK9xvg0lH+cTjj4yp1FnASkFBCYirDBtsXi7vkxfTw2Wq9/ jaCtOsP4ffWbKplCgr1qwAVeG25ZD/Ef4avKY= MIME-Version: 1.0 Received: by 10.216.159.195 with SMTP id s45mr12631896wek.43.1288623889128; Mon, 01 Nov 2010 08:04:49 -0700 (PDT) Sender: chmeeedalf@gmail.com Received: by 10.216.49.201 with HTTP; Mon, 1 Nov 2010 08:04:49 -0700 (PDT) In-Reply-To: <4CCDD51F.2040003@freebsd.org> References: <4CCDD51F.2040003@freebsd.org> Date: Mon, 1 Nov 2010 11:04:49 -0400 X-Google-Sender-Auth: GxOsXTEGlQEkMiJzBem3u2od3aQ Message-ID: From: Justin Hibbits To: Nathan Whitehorn Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-sparc64@freebsd.org, freebsd-ppc@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:35:04 -0000 On Sun, Oct 31, 2010 at 4:44 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. > -Nathan > Building world now, and will test when I get home this evening. A note to others: powerpc/powerpc/nexus.c is a resurrected file, so I needed to copy it from powerpc/aim/nexus.c before the patch would apply. - Justin