[U-Boot] [PATCHv4] Optimized nand_read_buf for kirkwood

Phil Sutter phil.sutter at viprinet.com
Mon Aug 26 18:06:13 CEST 2013


On Mon, Aug 26, 2013 at 06:00:39PM +0200, Phil Sutter wrote:
> On Mon, Aug 26, 2013 at 10:43:38AM -0500, Scott Wood wrote:
> > On Mon, 2013-08-26 at 14:10 +0200, Phil Sutter wrote:
> > > From: Nico Erfurth <ne at erfurth.eu>
> > > 
> > > The basic idea is taken from the linux-kernel, but further optimized.
> > > 
> > > First align the buffer to 8 bytes, then use ldrd/strd to read and store
> > > in 8 byte quantities, then do the final bytes.
> > > 
> > > Tested using: 'date ; nand read.raw 0xE00000 0x0 0x10000 ; date'.
> > > Without this patch, NAND read of 132MB took 49s (~2.69MB/s). With this
> > > patch in place, reading the same amount of data was done in 27s
> > > (~4.89MB/s). So read performance is increased by ~80%!
> > > 
> > > Signed-off-by: Nico Erfurth <ne at erfurth.eu>
> > > Tested-by: Phil Sutter <phil.sutter at viprinet.com>
> > > Cc: Prafulla Wadaskar <prafulla at marvell.com>
> > > ---
> > > Changed since V3:
> > > - fixed author
> > 
> > It needs your Signed-off-by: as well -- can I add that when applying?
> 
> Yes, that's fine by me. So if I submit others' patches, I need to sign
> them off as well?

Ah, nevermind. Reading 1.12 of Documentation/SubmittingPatches helps.

Best wishes,

Phil Sutter
Software Engineer

-- 
Viprinet Europe GmbH
Mainzer Str. 43
55411 Bingen am Rhein
Germany

Phone/Zentrale:               +49 6721 49030-0
Direct line/Durchwahl:        +49 6721 49030-134
Fax:                          +49 6721 49030-109

phil.sutter at viprinet.com
http://www.viprinet.com

Registered office/Sitz der Gesellschaft: Bingen am Rhein, Germany
Commercial register/Handelsregister: Amtsgericht Mainz HRB44090
CEO/Geschäftsführer: Simon Kissel


More information about the U-Boot mailing list