Thread (4 messages) flat view 4 messages, 2 authors, 2011-01-08
DORMANTno replies

[PATCH] [ARM] orion5x: accelerate NAND on the TS-78xx

From: alex@digriz.org.uk (Alexander Clouter)
Date: 2011-01-08 12:30:34

Alexander Clouter [off-list ref] wrote:
quoted
On Tue, Jan 04, 2011 at 11:51:59PM +0000, Alexander Clouter wrote:
quoted
The NAND supports 32bit reads and writes so lets stop shunting 8bit
chunks across the bus.

Doing a dumb 'dd' benchmark, this increases performance roughly like so:
 * read: 1.3MB/s to 3.4MB/s
 * write: 614kB/s to 882kB/s
Try something like the below.  It's slightly more typing, but the
underlying string IO functions should improve your transfer speed.
Note that they won't do endian conversions.
I get roughly the same speeds with your approach...I am happy to swing 
either your way or my original implementation; well actually it was 
stolen from Nico's orion_nand implementation :)

What should I submit?  These functions will at somestage get DMA support 
added.
I decided I prefer your version and it 'hides' the while loops and is 
easier to read.  

Cheers

-- 
Alexander Clouter
.sigmonster says: What!?  Me worry?
                  		-- Alfred E. Newman
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help