drm/i915: suspend/resume GEM when KMS is active
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 17 Feb 2009 23:13:31 +0000 (15:13 -0800)
committerDave Airlie <airlied@redhat.com>
Mon, 23 Feb 2009 00:06:23 +0000 (10:06 +1000)
commit5669fcacc58bf3a7386057addffd280d75380858
tree03441b11a889764aed9a195cbbc9818ab7ed4c24
parentefbeed96f7e20783b22d9529ef536b61f7ea8637
drm/i915: suspend/resume GEM when KMS is active

In the KMS case, we need to suspend/resume GEM as well.  So on suspend, make
sure we idle GEM and stop any new rendering from coming in, and on resume,
re-init the framebuffer and clear the suspended flag.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c