All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/lima: fix wait pp reset timeout
@ 2020-07-19  7:30 Qiang Yu
  2020-07-19 10:41 ` Erico Nunes
  0 siblings, 1 reply; 3+ messages in thread
From: Qiang Yu @ 2020-07-19  7:30 UTC (permalink / raw)
  To: dri-devel
  Cc: lima, David Airlie, Vasily Khoruzhick, Andreas Baierl, Qiang Yu,
	Erico Nunes

PP bcast is marked as doing async reset after job is done.
When resume after suspend, each PP is reset individually,
so no need to reset in PP bcast resume. But I forgot to
clear the PP bcast async reset mark so call into async wait
before job run and gets timeout.

Fixes: 3446d7e9883d ("drm/lima: add resume/suspend callback for each ip")
Signed-off-by: Qiang Yu <yuq825@gmail.com>
---
 drivers/gpu/drm/lima/lima_pp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/lima/lima_pp.c b/drivers/gpu/drm/lima/lima_pp.c
index 33f01383409c..a5c95bed08c0 100644
--- a/drivers/gpu/drm/lima/lima_pp.c
+++ b/drivers/gpu/drm/lima/lima_pp.c
@@ -271,6 +271,8 @@ void lima_pp_fini(struct lima_ip *ip)
 
 int lima_pp_bcast_resume(struct lima_ip *ip)
 {
+	/* PP has been reset by individual PP resume */
+	ip->data.async_reset = false;
 	return 0;
 }
 
-- 
2.25.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/lima: fix wait pp reset timeout
  2020-07-19  7:30 [PATCH] drm/lima: fix wait pp reset timeout Qiang Yu
@ 2020-07-19 10:41 ` Erico Nunes
  2020-07-20  1:00   ` Qiang Yu
  0 siblings, 1 reply; 3+ messages in thread
From: Erico Nunes @ 2020-07-19 10:41 UTC (permalink / raw)
  To: Qiang Yu; +Cc: lima, David Airlie, dri-devel, Vasily Khoruzhick, Andreas Baierl

On Sun, Jul 19, 2020 at 9:31 AM Qiang Yu <yuq825@gmail.com> wrote:
>
> PP bcast is marked as doing async reset after job is done.
> When resume after suspend, each PP is reset individually,
> so no need to reset in PP bcast resume. But I forgot to
> clear the PP bcast async reset mark so call into async wait
> before job run and gets timeout.
>
> Fixes: 3446d7e9883d ("drm/lima: add resume/suspend callback for each ip")
> Signed-off-by: Qiang Yu <yuq825@gmail.com>
> ---
>  drivers/gpu/drm/lima/lima_pp.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/lima/lima_pp.c b/drivers/gpu/drm/lima/lima_pp.c
> index 33f01383409c..a5c95bed08c0 100644
> --- a/drivers/gpu/drm/lima/lima_pp.c
> +++ b/drivers/gpu/drm/lima/lima_pp.c
> @@ -271,6 +271,8 @@ void lima_pp_fini(struct lima_ip *ip)
>
>  int lima_pp_bcast_resume(struct lima_ip *ip)
>  {
> +       /* PP has been reset by individual PP resume */
> +       ip->data.async_reset = false;
>         return 0;
>  }
>
> --

Reviewed-by: Erico Nunes <nunes.erico@gmail.com>

This fixes the issue reported at
https://gitlab.freedesktop.org/lima/linux/-/issues/34 .
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drm/lima: fix wait pp reset timeout
  2020-07-19 10:41 ` Erico Nunes
@ 2020-07-20  1:00   ` Qiang Yu
  0 siblings, 0 replies; 3+ messages in thread
From: Qiang Yu @ 2020-07-20  1:00 UTC (permalink / raw)
  To: Erico Nunes
  Cc: lima, David Airlie, dri-devel, Vasily Khoruzhick, Andreas Baierl

Thanks, applied to drm-misc-fixes.

Regards,
Qiang

On Sun, Jul 19, 2020 at 6:41 PM Erico Nunes <nunes.erico@gmail.com> wrote:
>
> On Sun, Jul 19, 2020 at 9:31 AM Qiang Yu <yuq825@gmail.com> wrote:
> >
> > PP bcast is marked as doing async reset after job is done.
> > When resume after suspend, each PP is reset individually,
> > so no need to reset in PP bcast resume. But I forgot to
> > clear the PP bcast async reset mark so call into async wait
> > before job run and gets timeout.
> >
> > Fixes: 3446d7e9883d ("drm/lima: add resume/suspend callback for each ip")
> > Signed-off-by: Qiang Yu <yuq825@gmail.com>
> > ---
> >  drivers/gpu/drm/lima/lima_pp.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/lima/lima_pp.c b/drivers/gpu/drm/lima/lima_pp.c
> > index 33f01383409c..a5c95bed08c0 100644
> > --- a/drivers/gpu/drm/lima/lima_pp.c
> > +++ b/drivers/gpu/drm/lima/lima_pp.c
> > @@ -271,6 +271,8 @@ void lima_pp_fini(struct lima_ip *ip)
> >
> >  int lima_pp_bcast_resume(struct lima_ip *ip)
> >  {
> > +       /* PP has been reset by individual PP resume */
> > +       ip->data.async_reset = false;
> >         return 0;
> >  }
> >
> > --
>
> Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
>
> This fixes the issue reported at
> https://gitlab.freedesktop.org/lima/linux/-/issues/34 .
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-20  1:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-19  7:30 [PATCH] drm/lima: fix wait pp reset timeout Qiang Yu
2020-07-19 10:41 ` Erico Nunes
2020-07-20  1:00   ` Qiang Yu

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.