From: andrew.smirnov@gmail.com (Andrey Smirnov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: cache-l2x0.c: Replace magic numbers
Date: Sat, 18 Jun 2016 17:31:02 -0700 [thread overview]
Message-ID: <1466296268-27099-2-git-send-email-andrew.smirnov@gmail.com> (raw)
In-Reply-To: <1466296268-27099-1-git-send-email-andrew.smirnov@gmail.com>
Replace magic numbers used for L310 Prefetch Control Register
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
---
arch/arm/mm/cache-l2x0.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 9f9d542..30e2012 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -716,8 +716,10 @@ static void __init l2c310_fixup(void __iomem *base, u32 cache_id,
revision < L310_CACHE_ID_RTL_R3P2) {
u32 val = l2x0_saved_regs.prefetch_ctrl;
/* I don't think bit23 is required here... but iMX6 does so */
- if (val & (BIT(30) | BIT(23))) {
- val &= ~(BIT(30) | BIT(23));
+ if (val & (L310_PREFETCH_CTRL_DBL_LINEFILL |
+ L310_PREFETCH_CTRL_DBL_LINEFILL_INCR)) {
+ val &= ~(L310_PREFETCH_CTRL_DBL_LINEFILL |
+ L310_PREFETCH_CTRL_DBL_LINEFILL_INCR);
l2x0_saved_regs.prefetch_ctrl = val;
errata[n++] = "752271";
}
--
2.5.5
next prev parent reply other threads:[~2016-06-19 0:31 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-19 0:31 [PATCH v3 0/5] i.MX L2-cache code cleanups and performance tweaks Andrey Smirnov
2016-06-19 0:31 ` Andrey Smirnov [this message]
2016-06-19 0:31 ` [PATCH v3 1/5] i.MX: system.c: Convert goto to if statement Andrey Smirnov
2016-06-19 0:31 ` [PATCH 2/2] ARM: cache-l2x0.c: Do not clear bit 23 in prefetch control register Andrey Smirnov
2016-06-19 0:31 ` [PATCH v3 2/5] i.MX: system.c: Remove redundant errata 752271 code Andrey Smirnov
2016-06-19 0:31 ` [PATCH v3 3/5] i.MX: system.c: Replace magic numbers Andrey Smirnov
2016-06-19 2:12 ` kbuild test robot
2016-06-19 0:31 ` [PATCH v3 4/5] i.MX: system.c: Tweak prefetch settings for performance Andrey Smirnov
2016-06-19 0:31 ` [PATCH v3 5/5] i.MX: Do not explicitly call l2x0_of_init() Andrey Smirnov
2016-06-19 1:01 ` [PATCH v3 0/5] i.MX L2-cache code cleanups and performance tweaks Andrey Smirnov
2016-06-19 14:50 ` Arnd Bergmann
2016-06-19 17:53 ` Andrey Smirnov
2016-06-20 23:07 ` Arnd Bergmann
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=1466296268-27099-2-git-send-email-andrew.smirnov@gmail.com \
--to=andrew.smirnov@gmail.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).