From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Fri, 22 Jan 2010 16:20:08 +0100 Subject: [U-Boot] Performance problems with gunzip In-Reply-To: <000401ca9b73$3e5ff1e0$bb1fd5a0$@de> (A. Geisreiter's message of "Fri, 22 Jan 2010 15:57:37 +0100") References: <000301ca9b6b$ad2c7ba0$078572e0$@de> <000401ca9b73$3e5ff1e0$bb1fd5a0$@de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Andreas, > thanks for the fast response. How do I enable data caches? I fear this is not as easy as flipping a bit in a register. Depending on the platform caches tend to be tied to the MMU, so enabling the caches require setting up correct data structures for the MMU to work. That's the non-trivial work. Apart from that, there is CONFIG_CMD_CACHE which builds common/cmd_cache.c. I see that at least two PXA250 platforms enable this, so maybe simply try that? Moreover, a quick qoogle showed that the (non-mainline) Gumstix verdex (PXA270) U-Boot port has a dcache command: http://docwiki.gumstix.org/index.php/U-Boot Maybe you can reap the code from their repository. If you do, please post it here ;) Cheers Detlev -- There are three kinds of people in the world; those who can count and those who can't. -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de