All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915: Increase render/media power gating hysteresis for gen9+
@ 2018-01-20  9:31 Chris Wilson
  2018-01-20  9:31 ` [PATCH 2/2] drm/i915/execlists: Skip forcewake for ELSP submission Chris Wilson
                   ` (7 more replies)
  0 siblings, 8 replies; 18+ messages in thread
From: Chris Wilson @ 2018-01-20  9:31 UTC (permalink / raw)
  To: intel-gfx

On gen9+, after an idle period the HW will disable the entire power well
to conserve power (by preventing current leakage). It takes around a 100
microseconds to bring the power well back online afterwards. With the
current hysteresis value of 25us, we do not have sufficient time to
respond to an interrupt and schedule the next execution before the HW
powers itself down. (At present, we prevent this by grabbing the
forcewake for prolonged periods of time, but that is overkill fixed in
the next patch.) The minimum we want to set the power gating hysteresis
to is the length of time it takes us to service the GPU, which across a
broad spectrum of machines is about 250us.

(Note this also brings guc latency into the same ballpark as execlists.)

Testcase: igt/gem_exec_nop/sequential
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Michal Winiarski <michal.winiarski@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 1db79a860b96..6748d3efb537 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -6627,8 +6627,8 @@ static void gen9_enable_rc6(struct drm_i915_private *dev_priv)
 	I915_WRITE(GEN6_RC_SLEEP, 0);
 
 	/* 2c: Program Coarse Power Gating Policies. */
-	I915_WRITE(GEN9_MEDIA_PG_IDLE_HYSTERESIS, 25);
-	I915_WRITE(GEN9_RENDER_PG_IDLE_HYSTERESIS, 25);
+	I915_WRITE(GEN9_MEDIA_PG_IDLE_HYSTERESIS, 250);
+	I915_WRITE(GEN9_RENDER_PG_IDLE_HYSTERESIS, 250);
 
 	/* 3a: Enable RC6 */
 	I915_WRITE(GEN6_RC6_THRESHOLD, 37500); /* 37.5/125ms per EI */
-- 
2.15.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2018-01-23 13:02 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-20  9:31 [PATCH 1/2] drm/i915: Increase render/media power gating hysteresis for gen9+ Chris Wilson
2018-01-20  9:31 ` [PATCH 2/2] drm/i915/execlists: Skip forcewake for ELSP submission Chris Wilson
2018-01-22  9:50   ` Tvrtko Ursulin
2018-01-22  9:53     ` Chris Wilson
2018-01-22 10:07     ` [PATCH v2] " Chris Wilson
2018-01-22 16:59       ` Tvrtko Ursulin
2018-01-22 17:17         ` Chris Wilson
2018-01-22 17:29           ` Tvrtko Ursulin
2018-01-20 10:02 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Increase render/media power gating hysteresis for gen9+ Patchwork
2018-01-20 13:50 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-01-21 11:01 ` [PATCH 1/2] " Sagar Arun Kamble
2018-01-21 12:25   ` Chris Wilson
2018-01-22  7:04     ` Sagar Arun Kamble
2018-01-22 10:29 ` ✓ Fi.CI.BAT: success for series starting with [1/2] drm/i915: Increase render/media power gating hysteresis for gen9+ (rev2) Patchwork
2018-01-22 13:55 ` [PATCH v2] drm/i915: Increase render/media power gating hysteresis for gen9+ Chris Wilson
2018-01-22 14:15 ` ✓ Fi.CI.BAT: success for series starting with [v2] drm/i915: Increase render/media power gating hysteresis for gen9+ (rev3) Patchwork
2018-01-22 21:26 ` ✓ Fi.CI.IGT: " Patchwork
2018-01-23 13:02   ` Chris Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.