Created attachment 18236 [details] kernel log Using Erics kernel tree anholt/drm-gem-merge (based on 2.6.27-rc2) switching from X server to console turns the screen black, I have to reboot afterwards. Attached the kernel log which seems to show that we try to unpin an already unpinned object, or the pin counter does not work as expected.
I forgot to add: My hardware is a i945GM running Xorg, libdrm and Mesa from today's git master repositories.
I am seeing similar behavior on the i915 with a patched 2.6.26. Adding some kernel BUG prevention in the unpin-ioctl-function leads to an unusable display in an otherwise working X-server after switching back, i guess framebuffer compression and tiling are not setup correctly(maybe as expected). No output of the failed ioctl in Xorg.0.log.
This libdrm commit should fix the behaviour described in this bug: http://cgit.freedesktop.org/mesa/drm/commit/?id=b0e68829462aad00ce68be998da6313bca754e9a
works for me.
Thanks for the patch, Kristian. It resolves this issue.
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.