From owner-freebsd-ppc@FreeBSD.ORG Tue Mar 25 01:12:44 2008 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 4C52D106566B for ; Tue, 25 Mar 2008 01:12:44 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 0D3C68FC17 for ; Tue, 25 Mar 2008 01:12:43 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JY900200I17W900@smtpauth2.wiscmail.wisc.edu>; Mon, 24 Mar 2008 20:12:43 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-99-154-4-131.dsl.mdsnwi.sbcglobal.net [99.154.4.131]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JY900FCGI16ML50@smtpauth2.wiscmail.wisc.edu>; Mon, 24 Mar 2008 20:12:42 -0500 (CDT) Date: Mon, 24 Mar 2008 20:16:43 -0500 From: Nathan Whitehorn In-reply-to: <20080325023040.ab0daa19.stas@FreeBSD.org> To: Stanislav Sedov Message-id: <47E8527B.2050002@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=99.154.4.131 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.3.24.175735, SenderIP=99.154.4.131 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver 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: Tue, 25 Mar 2008 01:12:44 -0000 >> Source: http://home.physics.wisc.edu/~nwhitehorn/bm.tgz >> >> The source is set up to build a kernel module. I haven't tried any >> integration with the build system yet. > > It panics on my blue and white iMac with message: > en irq out of range > > It's pretty strange, since the irq displayed is 42, which is > smaller than the limit. I realized I left out a patch to macio.c that is required to use devices with multiple interrupts. It can be found here: http://home.physics.wisc.edu/~nwhitehorn/macio-multi-interrupt.patch > BTW, I think it makes sense to move dbdma code out of driver > and make it a generic subsystem, since it can be used by other > drivers as well. That's the plan. Right now, it doesn't depend on the bm code in any way -- it's just in there for distribution purposes. I'm going to have a go at awacs support (the built-in audio) in the near future, which also uses DBDMA. DMA for the built-in ATA controllers on G4 systems also requires it, as may some other things. I don't have any G4 machines, though. -Nathan