]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
drm/i915: Remove "Attempting to unbind pinned buffer" message
authordumbbell <dumbbell@FreeBSD.org>
Sat, 10 Oct 2015 07:43:02 +0000 (07:43 +0000)
committerdumbbell <dumbbell@FreeBSD.org>
Sat, 10 Oct 2015 07:43:02 +0000 (07:43 +0000)
This error message is removed in later versions of Linux and currently,
it spams users.

PR: 200712
MFC after: 1 week

sys/dev/drm2/i915/i915_gem.c

index 3a59623bf6ec5a0e1cf42a90035258ea56da8cc9..07b516c07ed48cd8c662e9ef3076a370a2d12763 100644 (file)
@@ -2527,10 +2527,8 @@ i915_gem_object_unbind(struct drm_i915_gem_object *obj)
        if (obj->gtt_space == NULL)
                return 0;
 
-       if (obj->pin_count) {
-               DRM_ERROR("Attempting to unbind pinned buffer\n");
+       if (obj->pin_count)
                return -EINVAL;
-       }
 
        ret = i915_gem_object_finish_gpu(obj);
        if (ret == -ERESTARTSYS || ret == -EINTR)