From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Mon, 24 Jun 2013 20:17:38 +0200 Subject: [U-Boot] AM335x: enabling datacache in SPL slows down system? In-Reply-To: <20130624080148.f723f859@mail.altenpts.nl> References: <20130624080148.f723f859@mail.altenpts.nl> Message-ID: <51C88D42.4060801@myspectrum.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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..