]> git.ipfire.org Git - people/ms/u-boot.git/commit - arch/arc/lib/cache.c
arc/cache: really do invalidate_dcache_all() even if IOC exists
authorAlexey Brodkin <abrodkin@synopsys.com>
Wed, 8 Jun 2016 04:57:19 +0000 (07:57 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Mon, 13 Jun 2016 12:38:05 +0000 (14:38 +0200)
commitbd91508b50ade5c73b3749bf4e5ede31d2da7ef8
tree5b69283fc76a698dac95f684d79520df2d7dedf2
parent6b3943f1b04be60f147ee540fbd72c4c7ea89f80
arc/cache: really do invalidate_dcache_all() even if IOC exists

invalidate_dcache_all() could be used in different use-cases
and what is especially important most of those cases won't be
related to DMAed data to or from peripherals, i.e. we'll be doing
invalidation of data used purely by CPU cores.

Given that IOC engine only snoops data that goes through DMA
we need to care ourselves about data used only by CPU cores
and so remove dependency on IOC from invalidate_dcache_all()
and always do real invalidation.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/lib/cache.c