OSDN Git Service

MIPS: c-r4k: Invalidate BMIPS5000 ZSCM prefetch lines
authorKamal Dasu <kdasu.kdev@gmail.com>
Fri, 7 Feb 2020 22:33:07 +0000 (17:33 -0500)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 16 Mar 2020 15:09:56 +0000 (16:09 +0100)
commitbe2807643302bb4161b6c009f569e63f0f79672c
treee16ecf5ff18566f37ff009843a8b0894f0bd5627
parent49e6e07e3c806c311e07da14a6d6e406ac9e719c
MIPS: c-r4k: Invalidate BMIPS5000 ZSCM prefetch lines

Zephyr secondary cache is 256KB, 128B lines. 32B sectors. A secondary cache
line can contain two instruction cache lines (64B), or four data cache
lines (32B). Hardware prefetch Cache detects stream access, and prefetches
ahead of processor access. Add support to invalidate BMIPS5000 cpu zephyr
secondary cache module (ZSCM) on DMA from device so that data returned is
coherent during DMA read operations.

Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/mm/c-r4k.c