From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Sat, 3 Dec 2016 18:48:19 -0500 Subject: [U-Boot] [U-Boot, RESEND, 01/24] sh4: cache: correct dcache flush to invalidate with write-back In-Reply-To: <20161127221536.9577-2-vz@mleia.com> References: <20161127221536.9577-2-vz@mleia.com> Message-ID: <20161203234819.GD4248@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, Nov 28, 2016 at 12:15:13AM +0200, Vladimir Zapolskiy wrote: > In common usecases flush_cache() assumes both cache invalidation and > write-back to memory, thus in flush_dcache_range() implementation > change SH4 cache write-back only instruction 'ocbwb' with cache purge > instruction 'ocbp', according to the User's Manual there should be no > performance penalty for that. > > Note that under circumstances only cache invalidation is expected from > flush_cache() call, in these occasional cases the current version of > flush_cache() works, which is a wrapper over invalidate_dcache_range() > at the moment, this will be fixed in the following change. > > Signed-off-by: Vladimir Zapolskiy Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: