[Intel-gfx] [PATCH 7/7] drm/i915: Upclock on the first residency calculation

Mika Kuoppala mika.kuoppala at linux.intel.com
Tue Mar 14 13:17:29 UTC 2017


After ei reset, upclock as default if we don't have a previous
timestamp at hand. We might at sometimes waste one interval
of more power but also be more agile if we need to ramp up.

Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
---
 drivers/gpu/drm/i915/i915_irq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 5ec12cf..aacb654 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1118,6 +1118,8 @@ static u32 vlv_wa_c0_ei(struct drm_i915_private *dev_priv, u32 pm_iir)
 			events = GEN6_PM_RP_UP_THRESHOLD;
 		else if (c0 < time * dev_priv->rps.down_threshold)
 			events = GEN6_PM_RP_DOWN_THRESHOLD;
+	} else {
+		events = GEN6_PM_RP_UP_THRESHOLD;
 	}
 
 	dev_priv->rps.ei = now;
-- 
2.7.4



More information about the Intel-gfx mailing list