drm/nouveau/tmr: provide backtrace when a timeout is hit
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
5112abc6a4
commit
eb875d87d9
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user