Commit f1acec93 authored by Eric Anholt's avatar Eric Anholt Committed by Dave Airlie

drm/i915: Don't print to dmesg when taking signal during object_pin.

This showed up in logs where people had a hung chip, so pinning was blocked
on the chip unpinning other buffers, and the X Server took its scheduler
signal during that time.
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent 3c4fdcfb
...@@ -2491,6 +2491,7 @@ i915_gem_execbuffer(struct drm_device *dev, void *data, ...@@ -2491,6 +2491,7 @@ i915_gem_execbuffer(struct drm_device *dev, void *data,
/* error other than GTT full, or we've already tried again */ /* error other than GTT full, or we've already tried again */
if (ret != -ENOMEM || pin_tries >= 1) { if (ret != -ENOMEM || pin_tries >= 1) {
if (ret != -ERESTARTSYS)
DRM_ERROR("Failed to pin buffers %d\n", ret); DRM_ERROR("Failed to pin buffers %d\n", ret);
goto err; goto err;
} }
...@@ -2641,6 +2642,7 @@ i915_gem_object_pin(struct drm_gem_object *obj, uint32_t alignment) ...@@ -2641,6 +2642,7 @@ i915_gem_object_pin(struct drm_gem_object *obj, uint32_t alignment)
if (obj_priv->gtt_space == NULL) { if (obj_priv->gtt_space == NULL) {
ret = i915_gem_object_bind_to_gtt(obj, alignment); ret = i915_gem_object_bind_to_gtt(obj, alignment);
if (ret != 0) { if (ret != 0) {
if (ret != -ERESTARTSYS)
DRM_ERROR("Failure to bind: %d", ret); DRM_ERROR("Failure to bind: %d", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment