From: Marcin Slusarz Subject: Re: [PATCH v2 3/4] drm/nv50: let applications hanging on vm flush to be killed Date: Sun, 27 May 2012 21:40:44 +0200 Message-ID: <20120527194044.GB2907@joi.lan> References: <1335388836-13127-3-git-send-email-marcin.slusarz@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1335388836-13127-3-git-send-email-marcin.slusarz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, Ben Skeggs List-Id: nouveau.vger.kernel.org From: Marcin Slusarz Subject: [PATCH v3] drm/nv50: let applications hanging on vm flush to be killed Signed-off-by: Marcin Slusarz --- v3: rebased on top of current nouveau-git --- drivers/gpu/drm/nouveau/nv50_graph.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv50_graph.c b/drivers/gpu/drm/nouveau/nv50_graph.c index 78365fe..ef6757f 100644 --- a/drivers/gpu/drm/nouveau/nv50_graph.c +++ b/drivers/gpu/drm/nouveau/nv50_graph.c @@ -242,6 +242,10 @@ nv84_graph_tlb_flush(struct nouveau_device *ndev, int engine) if ((tmp & 7) == 1) idle = false; } + if (fatal_signal_pending(current)) { + ret = -ERESTARTSYS; + break; + } } while (!idle && !(timeout = ptimer->read(ptimer) - start > 2000000000)); -- 1.7.8.6