From: Scott Wood Date: Mon, 26 Aug 2013 10:43:38 -0500 Subject: [U-Boot] [PATCHv4] Optimized nand_read_buf for kirkwood In-Reply-To: <1377519056-25364-1-git-send-email-phil.sutter@viprinet.com> References: <1377519056-25364-1-git-send-email-phil.sutter@viprinet.com> Message-ID: <1377531818.3033.1.camel@snotra.buserror.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, 2013-08-26 at 14:10 +0200, Phil Sutter wrote: > From: Nico Erfurth > > 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 > Tested-by: Phil Sutter > Cc: Prafulla Wadaskar > --- > Changed since V3: > - fixed author It needs your Signed-off-by: as well -- can I add that when applying? -Scott