Thread (4 messages) flat view 4 messages, 2 authors, 2009-10-27

Re: Acceleration for map_copy_from on powerpc 512x

From: Fortini Matteo <hidden>
Date: 2009-10-27 10:02:59

The simple_map_init() works at a higher level, what I'm redefining is a 
function called by mtd->read()

The block size for e.g. a dd if=/dev/mtd0 of=/dev/null
with the default block size (I believe it's 512Bytes), fetches from 
/dev/mtd0 4096 Bytes at a time.
I'd prefer the kernel to be scheduling other tasks meanwhile, instead of 
busy-waiting on completion.

Regards

Kenneth Johansson ha scritto:
On Mon, 2009-10-19 at 09:52 +0200, Fortini Matteo wrote:

  
quoted
I didn't find a cleaner way than just #ifdef'ing the map_copy_from call 
and substitute with my call on relevant cases. I wonder if there is a 
cleaner way.
    
Remove the call to simple_map_init() and do it manually in your driver
with your own functions.

  
quoted
And yes, as soon as I've cleaned up the code a little bit, I will 
definitely post a patch about it.

Moreover: a huge benefit would come from exploiting DMA on these 
transfers, 
    
probably depends on the block size if it's a gain or not. What is the
size you normally see. 


  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help