[U-Boot] AM335x: enabling datacache in SPL slows down system?

Jeroen Hofstee jeroen at myspectrum.nl
Mon Jun 24 20:17:38 CEST 2013


Hello Bas,

On 06/24/2013 10:01 AM, Bas van den Berg wrote:
> After debugging a bit more, I found that in our code, we didn't set the RAM size
> correctly (so no real RAM section was setup for caching). Fixing this fixed our
> time to 2.4 seconds (U-boot still took 1.8 sec).
>
> Adding your SRAM patch (modified, since AM335x has more SRAM),
> The load time dropped from 2.4 -> 1.9 seconds. So adding this small area saved
> half a second!
> I write off the remaing difference (1.8 vs 1.9 seconds) to code differences between
> our SPL and U-boot nand functions.
Thanks for reporting and checking that adding the SRAM region is
needed as well (I suppose you already verified that -O2 cannot get
rid of the last difference).

Regards,
Jeroen

ps: the consensus on this mailinglist is not to top post..


More information about the U-Boot mailing list