From: Marcin Slusarz <[email protected]> Subject: [PATCH v3] drm/nv50: let applications hanging on vm flush to be killed
Signed-off-by: Marcin Slusarz <[email protected]> --- 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 _______________________________________________ Nouveau mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/nouveau
