summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mlx4/main.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-22 10:40:15 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-06-22 11:01:56 +0200
commitaefaf55d4cbb279d5029fdaf428edd22a83f575f (patch)
tree1f798fef06b547ad2b86ac034c8b502a4f3ed414 /drivers/infiniband/hw/mlx4/main.c
parentf0ef3f9832b0e287e75780a831ea58865af039e2 (diff)
drm/i915: non-interruptible sleeps can't handle -EGAINreset-fail
So don't return -EAGAIN, even in the case of a gpu hang. Remap it to -EIO instead. This is a bit ugly because intel_ring_begin is all non-interruptible and hence only returns -EIO. But as the comment in there says, auditing all the callsites would be a pain. To avoid duplicating code, reuse i915_gem_check_wedge in __wait_seqno. Use the opportunity to clarify the different cases a bit with comments. Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
0 files changed, 0 insertions, 0 deletions