[Top] [All Lists]

Re: semaphore woes in 2.6, 32bit

Subject: Re: semaphore woes in 2.6, 32bit
From: Atsushi Nemoto <>
Date: Mon, 10 May 2004 22:28:45 +0900 (JST)
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
>>>>> On Sun, 9 May 2004 18:48:35 +0200, Ralf Baechle <> 
>>>>> said:
>> Hmm, many drivers use kmalloc and pci_map_single for DMA buffer.
>> So ARCH_KMALLOC_MINALIGN should be L1_CACHE_BYTES for non-coherent
>> system?

ralf> No, those drivers are simply broken.  dma_get_cache_alignment()
ralf> gives the mimimum alignment and width for DMA mappings and that
ralf> value is larger than kmalloc alignment in almost all cases.

I see.  Thank you for pointing out it.  I must learn 2.6 DMA API
quickly ...

Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>