Skip to contentSkip to conversation

ARM: Only clean the D-cache to the PoU in v7_flush_kern_dcache_area()

PATCH New Catalin Marinas 1 participant 1 message Jul 11, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Only clean the D-cache to the PoU in v7_flush_kern_dcache_area()

With PIPT caches (like ARMv7), there is no need to clean&invalidate the D-cache via the __cpuc_flush_dcache_area() function as there are no aliases. The D-cache only needs to be cleaned for the coherency with the I-cache.

---
 arch/arm/mm/cache-v7.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mm/cache-v7.S +1 -1
index d32f02b..b4faccd 100644
@@ -224,7 +224,7 @@ ENTRY(v7_flush_kern_dcache_area)
 	sub	r3, r2, #1
 	bic	r0, r0, r3
 1:
-	mcr	p15, 0, r0, c7, c14, 1		@ clean & invalidate D line / unified line
+	mcr	p15, 0, r0, c7, c11, 1		@ clean D line to the point of unification
 	add	r0, r0, r2
 	cmp	r0, r1
 	blo	1b
Signature · 1 line
Catalin