Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2015 23:15:53 +0300
From:      Ruslan Makhmatkhanov <cvs-src@yandex.ru>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   [drm:i915_gem_object_unbind] *ERROR* Attempting to unbind pinned buffer
Message-ID:  <55E212F9.6010908@yandex.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------030401020100070903020508
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

I'm getting tons of this in /var/log/messages:
error: [drm:pid9:i915_gem_object_unbind] *ERROR* Attempting to unbind 
pinned buffer

As far I understand [1], this case is harmless and there is no point to 
print it with DRM_ERROR - DRM_DEBUG is sufficient. Can we please change 
it in our tree like it done in patch attached? Thanks.

PS. In Linux 3.8 [2] this check was changed by removing the warning 
altogether and just returning -EBUSY, so may be we can do just this to 
reduce the diff ;).

[1] https://bugs.freedesktop.org/show_bug.cgi?id=50075
[2] 
http://lxr.free-electrons.com/source/drivers/gpu/drm/i915/i915_gem.c?v=3.8

-- 
Regards,
Ruslan

T.O.S. Of Reality

--------------030401020100070903020508
Content-Type: text/x-patch;
 name="i915_gem_object_unbind_silent.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="i915_gem_object_unbind_silent.diff"

Index: sys/dev/drm2/i915/i915_gem.c
===================================================================
--- sys/dev/drm2/i915/i915_gem.c	(revision 287214)
+++ sys/dev/drm2/i915/i915_gem.c	(working copy)
@@ -2528,7 +2528,7 @@
 		return 0;
 
 	if (obj->pin_count) {
-		DRM_ERROR("Attempting to unbind pinned buffer\n");
+		DRM_DEBUG("Attempting to unbind pinned buffer\n");
 		return -EINVAL;
 	}
 

--------------030401020100070903020508--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E212F9.6010908>