From: Wolfgang Denk Date: Fri, 21 Jun 2013 07:33:30 +0200 Subject: [U-Boot] =?iso-8859-1?q?AM335x=3A_enabling_datacache_in_SPL_slows?= =?iso-8859-1?q?_down_system=3F?= In-Reply-To: <20130620080523.aba38cb4@mail.altenpts.nl> References: <20130620080523.aba38cb4@mail.altenpts.nl> Message-ID: <20130621053330.B7CC8380BF2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Bas van den Berg", In message <20130620080523.aba38cb4@mail.altenpts.nl> you wrote: > > I'm trying to optimize the boottime for an AM335x based board. Currently > we're loading the kernel from SPL directly (falcon mode). Loading the kernel > from flash to ram takes roughly 3 seconds. > When doing this from U-boot itself with 'nand read .., it only takes 1.8 seconds. > It seems that U-boot has data_cache enabled, while SPL did not. > > When enabling the data cache with dcache_enable(), loading takes 3.5 seconds, > so even slower! The enabling itself does not take a significant amount of time. We observed the very same issue with the verry first prototype implementation of Falcon mode on an AM3517 based board. At this time we did not have time nor resources to figure out what exactly was causing this issue, but it's interesting to see that 1) it still persists and 2) it also happens on AM335x > Anyone have any idea why enabling the data cache slows SPL down? > Or does U-boot do anything else that I'm missing? @Tom: do you have any additional input what we should check? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de An Elephant is a mouse with an Operating System. - Knuth