Skip to content

Commit

Permalink
drm/i915: Permit pinning whilst the device is 'suspended'
Browse files Browse the repository at this point in the history
As pinning (allocating and binding GTT memory) does not actually invoke
GPU commands, it is safe, and indeed is attempted, during resumption
from suspension:

  [drm:intel_init_clock_gating] *ERROR* failed to pin power context: -16

Signed-off-by: Chris Wilson <[email protected]>
Reported-by: Hugh Dickins <[email protected]>
Cc: [email protected]
Signed-off-by: Eric Anholt <[email protected]>
  • Loading branch information
ickle authored and anholt committed Jan 6, 2010
1 parent 9ea8d05 commit e3d8aff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -2582,9 +2582,6 @@ i915_gem_object_bind_to_gtt(struct drm_gem_object *obj, unsigned alignment)
bool retry_alloc = false;
int ret;

if (dev_priv->mm.suspended)
return -EBUSY;

if (obj_priv->madv != I915_MADV_WILLNEED) {
DRM_ERROR("Attempting to bind a purgeable object\n");
return -EINVAL;
Expand Down

0 comments on commit e3d8aff

Please sign in to comment.