linux-mips
[Top] [All Lists]

Re: semaphore woes in 2.6, 32bit

To: ralf@linux-mips.org
Subject: Re: semaphore woes in 2.6, 32bit
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Mon, 10 May 2004 22:28:45 +0900 (JST)
Cc: geert@linux-m68k.org, jsun@mvista.com, linux-mips@linux-mips.org
In-reply-to: <20040509164835.GA28011@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20040509125750.GA19225@linux-mips.org> <20040509.225637.92590265.anemo@mba.ocn.ne.jp> <20040509164835.GA28011@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
>>>>> On Sun, 9 May 2004 18:48:35 +0200, Ralf Baechle <ralf@linux-mips.org> 
>>>>> 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>