drm/i915: implement interruptible sleeps in the overlay code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Sep 2009 20:57:37 +0000 (22:57 +0200)
committerEric Anholt <eric@anholt.net>
Thu, 5 Nov 2009 22:47:09 +0000 (14:47 -0800)
commit03f77ea5972e6a2363152aec692744cac824daba
treead63609747a62f22f2117c62bce38f17532f72ed
parent5a5a0c64a99d7542c48c99d1a8bbb49e665842be
drm/i915: implement interruptible sleeps in the overlay code

At least for the common case of userspace ioctls. When doing a
modeset operation, the wait is still uninterruptible. But considering
that failing to turn off the overlay when switching off the crtc it's
running on hangs the chip, it doesn't complicate matters _very_
much. There's just an unkillable X in addition to a black screen.
BUG() about it and explain in the code.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_overlay.c