From: Wolfgang Denk Date: Fri, 03 Dec 2010 17:55:34 +0100 Subject: [U-Boot] arm: Activating dcache breaks 'usb start' and 'tftpboot' on jadecpu In-Reply-To: <4CF91E29.7000906@arcor.de> References: <4CF8FE3E.9010105@arcor.de> <20101203144745.21D23CD138A@gemini.denx.de> <4CF90819.7040904@arcor.de> <20101203153310.8BA14CD138A@gemini.denx.de> <4CF91E29.7000906@arcor.de> Message-ID: <20101203165534.A1B01CFB978@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 =?ISO-8859-1?Q?Matthias_Wei=DFer?=, In message <4CF91E29.7000906@arcor.de> you wrote: > > > You said you had enabled the data cache, so why do you think these > > accesses are not cached? > > Please see arch/arm/lib/cache-cp15.c > The code there creates 4096 page table entries (1MB each) for the whole > 4GB address space and initializes each entry in a way that it is not > cacheable (mmu_setup():71). It then changes the page table entries which > are pointing to a RAM area to make these, and only these, cacheable > (dram_bank_mmu_setup():57). You did not mention this before. You just said: "I enabled dcache" which for e sounds as if you did this globally. Well, I'm not an export for AT91 in any way... 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 The human mind treats a new idea the way the body treats a strange protein - it rejects it. - P. Medawar