[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
*** This bug is a duplicate of bug 768184 *** https://bugs.launchpad.net/bugs/768184 ** This bug has been marked a duplicate of bug 768184 [i965gm] GPU lockup (ESR: 0x0001 IPEHR: 0x01800020) - Black screen (dpms?) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
I've patched the default Ubuntu kernel with this: https://patchwork.kernel.org/patch/1985851/ It fixed the kernel bug, but the screen still turns off, and I see this message in the Xorg log: [ 53686.894] (WW) intel(0): flip queue failed: Device or resource busy -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
Anything else I can do to help debug this? It's happening almost every day, and causing data loss - so I'll be forced to switch to a different OS soon... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
It's been happening every two days lately, so I've decided to look through the code, and the bug became obvious (though I don't know the proper solution). The first stack trace shows a warning: WARNING: at /build/buildd/linux-3.5.0/drivers/gpu/drm/i915/i915_gem.c:3052 i915_gem_object_pin+0x15d/0x1b0 [i915]() [...] Call Trace: [] warn_slowpath_common+0x7f/0xc0 [] warn_slowpath_null+0x1a/0x20 [] i915_gem_object_pin+0x15d/0x1b0 [i915] [] i915_gem_object_pin_to_display_plane+0x88/0x100 [i915] [] intel_pin_and_fence_fb_obj+0x56/0x120 [i915] [] intel_gen6_queue_flip+0x43/0x160 [i915] [] ? intel_crtc_page_flip+0x58/0x330 [i915] [] ? intel_crtc_page_flip+0x58/0x330 [i915] [] intel_crtc_page_flip+0x171/0x330 [i915] [] drm_mode_page_flip_ioctl+0x229/0x2b0 [drm] [] ? drm_mode_object_find+0x66/0x90 [drm] [] ? drm_crtc_convert_to_umode+0xd1/0x150 [drm] [] drm_ioctl+0x4d3/0x580 [drm] [] ? drm_mode_gamma_get_ioctl+0x120/0x120 [drm] [] do_vfs_ioctl+0x99/0x590 [] sys_ioctl+0x99/0xa0 [] system_call_fastpath+0x16/0x1b In the i915_gem_object_pin function, we see: if (WARN_ON(obj->pin_count == DRM_I915_GEM_OBJECT_MAX_PIN_COUNT)) return -EBUSY; So, the pin_count did not get incremented because it has reached the maximum. If we go up a few stack frames, to intel_crtc_page_flip, we'll see: crtc->fb = fb; [...] ret = dev_priv->display.queue_flip(dev, crtc, fb, obj); if (ret) goto cleanup_pending; So crtc->fb got set, but the page flip failed. Now, let's look at the second stack trace, with the actual bug: kernel BUG at /build/buildd/linux-3.5.0/drivers/gpu/drm/i915/i915_gem.c:3090! [...] Call Trace: [] intel_unpin_fb_obj+0x3c/0x40 [i915] [] intel_crtc_disable+0x8c/0xb0 [i915] [] drm_helper_disable_unused_functions+0x115/0x170 [drm_kms_helper] [] drm_crtc_helper_set_config+0x952/0xb10 [drm_kms_helper] [] ? __generic_file_aio_write+0x236/0x440 [] ? radix_tree_lookup_slot+0xe/0x10 [] drm_framebuffer_cleanup+0xfe/0x180 [drm] [] intel_user_framebuffer_destroy+0x21/0x80 [i915] [] drm_mode_rmfb+0x103/0x110 [drm] [] drm_ioctl+0x4d3/0x580 [drm] [] ? drm_mode_addfb2+0x6c0/0x6c0 [drm] [] ? do_sync_write+0xe6/0x120 [] ? fsnotify+0x24b/0x340 [] do_vfs_ioctl+0x99/0x590 [] sys_ioctl+0x99/0xa0 [] system_call_fastpath+0x16/0x1b In intel_crtc_disable, we see: if (crtc->fb) { mutex_lock(&dev->struct_mutex); intel_unpin_fb_obj(to_intel_framebuffer(crtc->fb)->obj); mutex_unlock(&dev->struct_mutex); } The condition is true, since crtc->fb got set earlier. So it calls intel_unpin_fb_obj, even though pin_count never got incremented! It will eventually reach 0 and cause the bug in i915_gem_object_unpin: BUG_ON(obj->pin_count == 0); Hope this is useful... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
Actually, disregard the "once a month" - it happened again today. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
No, don't know how to reproduce. It happens randomly, about once a month. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1100138] Re: Screen turned off and Xorg froze due to an intel video driver bug
Do you have a way to reproduce this bug, or was it a one time event? ** Changed in: linux (Ubuntu) Importance: Undecided => Medium ** Tags added: i915-gem-object-unpin -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1100138 Title: Screen turned off and Xorg froze due to an intel video driver bug To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1100138/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs