Created attachment 72839 [details] prime_self_import.dmesg Environment: -------------------------- The first bad commit info Repo url: git://people.freedesktop.org/~airlied/linux Branch:drm-fixes commit be8a42ae60addd8b6092535c11b42d099d6470ec Author: Seung-Woo Kim <sw0312.kim@samsung.com> Date: Thu Sep 27 15:30:06 2012 +0900 drm/prime: drop reference on imported dma-buf come from gem Steps: --------------------------- ./prime_self_import Result: -------------------------- prime_self_import: prime_self_import.c:61: check_bo: Assertion `ptr1' failed. Aborted (core dumped) The dmesg info was on the attachment.
*** This bug has been marked as a duplicate of bug 54111 ***
Disagree with Jani here, sounds like a different bug caught by the same test.
(In reply to comment #2) > Disagree with Jani here, sounds like a different bug caught by the same test. My conclusion may have been hasty, based on the assumption that commit be8a42ae60addd8b6092535c11b42d099d6470ec Author: Seung-Woo Kim <sw0312.kim@samsung.com> Date: Thu Sep 27 15:30:06 2012 +0900 drm/prime: drop reference on imported dma-buf come from gem was an attempt to fix bug 54111, but then caused this bug. In any case, the impact of said patch was known, but apparently ignored: http://mid.gmane.org/874nmjh995.fsf@intel.com
It fails on -fixes branch and -queued branch.
The bug should be fixed by Dave's WIP patch: http://lists.freedesktop.org/archives/dri-devel/2013-April/037145.html
I have tried with this patch, and I can't reproduce this issue. return value is 0, and worked pretty well.
Dave Airlie merged the prime refcount fixes into drm-next, which is now included in drm-intel-nightly. Note that dinq/drm-intel-fixes does not yet have the patches, since it's a drm upstream issue.
(In reply to comment #7) > Dave Airlie merged the prime refcount fixes into drm-next, which is now > included in drm-intel-nightly. Note that dinq/drm-intel-fixes does not yet > have the patches, since it's a drm upstream issue. Ok, I verified it here.
Closing old verified.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.