[Intel-gfx] [PATCH 2/3] drm/i915: Take runtime pm in i915_gem_resume()
David Weinehall
david.weinehall at linux.intel.com
Fri Nov 18 10:06:02 UTC 2016
In i915_gem_resume(), before calling i915_gem_restore_gtt_mappings(),
we want to take the runtime PM reference; this to allow for later
optimisation.
Signed-off-by: David Weinehall <david.weinehall at linux.intel.com>
CC: Chris Wilson <chris at chris-wilson.co.uk>
---
drivers/gpu/drm/i915/i915_gem.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 7b9f5b99b0f3..35c4ed17b898 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4229,6 +4229,7 @@ void i915_gem_resume(struct drm_device *dev)
WARN_ON(dev_priv->gt.awake);
+ intel_runtime_pm_get(dev_priv);
mutex_lock(&dev->struct_mutex);
i915_gem_restore_gtt_mappings(dev_priv);
@@ -4239,6 +4240,7 @@ void i915_gem_resume(struct drm_device *dev)
dev_priv->gt.resume(dev_priv);
mutex_unlock(&dev->struct_mutex);
+ intel_runtime_pm_put(dev_priv);
}
void i915_gem_init_swizzling(struct drm_i915_private *dev_priv)
--
2.10.2
More information about the Intel-gfx
mailing list