From e20868b906417db9b44ccca5865efe7411e93fb6 Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Tue, 1 Aug 2017 16:15:46 +1000 Subject: [PATCH] drm/nouveau/falcon: use a more reasonable msgqueue timeout value Git-commit: e20868b906417db9b44ccca5865efe7411e93fb6 Patch-mainline: v4.14-rc1 References: bsc#1095094 Signed-off-by: Ben Skeggs Acked-by: Takashi Iwai --- drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c +++ b/drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c @@ -251,7 +251,7 @@ cmd_write(struct nvkm_msgqueue *priv, st struct nvkm_msgqueue_queue *queue) { const struct nvkm_subdev *subdev = priv->falcon->owner; - static unsigned long timeout = ~0; + static unsigned timeout = 2000; unsigned long end_jiffies = jiffies + msecs_to_jiffies(timeout); int ret = -EAGAIN; bool commit = true;