drm/i915: add timeout to FBC disable waits
authorJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 21 May 2010 16:40:45 +0000 (09:40 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 26 May 2010 20:48:43 +0000 (13:48 -0700)
commit9517a92f48b08bb02cfb616825850b82b28461cc
tree03b77b31d47a5e2ebfc9fb37cf2fd294873531bb
parentd1b851fc0d105caa6b6e3e7c92d2987dfb52cbe0
drm/i915: add timeout to FBC disable waits

FBC disable on 965 can take long enough to trigger latency checks in the
kernel so be sure to timeout after a reasonable period.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=15015.

Tested-by: James Ettle <theholyettlz@googlemail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c