Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Sep 2008 13:21:52 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        Marco Trillo <marcotrillo@gmail.com>
Cc:        freebsd-ppc@freebsd.org
Subject:   Re: Call for testers: Apple ATA DMA
Message-ID:  <48DBD6C0.5070005@freebsd.org>
In-Reply-To: <b9c23c9f0809240632h77f091dawe54887d0a7f51c1d@mail.gmail.com>
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> <b9c23c9f0809240338g61e93beoba429ea319a9d56@mail.gmail.com> <48DA4037.9000508@freebsd.org> <b9c23c9f0809240632h77f091dawe54887d0a7f51c1d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Marco Trillo wrote:
> Hi,
> 
> On Wed, Sep 24, 2008 at 3:27 PM, Nathan Whitehorn
> <nwhitehorn@freebsd.org> 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: <Intrepid Kauai ATA Controller> mem 0xf5004000-0xf5007fff irq
> 39,1 at device 13.0 on pci2
> ata1: [ITHREAD]
> acd0: DVDR <HL-DT-ST RW/DVD GCC-4481B/2.05> at ata0-master BIOSPIO
> ad0: 38166MB <Seagate ST340015A 3.01> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48DBD6C0.5070005>