login
Header Space

 
 

RE: [PATCH] Microblaze: implement dma-coherent API and refactorcache 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 - 8:14 pm

> > Does the DMA API insist upon the dma_cache_sync call to guarantee

Sure - what I meant is can dma_alloc just call kmalloc to do it's work?
 

I agree.  Michal did some work on that when he did the initial DTS stuff
with us over the (southern) summer this year.  We looked at ways to
validate the HW design and Kconfig params to make sure that
uncached_shadow worked as expected.

If forget now the outcome, there's plenty of ways to get it wrong.

It would be easy at runtime to do some validation tests - write to a
pointer, cache flush (noop..), read back from the twiddled pointer, make
sure it matches.  Repeat a few times until you're happy it wasn't a
fluke, that sort of thing.

John

-- 
John Williams, PhD, B.Eng, B.IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663


--
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..., Stephen Neuendorffer, (Mon May 5, 7:12 pm)
RE: [PATCH] Microblaze: implement dma-coherent API and refac..., John Williams, (Mon May 5, 8:14 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