diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-02-17 15:13:31 -0800 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-02-23 10:06:23 +1000 |
commit | 5669fcacc58bf3a7386057addffd280d75380858 (patch) | |
tree | 03441b11a889764aed9a195cbbc9818ab7ed4c24 /drivers/gpu/drm/i915/i915_gem.c | |
parent | efbeed96f7e20783b22d9529ef536b61f7ea8637 (diff) | |
download | op-kernel-dev-5669fcacc58bf3a7386057addffd280d75380858.zip op-kernel-dev-5669fcacc58bf3a7386057addffd280d75380858.tar.gz |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 0f50574..58c789d 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c @@ -2973,7 +2973,7 @@ i915_gem_evict_from_list(struct drm_device *dev, struct list_head *head) return 0; } -static int +int i915_gem_idle(struct drm_device *dev) { drm_i915_private_t *dev_priv = dev->dev_private; |