Call for testers: Apple ATA DMA

Nathan Whitehorn nwhitehorn at freebsd.org
Tue Sep 23 17:54:21 UTC 2008


Marcel Moolenaar wrote:
>
> On Sep 22, 2008, at 6:53 PM, Nathan Whitehorn wrote:
>
>> 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 <Seagate ST9808211A 3.07> at ata1-master UDMA100
>>> acd0: DVDR <MATSHITACD-RW CW-8124/DACD> 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.
>
> It improves things, but it's still not good:
[Smacking forehead]

The Kauai/MacIO controller cannot support multiple modes of the same 
class (DMA/PIO) simultaneously on the same bus for different devices. 
You have to reprogram the timing register whenever you select a new 
device...

Ways to check if this is the problem:
1) Limit devices to UDMA33.
2) Disable DMA on acd0.

Our ATA stack doesn't seem to support a hook for doing things on a 
device select, so I'm not sure how to fix this.
-Nathan


More information about the freebsd-ppc mailing list