Bug 17092

Summary: [i915 GEM] Crash switching from X to console
Product: DRI Reporter: Johannes Engel <jcnengel>
Component: libdrmAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: eric, pierre
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
kernel log none

Description Johannes Engel 2008-08-12 06:56:01 UTC
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.
Comment 1 Johannes Engel 2008-08-12 06:58:33 UTC
I forgot to add: My hardware is a i945GM running Xorg, libdrm and Mesa from today's git master repositories.
Comment 2 Pierre Willenbrock 2008-08-12 16:21:16 UTC
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.
Comment 3 Kristian Høgsberg 2008-08-13 08:14:31 UTC
This libdrm commit should fix the behaviour described in this bug:

http://cgit.freedesktop.org/mesa/drm/commit/?id=b0e68829462aad00ce68be998da6313bca754e9a
Comment 4 Pierre Willenbrock 2008-08-13 11:13:31 UTC
works for me.
Comment 5 Johannes Engel 2008-08-13 13:01:17 UTC
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.