drm/vc4: Fix -ERESTARTSYS error return from BO waits.
This caused the wait ioctls to claim that waiting had completed when we actually got interrupted by a signal before it was done. Fixes broken rendering throttling that produced serious lag in X window dragging. Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
2c68f1fcfb
commit
13cf8909ea
1 changed files with 2 additions and 4 deletions
|
@ -340,12 +340,10 @@ vc4_wait_for_seqno(struct drm_device *dev, uint64_t seqno, uint64_t timeout_ns,
|
||||||
finish_wait(&vc4->job_wait_queue, &wait);
|
finish_wait(&vc4->job_wait_queue, &wait);
|
||||||
trace_vc4_wait_for_seqno_end(dev, seqno);
|
trace_vc4_wait_for_seqno_end(dev, seqno);
|
||||||
|
|
||||||
if (ret && ret != -ERESTARTSYS) {
|
if (ret && ret != -ERESTARTSYS)
|
||||||
DRM_ERROR("timeout waiting for render thread idle\n");
|
DRM_ERROR("timeout waiting for render thread idle\n");
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue