* [PATCH] ARCv2: SLC: Make sure busy bit is set properly for region ops
@ 2017-07-07 9:25 Alexey Brodkin
0 siblings, 0 replies; only message in thread
From: Alexey Brodkin @ 2017-07-07 9:25 UTC (permalink / raw)
To: linux-snps-arc; +Cc: linux-kernel, Alexey Brodkin, Vineet Gupta, stable
c70c473396cb "ARCv2: SLC: Make sure busy bit is set properly on SLC flushing"
fixes problem for entire SLC operation where the problem was initially
caught. But given a nature of the issue it is perfectly possible for
busy bit to be read incorrectly even when region operation was started.
So extending initial fix for regional operation as well.
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: stable@vger.kernel.org
---
arch/arc/mm/cache.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c
index bdb5227241cf..08427d572850 100644
--- a/arch/arc/mm/cache.c
+++ b/arch/arc/mm/cache.c
@@ -697,6 +697,8 @@ noinline void slc_op(phys_addr_t paddr, unsigned long sz, const int op)
write_aux_reg(ARC_REG_SLC_RGN_END, (paddr + sz + l2_line_sz - 1));
write_aux_reg(ARC_REG_SLC_RGN_START, paddr);
+ /* Make sure "busy" bit reports correct stataus, see STAR 9001165532 */
+ read_aux_reg(ARC_REG_SLC_CTRL);
while (read_aux_reg(ARC_REG_SLC_CTRL) & SLC_CTRL_BUSY);
spin_unlock_irqrestore(&lock, flags);
--
2.7.5
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-07 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 9:25 [PATCH] ARCv2: SLC: Make sure busy bit is set properly for region ops Alexey Brodkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®