From: Tom Rini Date: Fri, 25 Oct 2019 20:05:58 -0400 Subject: [U-Boot] [PATCH 3/3] arm: K3: Clean and invalidate Linux Image before jumping to Linux In-Reply-To: <20191007082217.15062-4-lokeshvutla@ti.com> References: <20191007082217.15062-1-lokeshvutla@ti.com> <20191007082217.15062-4-lokeshvutla@ti.com> Message-ID: <20191026000558.GN11173@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Oct 07, 2019 at 01:52:17PM +0530, Lokesh Vutla wrote: > U-Boot cleans and invalidate L1 and L2 caches before jumping to Linux > by set/way in cleanup_before_linux(). Additionally there is a custom > hook provided to clean and invalidate L3 cache. > > Unfortunately on K3 devices(having a coherent architecture), there is no > easy way to quickly clean all the cache lines for L3. The entire address > range needs to be cleaned and invalidated by Virtual Address. This can > be implemented using the L3 custom hook but it take lot of time to clean > the entire address range. In the interest of boot time this might not be > a viable solution. > > The best hit is to make sure the loaded Linux image is flushed so that > the entire image is written to DDR from L3. When Linux starts running with > caches disabled the full image is available from DDR. > > Reported-by: Andrew F. Davis > Reported-by: Faiz Abbas > Signed-off-by: Lokesh Vutla Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: