]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit85d167b2056606fe1635cb4b649dee66d60cb90c
treee16ecf5ff18566f37ff009843a8b0894f0bd5627
parent9647bd43b9ce6a245b7da5706300fb000e2eea1d
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