drm/i915: Bump GT idling delay to 2 jiffies
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Jul 2022 14:20:12 +0000 (16:20 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Jul 2022 21:44:40 +0000 (17:44 -0400)
In monitoring a transcode pipeline that is latency sensitive (it waits
between submitting frames, and each frame requires work on rcs/vcs/vecs
engines), it is found that it took longer than a single jiffy for it to
sustain its workload. Allowing an extra jiffy headroom for the userspace
prevents us from prematurely parking and having to exit powersaving
immediately.

Link: https://gitlab.freedesktop.org/drm/intel/-/issues/6284
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Karolina Drobnik <karolina.drobnik@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e37911ec087a9ce50630d6faf61fa2c0d5f96d44.1657289332.git.karolina.drobnik@intel.com
drivers/gpu/drm/i915/i915_active.c

index ee2b3a375362556b5b9045a44c9f5c3716e5946e..7412abf166a8c366e2711a120ca9b65acc5294e7 100644 (file)
@@ -974,7 +974,7 @@ void i915_active_acquire_barrier(struct i915_active *ref)
 
                GEM_BUG_ON(!intel_engine_pm_is_awake(engine));
                llist_add(barrier_to_ll(node), &engine->barrier_tasks);
-               intel_engine_pm_put_delay(engine, 1);
+               intel_engine_pm_put_delay(engine, 2);
        }
 }