drm/i915: handle FBC and self-refresh better
commitee25df2bc379728c45d81e04cf87984db1425edf
authorJesse Barnes <jbarnes@virtuousgeek.org>
Sat, 6 Feb 2010 18:41:53 +0000 (6 10:41 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 10 Feb 2010 22:27:13 +0000 (10 14:27 -0800)
treedbd5629ce6e09ef67c2891cb5d3f535461f7f424
parentfd2e8ea597222b8f38ae8948776a61ea7958232e
drm/i915: handle FBC and self-refresh better

On 945, we need to avoid entering self-refresh if the compressor is
busy, or we may cause display FIFO underruns leading to ugly flicker.

Fixes fdo bug #24314, kernel bug #15043.

Tested-by: Alexander Lam <lambchop468@gmail.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Tested-by: Julien Cristau <jcristau@debian.org> (fd.o #25371)
Cc: stable@kernel.org
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c