* [libdrm PATCH] nouveau: disable flush_notify on channel_free
@ 2010-01-12 14:38 Marcin Slusarz
[not found] ` <20100112143829.GD2984-OI9uyE9O0yo@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Marcin Slusarz @ 2010-01-12 14:38 UTC (permalink / raw)
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
From: Marcin Slusarz <marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: [libdrm PATCH] nouveau: disable flush_notify on channel_free
We don't want do call flush_notify when we will FIRE the RING
a couple of lines later, because grobj bound to this channel
might be already freed.
---
nouveau/nouveau_channel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/nouveau/nouveau_channel.c b/nouveau/nouveau_channel.c
index 14cf4c6..01d6681 100644
--- a/nouveau/nouveau_channel.c
+++ b/nouveau/nouveau_channel.c
@@ -107,6 +107,7 @@ nouveau_channel_free(struct nouveau_channel **chan)
if (!chan || !*chan)
return;
nvchan = nouveau_channel(*chan);
+ (*chan)->flush_notify = NULL;
*chan = NULL;
nvdev = nouveau_device(nvchan->base.device);
--
1.6.6.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [libdrm PATCH] nouveau: disable flush_notify on channel_free
[not found] ` <20100112143829.GD2984-OI9uyE9O0yo@public.gmane.org>
@ 2010-01-14 23:01 ` Maarten Maathuis
0 siblings, 0 replies; 2+ messages in thread
From: Maarten Maathuis @ 2010-01-14 23:01 UTC (permalink / raw)
To: Marcin Slusarz; +Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
I'll push this one tomorrow if there are no complaints.
On Tue, Jan 12, 2010 at 3:38 PM, Marcin Slusarz
<marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> From: Marcin Slusarz <marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> Subject: [libdrm PATCH] nouveau: disable flush_notify on channel_free
>
> We don't want do call flush_notify when we will FIRE the RING
> a couple of lines later, because grobj bound to this channel
> might be already freed.
> ---
> nouveau/nouveau_channel.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/nouveau/nouveau_channel.c b/nouveau/nouveau_channel.c
> index 14cf4c6..01d6681 100644
> --- a/nouveau/nouveau_channel.c
> +++ b/nouveau/nouveau_channel.c
> @@ -107,6 +107,7 @@ nouveau_channel_free(struct nouveau_channel **chan)
> if (!chan || !*chan)
> return;
> nvchan = nouveau_channel(*chan);
> + (*chan)->flush_notify = NULL;
> *chan = NULL;
> nvdev = nouveau_device(nvchan->base.device);
>
> --
> 1.6.6.rc3
>
> _______________________________________________
> 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:[~2010-01-14 23:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 14:38 [libdrm PATCH] nouveau: disable flush_notify on channel_free Marcin Slusarz
[not found] ` <20100112143829.GD2984-OI9uyE9O0yo@public.gmane.org>
2010-01-14 23:01 ` Maarten Maathuis
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.