]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 3 Jun 2011 01:33:51 +0000 (10:33 +0900)
commiteb83cf2f0101005e98c65dbe04d8d83361e93a21
tree969067cfbce1aae4d333c3582d4aa4b3c5ba041e
parentbaa950b85e4a7e6965da1cf618801735584ad65e
drm: Send pending vblank events before disabling vblank.

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>
drivers/gpu/drm/drm_irq.c