drm: Send pending vblank events before disabling vblank.
authorChristopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Wed, 27 Apr 2011 06:10:57 +0000 (16:10 +1000)
committerSteve Conklin <sconklin@canonical.com>
Fri, 15 Jul 2011 17:20:53 +0000 (12:20 -0500)
commitb8e72c715fca014f17902895907142796acdf9ec
tree4c9f2c29cafd573d6c526642e01f5601cf597af4
parent77b0be88b46e0a219e871222252c5ecf17746414
drm: Send pending vblank events before disabling vblank.

BugLink: http://bugs.launchpad.net/bugs/793702

commit 498548ec69c6897fe4376b2ca90758762fa0b817 upstream.

This is the least-bad behaviour.  It means that we signal the
vblank event before it actually happens, but since we're disabling
vblanks there's no guarantee that it will *ever* happen otherwise.

This prevents GL applications which use WaitMSC from hanging
indefinitely.

Signed-off-by: Christopher James Halse Rogers <christopher.halse.rogers@canonical.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/gpu/drm/drm_irq.c