diff options
author | dumbbell <dumbbell@FreeBSD.org> | 2016-01-13 21:56:48 +0000 |
---|---|---|
committer | dumbbell <dumbbell@FreeBSD.org> | 2016-01-13 21:56:48 +0000 |
commit | 2ed939d896abffa89dd9bd70fed508d3d7147108 (patch) | |
tree | 642f89d96b99248207b2b7b2e5215e9e08469313 | |
parent | 7be34d59a5d4a3b34eb6abdf24ddd3f3f626f043 (diff) | |
download | FreeBSD-src-2ed939d896abffa89dd9bd70fed508d3d7147108.zip FreeBSD-src-2ed939d896abffa89dd9bd70fed508d3d7147108.tar.gz |
drm/i915: Remove "Attempting to unbind pinned buffer" message
This error message is removed in later versions of Linux and currently,
it spams users.
PR: 200712
MFC of: r289109
-rw-r--r-- | sys/dev/drm2/i915/i915_gem.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/drm2/i915/i915_gem.c b/sys/dev/drm2/i915/i915_gem.c index f2c8ecb..5114008 100644 --- a/sys/dev/drm2/i915/i915_gem.c +++ b/sys/dev/drm2/i915/i915_gem.c @@ -2771,10 +2771,8 @@ i915_gem_object_unbind(struct drm_i915_gem_object *obj) ret = 0; if (obj->gtt_space == NULL) return (0); - if (obj->pin_count != 0) { - DRM_ERROR("Attempting to unbind pinned buffer\n"); + if (obj->pin_count != 0) return (-EINVAL); - } ret = i915_gem_object_finish_gpu(obj); if (ret == -ERESTARTSYS || ret == -EINTR) |