CHROMIUM: drm/exynos: Drop non-essential frames on dpms off
authorSean Paul <seanpaul@chromium.org>
Wed, 23 Jan 2013 20:16:38 +0000 (15:16 -0500)
committerChromeBot <chrome-bot@google.com>
Thu, 21 Feb 2013 16:01:19 +0000 (08:01 -0800)
commitf3520d1b33447d427ded49026a3ef2a7b4af085f
tree82e0737ef740aa43b662e3ab8d5696c22b1b3d14
parent77a961b84d4ebaf55932607e729fd6d29ca10096
CHROMIUM: drm/exynos: Drop non-essential frames on dpms off

This patch drops all frames except for the last pending one when a crtc
is disabled. It will also wait on the last frame to render before
returning from DPMS off.

BUG=chromium-os:37797
TEST=Tested manually:
- Plug/unplug HDMI with no content on the HDMI monitor
- Plug/unplug HDMI with animation (sad puppy) on HDMI monitor
- Plug/unplug HDMI with animation + cursor movement on monitor
- Suspend/resume with animation on monitor
- Idle suspend/resume

Change-Id: I3e26e8bac9be0d71cf3c0756d1cc3dd92d2612de
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/41772
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drivers/gpu/drm/exynos/exynos_drm_crtc.c
drivers/gpu/drm/exynos/exynos_drm_fimd.c
drivers/gpu/drm/exynos/exynos_mixer.c