[Bug 57945] [GM45] Xorg freezes when using gnome shell: kernel BUG at drivers/gpu/drm/drm_irq.c:929!

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Dec 6 16:10:45 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=57945

Chris Wilson <chris at chris-wilson.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Chris Wilson <chris at chris-wilson.co.uk> ---
Should be fixed in drm-intel-fixes:

commit e7d841ca03b7ab668620045cd7b428eda9f41601
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Dec 3 11:36:30 2012 +0000

    drm/i915: Close race between processing unpin task and queueing the flip

    Before queuing the flip but crucially after attaching the unpin-work to
    the crtc, we continue to setup the unpin-work. However, should the
    hardware fire early, we see the connected unpin-work and queue the task.
    The task then promptly runs and unpins the fb before we finish taking
    the required references or even pinning it... Havoc.

    To close the race, we use the flip-pending atomic to indicate when the
    flip is finally setup and enqueued. So during the flip-done processing,
    we can check more accurately whether the flip was expected.

    v2: Add the appropriate mb() to ensure that the writes to the page-flip
    worker are complete prior to marking it active and emitting the MI_FLIP.
    On the read side, the mb should be enforced by the spinlocks.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20121207/36ef1a13/attachment.html>


More information about the intel-gfx-bugs mailing list