From owner-freebsd-sparc64@FreeBSD.ORG Fri Nov 5 13:02:51 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 01B3F106564A; Fri, 5 Nov 2010 13:02:51 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id C2E4E8FC08; Fri, 5 Nov 2010 13:02:50 +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 6858946B09; Fri, 5 Nov 2010 09:02:50 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 7CA428A01D; Fri, 5 Nov 2010 09:02:49 -0400 (EDT) From: John Baldwin To: freebsd-sparc64@freebsd.org Date: Fri, 5 Nov 2010 09:02:25 -0400 User-Agent: KMail/1.13.5 (FreeBSD/7.3-CBSD-20100819; KDE/4.4.5; amd64; ; ) References: <4CCDD51F.2040003@freebsd.org> <20101105110728.GA65518@alchemy.franken.de> In-Reply-To: <20101105110728.GA65518@alchemy.franken.de> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011050902.25879.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 05 Nov 2010 09:02:49 -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-ppc@freebsd.org, Marius Strobl 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: Fri, 05 Nov 2010 13:02:51 -0000 On Friday, November 05, 2010 7:07:28 am Marius Strobl wrote: > On Sun, Oct 31, 2010 at 03:44:15PM -0500, 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 think this is an exaggeration of the problem; the only relevant > difference in this regard should be that on x86 there are no > (unattached) non-pseudo-devices on the nexus, while on powerpc and > sparc64 (apparently this also applies to the embedded architectures > though) there are real devices where a buggy pseudo-driver like > cryptosoft(4) has a chance to attach to. AFAICT cryptosoft(4) also > is the only MI driver suffering from this and can be easily fixed > by letting it add its pseudo-device with a specific unit number and > return BUS_PROBE_NOWILDCARD. The syscons(4) front-end you are > referring to is a powerpc MD part and the sparc64 counterpart never > had that problem. Actually, I think the fix for cryptosoft is that it doesn't belong in new_bus at all. It simply needs to supply a kobj that implements the crypto-related methods, but all the new-bus stuff isn't actually needed. -- John Baldwin