lkml.org 
[lkml]   [2011]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH] MTD: atmel_nand: optimize read/write buffer functions
    On Wed, Jun 29, 2011 at 03:09:59PM +0200, Nicolas Ferre wrote:
    > Le 28/06/2011 16:59, Russell King - ARM Linux :
    > > I think you need to read Documentation/bus-virt-phys-mapping.txt,
    > > particularly the part after "NOTE NOTE NOTE".
    > >
    > > Dereferencing ioremap'd memory is not permitted. That includes passing
    > > it to memcpy. Even with a cast.
    >
    > So that means that I should use memcpy_fromio() even if the code if far
    > less optimized.
    >
    > Shouldn't I re-implement some kind of IO copying function to deal with
    > this IO memory so that I could take advantage of 8 words bursts?

    You could improve the IO memcpy/set etc implementations, which are
    currently mostly unloved - I think that's a catch-22 which really needs
    solving. They're not efficient because no one has taken the time to use
    them, and everyone's avoiding them because they're not very efficient.
    So, as no one's using them no one's motivated to improve them.


    \
     
     \ /
      Last update: 2011-06-29 15:41    [W:0.021 / U:60.044 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site