]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/nouveau/tmr: provide backtrace when a timeout is hit
authorBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 05:08:10 +0000 (15:08 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 17 Feb 2017 07:38:18 +0000 (17:38 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/subdev/timer.h

index 82d3e28918fd11fbf8ab18c0b70c8a1fedec5e50..6a567fe347b369a2c01d5e89c67ac0a881a49420 100644 (file)
@@ -48,10 +48,8 @@ void nvkm_timer_alarm_cancel(struct nvkm_timer *, struct nvkm_alarm *);
        } while (_taken = nvkm_timer_read(_tmr) - _time0, _taken < _nsecs);    \
                                                                                \
        if (_taken >= _nsecs) {                                                \
-               if (_warn) {                                                   \
-                       dev_warn(_device->dev, "timeout at %s:%d/%s()!\n",     \
-                                __FILE__, __LINE__, __func__);                \
-               }                                                              \
+               if (_warn)                                                     \
+                       dev_WARN(_device->dev, "timeout\n");                   \
                _taken = -ETIMEDOUT;                                           \
        }                                                                      \
        _taken;                                                                \