From owner-freebsd-ppc@FreeBSD.ORG Thu Sep 25 18:17:33 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 B1F58106568D for ; Thu, 25 Sep 2008 18:17:33 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 7EC6D8FC1E for ; Thu, 25 Sep 2008 18:17:33 +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.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K7R00F02K58WD00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 25 Sep 2008 13:17:32 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K7R00F1CK57V300@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 25 Sep 2008 13:17:32 -0500 (CDT) Date: Thu, 25 Sep 2008 13:21:52 -0500 From: Nathan Whitehorn In-reply-to: To: Marco Trillo Message-id: <48DBD6C0.5070005@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.25.180131, SenderIP=76.204.100.161 References: <48D389EE.9000207@FreeBSD.org> <48D3AD50.8070505@freebsd.org> <48D69679.1080701@freebsd.org> <48D7F437.1040603@FreeBSD.org> <645CD2B8-11A0-42E8-B5F9-C04DCF21F763@mac.com> <48D84C12.7070207@freebsd.org> <0DD89065-9CF3-45E4-89A0-70D6BBB9621D@mac.com> <48D92D44.6080807@freebsd.org> <48DA4037.9000508@freebsd.org> 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: Thu, 25 Sep 2008 18:17:33 -0000 Marco Trillo wrote: > Hi, > > On Wed, Sep 24, 2008 at 3:27 PM, Nathan Whitehorn > wrote: >> Ugh. I really don't know, and am flying blind without hardware. If you >> disable ATAPI DMA or the macio controller, does ad0 at least work? >> -Nathan >> > > I reverted the ata_macio.c patch and now Kauai uses DMA just fine! ad0 > now works in UDMA100 mode without any errors :-) > > ata0 mem 0x20000-0x20fff,0x8800-0x88ff irq 24,12 on macio0 > ata0: [ITHREAD] > ata1: mem 0xf5004000-0xf5007fff irq > 39,1 at device 13.0 on pci2 > ata1: [ITHREAD] > acd0: DVDR at ata0-master BIOSPIO > ad0: 38166MB at ata1-master UDMA100 > > And indeed the ad0 disk performance is much better. Thank you! > > So it looks like an ata_macio specific problem. Well I'm glad to hear that something works :) I just added in support for setting the timing correctly when the bus has multiple devices running at different speeds and also for programming reasonable PIO defaults for ata_macio. I hope the combination solves the problems seen by both you and Marcel, so more testing would be appreciated. As usual, the patch is here: http://people.freebsd.org/~nwhitehorn/apple-ata-dma.patch -Nathan