From: Alexey.Brodkin@synopsys.com (Alexey Brodkin)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH] arc: Keep D$ enabled to work-around incomplete SLC flushing
Date: Fri, 17 Mar 2017 16:00:37 +0300 [thread overview]
Message-ID: <1489755637-19464-1-git-send-email-abrodkin@synopsys.com> (raw)
As reported in STAR 9001165532 if D$ is disabled SLC is not flushed
correctly which leads to loses of some data that were set before the flush.
That causes unexpected behavior after the flush.
For now just keep D$ enabled, only flush-invalidate it before IOC setup.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
---
arch/arc/mm/cache.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c
index d408fa21a07c..e0e83543e777 100644
--- a/arch/arc/mm/cache.c
+++ b/arch/arc/mm/cache.c
@@ -997,8 +997,8 @@ noinline void __init arc_ioc_setup(void)
{
unsigned int ap_sz;
- /* Flush + invalidate + disable L1 dcache */
- __dc_disable();
+ /* Flush + invalidate L1 dcache */
+ __dc_entire_op(OP_FLUSH_N_INV);
/* Flush + invalidate SLC */
if (read_aux_reg(ARC_REG_SLC_BCR))
--
2.7.4
reply other threads:[~2017-03-17 13:00 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=1489755637-19464-1-git-send-email-abrodkin@synopsys.com \
--to=alexey.brodkin@synopsys.com \
--cc=linux-snps-arc@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).