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


T.O.S. Of Reality
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;
freebsd-current@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to