drm/nouveau/falcon: use a more reasonable msgqueue timeout value
authorBen Skeggs <bskeggs@redhat.com>
Tue, 1 Aug 2017 06:15:46 +0000 (16:15 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 22 Aug 2017 08:04:32 +0000 (18:04 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c

index d45d7947a964a3399d983b234c685a8c335f63f1..77273b53672c2fd20db262e5fdcc9c765c057e2a 100644 (file)
@@ -251,7 +251,7 @@ cmd_write(struct nvkm_msgqueue *priv, struct nvkm_msgqueue_hdr *cmd,
          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;