[coreboot] FILO: read time of LPC flash
Peter Stuge
peter at stuge.se
Thu Mar 13 12:51:14 CET 2008
Hi Nikolay,
On Thu, Mar 13, 2008 at 04:00:12PM +0500, Nikolay Petukhov wrote:
> Conclusion:
> For large amounts of speed reading memory flash limited to memcpy()
> function. The FILO also use memcpy() for reading memory flash.
>
> This patch add macro READ_OVER_MEMCPY in FILO Config and some code
> to blockdev.c. With this patch loading time of kernel and initrd
> (1.9MB) redused by 1.5sec.
Good find!
I did this optimization of memcpy() for coreboot v3, have a look at:
http://coreboot.org/viewvc/coreboot-v3/lib/mem.c?root=coreboot-v3&view=co&content-type=text%2Fplain
and maybe copy it into FILO?
It uses unsigned long for copying which was considered the best type
since it's the native register size and handles any leftovers.
//Peter
More information about the coreboot
mailing list