All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perfmon: do not forget to destroy the engine context
@ 2014-07-21  9:59 Samuel Pitoiset
       [not found] ` <1405936784-1696-1-git-send-email-samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Pitoiset @ 2014-07-21  9:59 UTC (permalink / raw)
  To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

This fixes a crash when we reload Nouveau DRM.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 nvkm/engine/perfmon/base.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nvkm/engine/perfmon/base.c b/nvkm/engine/perfmon/base.c
index e9c5e51..7481003 100644
--- a/nvkm/engine/perfmon/base.c
+++ b/nvkm/engine/perfmon/base.c
@@ -303,6 +303,7 @@ nouveau_perfctx_dtor(struct nouveau_object *object)
 {
 	struct nouveau_perfmon *ppm = (void *)object->engine;
 	mutex_lock(&nv_subdev(ppm)->mutex);
+	nouveau_engctx_destroy(&ppm->context->base);
 	ppm->context = NULL;
 	mutex_unlock(&nv_subdev(ppm)->mutex);
 }
-- 
2.0.0

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

* Re: [PATCH] perfmon: do not forget to destroy the engine context
       [not found] ` <1405936784-1696-1-git-send-email-samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2014-08-04 23:35   ` Ben Skeggs
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Skeggs @ 2014-08-04 23:35 UTC (permalink / raw)
  To: Samuel Pitoiset; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW

On Mon, Jul 21, 2014 at 7:59 PM, Samuel Pitoiset
<samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> This fixes a crash when we reload Nouveau DRM.
Thanks Samuel :)

>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> ---
>  nvkm/engine/perfmon/base.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/nvkm/engine/perfmon/base.c b/nvkm/engine/perfmon/base.c
> index e9c5e51..7481003 100644
> --- a/nvkm/engine/perfmon/base.c
> +++ b/nvkm/engine/perfmon/base.c
> @@ -303,6 +303,7 @@ nouveau_perfctx_dtor(struct nouveau_object *object)
>  {
>         struct nouveau_perfmon *ppm = (void *)object->engine;
>         mutex_lock(&nv_subdev(ppm)->mutex);
> +       nouveau_engctx_destroy(&ppm->context->base);
>         ppm->context = NULL;
>         mutex_unlock(&nv_subdev(ppm)->mutex);
>  }
> --
> 2.0.0
>
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau

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

end of thread, other threads:[~2014-08-04 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-21  9:59 [PATCH] perfmon: do not forget to destroy the engine context Samuel Pitoiset
     [not found] ` <1405936784-1696-1-git-send-email-samuel.pitoiset-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-08-04 23:35   ` Ben Skeggs

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.