From: kmpark@infradead.org (Kyungmin Park)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: l2x0: Check the correct address range
Date: Fri, 19 Nov 2010 10:40:29 +0900 [thread overview]
Message-ID: <20101119014029.GA26429@july> (raw)
From: Boojin Kim <boojin.kim@samsung.com>
When flush or clean the 1MiB, it doesn't flush or clean all since it doesn't check the correct address. So Check the correct address range.
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 170c9bb..50599d9 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -195,7 +195,7 @@ static void l2x0_clean_range(unsigned long start, unsigned long end)
void __iomem *base = l2x0_base;
unsigned long flags;
- if ((end - start) >= l2x0_size) {
+ if ((end - start + 1) >= l2x0_size) {
l2x0_clean_all();
return;
}
@@ -225,7 +225,7 @@ static void l2x0_flush_range(unsigned long start, unsigned long end)
void __iomem *base = l2x0_base;
unsigned long flags;
- if ((end - start) >= l2x0_size) {
+ if ((end - start + 1) >= l2x0_size) {
l2x0_flush_all();
return;
}
WARNING: multiple messages have this Message-ID (diff)
From: Kyungmin Park <kmpark@infradead.org>
To: linux-arm-kernel@lists.infradead.org,
Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Russell King <linux@arm.linux.org.uk>,
Catalin Marinas <catalin.marinas@arm.com>,
linux-kernel@vger.kernel.org,
Linus Walleij <linus.walleij@stericsson.com>,
Tony Lindgren <tony@atomide.com>
Subject: [PATCH] ARM: l2x0: Check the correct address range
Date: Fri, 19 Nov 2010 10:40:29 +0900 [thread overview]
Message-ID: <20101119014029.GA26429@july> (raw)
From: Boojin Kim <boojin.kim@samsung.com>
When flush or clean the 1MiB, it doesn't flush or clean all since it doesn't check the correct address. So Check the correct address range.
Signed-off-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 170c9bb..50599d9 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -195,7 +195,7 @@ static void l2x0_clean_range(unsigned long start, unsigned long end)
void __iomem *base = l2x0_base;
unsigned long flags;
- if ((end - start) >= l2x0_size) {
+ if ((end - start + 1) >= l2x0_size) {
l2x0_clean_all();
return;
}
@@ -225,7 +225,7 @@ static void l2x0_flush_range(unsigned long start, unsigned long end)
void __iomem *base = l2x0_base;
unsigned long flags;
- if ((end - start) >= l2x0_size) {
+ if ((end - start + 1) >= l2x0_size) {
l2x0_flush_all();
return;
}
next reply other threads:[~2010-11-19 1:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 1:40 Kyungmin Park [this message]
2010-11-19 1:40 ` [PATCH] ARM: l2x0: Check the correct address range Kyungmin Park
2010-11-19 11:08 ` Catalin Marinas
2010-11-19 11:08 ` Catalin Marinas
2010-11-19 21:49 ` Linus WALLEIJ
2010-11-19 21:49 ` Linus WALLEIJ
2010-11-19 11:30 ` Kanigeri, Hari
2010-11-19 11:30 ` Kanigeri, Hari
2010-11-19 19:56 ` Russell King - ARM Linux
2010-11-19 19:56 ` Russell King - ARM Linux
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=20101119014029.GA26429@july \
--to=kmpark@infradead.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.