login
Header Space

 
 

Re: [PATCH] Microblaze: implement dma-coherent API and refactor cache flush code.

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Stephen Neuendorffer <stephen.neuendorffer@...>
Cc: <arnd@...>, <linux-arch@...>, John Linn <linnj@...>, <matthew@...>, <will.newton@...>, <drepper@...>, <microblaze-uclinux@...>, <grant.likely@...>, Michal Simek <monstr@...>, <linux-kernel@...>
Date: Monday, May 5, 2008 - 6:57 pm

Hi Steve,

On Mon, 2008-05-05 at 15:37 -0700, Stephen Neuendorffer wrote:


I agree - this renaming is a long time coming.

[snip]

Does the DMA API insist upon the dma_cache_sync call to guarantee
sensible results?  If so, your implementation looks fine.  If not, then
the results will clearly be bogus as there's nothing magical about the
memory being allocated in dma_alloc.

To that end, can it just call kmalloc(), and similarly kfree() for
dma_free?

I'd still like to see the uncached shadow stuff make a return one day,
it is an effective way of solving the problem, we'll just need to find a
cleaner way to implement it.  A linear walk through the cache to
invalidate is so slow, it destroys any benefit gained from DMA in the
first place.

Cheers,

John


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Microblaze: implement dma-coherent API and refactor ..., Stephen Neuendorffer, (Mon May 5, 6:37 pm)
Re: [PATCH] Microblaze: implement dma-coherent API and refac..., John Williams, (Mon May 5, 6:57 pm)
RE: [PATCH] Microblaze: implement dma-coherent API and refac..., Stephen Neuendorffer, (Mon May 5, 7:12 pm)
RE: [PATCH] Microblaze: implement dma-coherent API andrefact..., Stephen Neuendorffer, (Mon May 5, 8:31 pm)
RE: [PATCH] Microblaze: implement dma-coherent API andrefact..., Geert Uytterhoeven, (Tue May 6, 3:23 am)
speck-geostationary