aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-09-20 12:13:43 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2018-09-20 15:43:30 -0400
commit8e1cb32d515bc6b691782104b00d9056a33127c8 (patch)
tree0d7dba3c27226a43cbb006d9db8fa795c4eb86da
parentb8bdd9cc6049fe8d96178001da84ac98e697a5ba (diff)
drm/i915: Park the GPU on module load
Once we have flushed the first request through the system to both load a context and record the default state; tell the GPU to park and idle itself, putting itself immediately (hopefully at least) into a powersaving state, and allowing ourselves to start from known state after setting up all our bookkeeping. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180920161343.1117-1-chris@chris-wilson.co.uk
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index b79362bbd97b..db9688d14912 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -5419,6 +5419,14 @@ static int __intel_engines_record_defaults(struct drm_i915_private *i915)
5419 5419
5420 assert_kernel_context_is_current(i915); 5420 assert_kernel_context_is_current(i915);
5421 5421
5422 /*
5423 * Immediately park the GPU so that we enable powersaving and
5424 * treat it as idle. The next time we issue a request, we will
5425 * unpark and start using the engine->pinned_default_state, otherwise
5426 * it is in limbo and an early reset may fail.
5427 */
5428 __i915_gem_park(i915);
5429
5422 for_each_engine(engine, i915, id) { 5430 for_each_engine(engine, i915, id) {
5423 struct i915_vma *state; 5431 struct i915_vma *state;
5424 void *vaddr; 5432 void *vaddr;