* [PATCH] arcv2: Make sure busy bit is set properly on SLC flushing
[not found] <1490796911-4848-1-git-send-email-abrodkin@synopsys.com>
@ 2017-03-29 23:41 ` Vineet Gupta
2017-03-30 14:26 ` Alexey Brodkin
0 siblings, 1 reply; 2+ messages in thread
From: Vineet Gupta @ 2017-03-29 23:41 UTC (permalink / raw)
To: linux-snps-arc
On 03/29/2017 07:15 AM, Alexey Brodkin wrote:
> As reported in STAR 9001165532 if data cache gets disabled right before
> L2 cache invalidation we may read wrong value of L2 cache "busy" bit.
> So we won't wait before L2 cache gets properly flushed and so some
> data might not reach DDR at all thus we'll use older values from DDR
> next time they are accessed.
>
> For now we use a work-around with one extra read from SLC's control
> register which guarantees next read will return real value of "busy"
> bit.
>
> Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Thx Alexey - pushed to for-curr !
> ---
> arch/arc/mm/cache.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/arch/arc/mm/cache.c b/arch/arc/mm/cache.c
> index d408fa21a07c..899f1d6b3560 100644
> --- a/arch/arc/mm/cache.c
> +++ b/arch/arc/mm/cache.c
> @@ -633,6 +633,9 @@ noinline static void slc_entire_op(const int op)
>
> write_aux_reg(ARC_REG_SLC_INVALIDATE, 1);
>
> + /* Make sure "busy" bit reports correct stataus, see STAR 9001165532 */
> + read_aux_reg(r);
> +
> /* Important to wait for flush to complete */
> while (read_aux_reg(r) & SLC_CTRL_BUSY);
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] arcv2: Make sure busy bit is set properly on SLC flushing
2017-03-29 23:41 ` [PATCH] arcv2: Make sure busy bit is set properly on SLC flushing Vineet Gupta
@ 2017-03-30 14:26 ` Alexey Brodkin
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Brodkin @ 2017-03-30 14:26 UTC (permalink / raw)
To: linux-snps-arc
Hi Vineet,
On Wed, 2017-03-29@16:41 -0700, Vineet Gupta wrote:
> On 03/29/2017 07:15 AM, Alexey Brodkin wrote:
> >
> > As reported in STAR 9001165532 if data cache gets disabled right before
> > L2 cache invalidation we may read wrong value of L2 cache "busy" bit.
> > So we won't wait before L2 cache gets properly flushed and so some
> > data might not reach DDR at all thus we'll use older values from DDR
> > next time they are accessed.
> >
> > For now we use a work-around with one extra read from SLC's control
> > register which guarantees next read will return real value of "busy"
> > bit.
> >
> > Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
>
> Thx Alexey - pushed to for-curr !
Care to add for-stable tag?
-Alexey
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-30 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1490796911-4848-1-git-send-email-abrodkin@synopsys.com>
2017-03-29 23:41 ` [PATCH] arcv2: Make sure busy bit is set properly on SLC flushing Vineet Gupta
2017-03-30 14:26 ` Alexey Brodkin
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.