[U-Boot] [U-Boot, RESEND, 01/24] sh4: cache: correct dcache flush to invalidate with write-back

Tom Rini trini at konsulko.com
Sun Dec 4 00:48:19 CET 2016


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 <vz at mleia.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20161203/3b6c997a/attachment.sig>


More information about the U-Boot mailing list