public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/i915/skl: Retrieve the Rpe value from Pcode
@ 2015-05-05 11:30 akash.goel
  2015-05-05 11:30 ` [PATCH 2/2] drm/i915/skl: Ring frequency table programming changes akash.goel
  2015-06-03 21:19 ` [PATCH 1/2] drm/i915/skl: Retrieve the Rpe value from Pcode Rodrigo Vivi
  0 siblings, 2 replies; 11+ messages in thread
From: akash.goel @ 2015-05-05 11:30 UTC (permalink / raw)
  To: intel-gfx; +Cc: Akash Goel

From: Akash Goel <akash.goel@intel.com>

Read the efficient frequency (aka RPe) value through the the mailbox
command (0x1A) from the pcode, as done on Haswell and Broadwell.
The turbo minimum frequency softlimit is not revised as per the
efficient frequency value.

Issue: VIZ-5143
Signed-off-by: Akash Goel <akash.goel@intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index a7516ed..421b78d 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4274,16 +4274,20 @@ static void gen6_init_rps_frequencies(struct drm_device *dev)
 	dev_priv->rps.max_freq		= dev_priv->rps.rp0_freq;
 
 	dev_priv->rps.efficient_freq = dev_priv->rps.rp1_freq;
-	if (IS_HASWELL(dev) || IS_BROADWELL(dev)) {
+	if (IS_HASWELL(dev) || IS_BROADWELL(dev) || IS_SKYLAKE(dev)) {
 		ret = sandybridge_pcode_read(dev_priv,
 					HSW_PCODE_DYNAMIC_DUTY_CYCLE_CONTROL,
 					&ddcc_status);
-		if (0 == ret)
+		if (0 == ret) {
 			dev_priv->rps.efficient_freq =
 				clamp_t(u8,
 					((ddcc_status >> 8) & 0xff),
 					dev_priv->rps.min_freq,
 					dev_priv->rps.max_freq);
+
+			dev_priv->rps.efficient_freq *=
+				(IS_SKYLAKE(dev) ? GEN9_FREQ_SCALER : 1);
+		}
 	}
 
 	dev_priv->rps.idle_freq = dev_priv->rps.min_freq;
-- 
1.9.2

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

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

end of thread, other threads:[~2015-06-04  8:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 11:30 [PATCH 1/2] drm/i915/skl: Retrieve the Rpe value from Pcode akash.goel
2015-05-05 11:30 ` [PATCH 2/2] drm/i915/skl: Ring frequency table programming changes akash.goel
2015-05-05 19:20   ` shuang.he
2015-05-12  7:49   ` [PATCH 3/3] drm/i915/skl: Updated the i915_ring_freq_table debugfs function akash.goel
2015-06-03 21:27     ` Rodrigo Vivi
2015-06-04  8:06       ` Akash Goel
2015-06-04  8:30         ` Ville Syrjälä
2015-06-03 21:24   ` [PATCH 2/2] drm/i915/skl: Ring frequency table programming changes Rodrigo Vivi
2015-06-04  8:03     ` Akash Goel
2015-06-03 21:19 ` [PATCH 1/2] drm/i915/skl: Retrieve the Rpe value from Pcode Rodrigo Vivi
2015-06-04  7:49   ` Akash Goel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox