From: catalin.marinas@arm.com (Catalin Marinas)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/1] ARM: Only clean the D-cache to the PoU in v7_flush_kern_dcache_area()
Date: Mon, 11 Jul 2011 17:38:57 +0100 [thread overview]
Message-ID: <mailman.18.1310402988.20020.linux-arm-kernel@lists.infradead.org> (raw)
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.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
---
arch/arm/mm/cache-v7.S | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mm/cache-v7.S b/arch/arm/mm/cache-v7.S
index d32f02b..b4faccd 100644
--- a/arch/arm/mm/cache-v7.S
+++ b/arch/arm/mm/cache-v7.S
@@ -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
--
Catalin
reply other threads:[~2011-07-11 16:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mailman.18.1310402988.20020.linux-arm-kernel@lists.infradead.org \
--to=catalin.marinas@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).