From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 23 01:49:07 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 A11DF1065672 for ; Tue, 23 Sep 2008 01:49:07 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 71DEC8FC08 for ; Tue, 23 Sep 2008 01:49:07 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) 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-6.03 (built Mar 14 2008; 32bit)) id <0K7M00G00L1UI400@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@FreeBSD.org; Mon, 22 Sep 2008 20:49:06 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K7M004PDL1T7P50@smtpauth2.wiscmail.wisc.edu>; Mon, 22 Sep 2008 20:49:06 -0500 (CDT) Date: Mon, 22 Sep 2008 20:53:22 -0500 From: Nathan Whitehorn In-reply-to: <645CD2B8-11A0-42E8-B5F9-C04DCF21F763@mac.com> To: Marcel Moolenaar Message-id: <48D84C12.7070207@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-13, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.23.13122, SenderIP=76.204.100.161 References: "b9c23c9f0809100322n1659cb36oa05acf2f13f3c7e1@mail.gmail.com" <48D389EE.9000207@FreeBSD.org> <48D3AD50.8070505@freebsd.org> <48D69679.1080701@freebsd.org> <48D7F437.1040603@FreeBSD.org> <645CD2B8-11A0-42E8-B5F9-C04DCF21F763@mac.com> User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Cc: freebsd-ppc@FreeBSD.org Subject: Re: Call for testers: Apple ATA DMA 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, 23 Sep 2008 01:49:07 -0000 Marcel Moolenaar wrote: > > On Sep 22, 2008, at 12:38 PM, Maxim Sobolev wrote: > >> Nathan Whitehorn wrote: >>> Nathan Whitehorn wrote: >>>> Maxim Sobolev wrote: >>>>> Nathan, >>>>> >>>>> Do you have any news regarding the patch in question? I hope you >>>>> did not give up, the lack of ATA DMA support is IMHO probably the >>>>> biggest issue for the FreeBSD on PowerMacs now. The hardware is >>>>> very attractive for SOHO applications, so that having this feature >>>>> is important. >>>> Right now, modes up to WDMA2 work. The UDMA modes cause hangs for >>>> reasons not entirely clear. I'm investigating it, but am in the >>>> Netherlands at the moment and it will have to wait until I get back. >>> I now have UDMA modes working on my Shasta controller -- there was a >>> stupid bug where I forgot to set the device to accept transfers in >>> the selected mode. Please give this patch a test: I expect that UDMA >>> modes now work everywhere. >>> http://people.freebsd.org/~nwhitehorn/apple-ata-dma.patch >> >> Nathan, >> >> The patch works here (G4 Mac Mini, 1.25GHz), however, I see some weird >> things happening in the interrupt domain. > > Interesting. My G4 Mac Mini 1.5Ghz is hanging hard: > > : > ad0: 76319MB at ata1-master UDMA100 > acd0: DVDR at ata1-slave UDMA33 > *hang* > > Could be related... > If it is, removing the USE_DBDMA_IRQ stuff in ata_macio.c should solve it. This might solve Peter's problem too. -Nathan