All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Show RPS autotuning thresholds along with waitboost
@ 2016-08-14  8:52 Chris Wilson
  2016-08-14  9:21 ` ✗ Ro.CI.BAT: failure for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Chris Wilson @ 2016-08-14  8:52 UTC (permalink / raw)
  To: intel-gfx; +Cc: Rainer Hochecker

For convenience when debugging user issues show the autotuning
RPS parameters in debugfs/i915_rps_boost_info.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Rainer Hochecker <fernetmenta@kodi.tv>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 4ad2355f510a..d7c2064c28bd 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2340,6 +2340,16 @@ static int count_irq_waiters(struct drm_i915_private *i915)
 	return count;
 }
 
+static const char *rps_power_to_str(int power)
+{
+	switch (power) {
+	default: return "unknown";
+	case LOW_POWER: return "low power";
+	case BETWEEN: return "mixed";
+	case HIGH_POWER: return "high power";
+	}
+}
+
 static int i915_rps_boost_info(struct seq_file *m, void *data)
 {
 	struct drm_info_node *node = m->private;
@@ -2377,6 +2387,27 @@ static int i915_rps_boost_info(struct seq_file *m, void *data)
 	spin_unlock(&dev_priv->rps.client_lock);
 	mutex_unlock(&dev->filelist_mutex);
 
+	if (INTEL_GEN(dev_priv) >= 6) {
+		u32 rpupei, rpcurup;
+		u32 rpdownei, rpcurdown;
+
+		intel_uncore_forcewake_get(dev_priv, FORCEWAKE_ALL);
+		rpupei = I915_READ_FW(GEN6_RP_CUR_UP_EI) & GEN6_CURICONT_MASK;
+		rpcurup = I915_READ_FW(GEN6_RP_CUR_UP) & GEN6_CURBSYTAVG_MASK;
+		rpdownei = I915_READ_FW(GEN6_RP_CUR_DOWN_EI) & GEN6_CURIAVG_MASK;
+		rpcurdown = I915_READ_FW(GEN6_RP_CUR_DOWN) & GEN6_CURBSYTAVG_MASK;
+		intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);
+
+		seq_printf(m, "\nRPS Autotuning (current \"%s\" window):\n",
+			   rps_power_to_str(dev_priv->rps.power));
+		seq_printf(m, "  Avg. busy: %d%% [threshold %d%%]\n",
+			   100*rpcurup/rpupei,
+			   dev_priv->rps.up_threshold);
+		seq_printf(m, "  Avg. idle: %d%% [threshold %d%%]\n",
+			   100*rpcurdown/rpdownei,
+			   dev_priv->rps.down_threshold);
+	}
+
 	return 0;
 }
 
-- 
2.8.1

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

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

* ✗ Ro.CI.BAT: failure for drm/i915: Show RPS autotuning thresholds along with waitboost
  2016-08-14  8:52 [PATCH] drm/i915: Show RPS autotuning thresholds along with waitboost Chris Wilson
@ 2016-08-14  9:21 ` Patchwork
  2016-08-14 13:28 ` [PATCH v2] " Chris Wilson
  2016-08-14 13:52 ` ✗ Ro.CI.BAT: failure for drm/i915: Show RPS autotuning thresholds along with waitboost (rev2) Patchwork
  2 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2016-08-14  9:21 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Show RPS autotuning thresholds along with waitboost
URL   : https://patchwork.freedesktop.org/series/11063/
State : failure

== Summary ==

Series 11063v1 drm/i915: Show RPS autotuning thresholds along with waitboost
http://patchwork.freedesktop.org/api/1.0/series/11063/revisions/1/mbox

Test gem_exec_gttfill:
        Subgroup basic:
                pass       -> SKIP       (fi-snb-i7-2600)
Test kms_cursor_legacy:
        Subgroup basic-flip-vs-cursor-legacy:
                pass       -> FAIL       (ro-bdw-i5-5250u)
        Subgroup basic-flip-vs-cursor-varying-size:
                fail       -> PASS       (ro-skl3-i5-6260u)
                pass       -> DMESG-FAIL (fi-skl-i7-6700k)
Test kms_pipe_crc_basic:
        Subgroup suspend-read-crc-pipe-a:
                dmesg-warn -> PASS       (ro-bdw-i7-5600u)
                dmesg-warn -> SKIP       (ro-bdw-i5-5250u)

fi-hsw-i7-4770k  total:244  pass:222  dwarn:0   dfail:0   fail:0   skip:22 
fi-kbl-qkkr      total:244  pass:187  dwarn:28  dfail:0   fail:3   skip:26 
fi-skl-i7-6700k  total:244  pass:208  dwarn:4   dfail:2   fail:2   skip:28 
fi-snb-i7-2600   total:244  pass:201  dwarn:0   dfail:0   fail:0   skip:43 
ro-bdw-i5-5250u  total:240  pass:219  dwarn:1   dfail:0   fail:1   skip:19 
ro-bdw-i7-5600u  total:240  pass:207  dwarn:0   dfail:0   fail:1   skip:32 
ro-bsw-n3050     total:240  pass:194  dwarn:0   dfail:0   fail:4   skip:42 
ro-byt-n2820     total:240  pass:197  dwarn:0   dfail:0   fail:3   skip:40 
ro-hsw-i3-4010u  total:240  pass:214  dwarn:0   dfail:0   fail:0   skip:26 
ro-hsw-i7-4770r  total:240  pass:185  dwarn:0   dfail:0   fail:0   skip:55 
ro-ilk1-i5-650   total:235  pass:173  dwarn:0   dfail:0   fail:2   skip:60 
ro-ivb-i7-3770   total:240  pass:205  dwarn:0   dfail:0   fail:0   skip:35 
ro-ivb2-i7-3770  total:240  pass:209  dwarn:0   dfail:0   fail:0   skip:31 
ro-skl3-i5-6260u total:240  pass:223  dwarn:0   dfail:0   fail:3   skip:14 

Results at /archive/results/CI_IGT_test/RO_Patchwork_1862/

3612906 drm-intel-nightly: 2016y-08m-12d-15h-08m-02s UTC integration manifest
63349af drm/i915: Show RPS autotuning thresholds along with waitboost

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

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

* [PATCH v2] drm/i915: Show RPS autotuning thresholds along with waitboost
  2016-08-14  8:52 [PATCH] drm/i915: Show RPS autotuning thresholds along with waitboost Chris Wilson
  2016-08-14  9:21 ` ✗ Ro.CI.BAT: failure for " Patchwork
@ 2016-08-14 13:28 ` Chris Wilson
  2016-08-14 13:58   ` kbuild test robot
  2016-08-15  8:27   ` David Weinehall
  2016-08-14 13:52 ` ✗ Ro.CI.BAT: failure for drm/i915: Show RPS autotuning thresholds along with waitboost (rev2) Patchwork
  2 siblings, 2 replies; 6+ messages in thread
From: Chris Wilson @ 2016-08-14 13:28 UTC (permalink / raw)
  To: intel-gfx

For convenience when debugging user issues show the autotuning
RPS parameters in debugfs/i915_rps_boost_info.

v2: Refine the presentation

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: fritsch@kodi.tv
---
 drivers/gpu/drm/i915/i915_debugfs.c | 43 +++++++++++++++++++++++++++++++++++--
 1 file changed, 41 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index c461072da142..8d302906d768 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2441,6 +2441,16 @@ static int count_irq_waiters(struct drm_i915_private *i915)
 	return count;
 }
 
+static const char *rps_power_to_str(int power)
+{
+	switch (power) {
+	default: return "unknown";
+	case LOW_POWER: return "low power";
+	case BETWEEN: return "mixed";
+	case HIGH_POWER: return "high power";
+	}
+}
+
 static int i915_rps_boost_info(struct seq_file *m, void *data)
 {
 	struct drm_info_node *node = m->private;
@@ -2452,12 +2462,17 @@ static int i915_rps_boost_info(struct seq_file *m, void *data)
 	seq_printf(m, "GPU busy? %s [%x]\n",
 		   yesno(dev_priv->gt.awake), dev_priv->gt.active_engines);
 	seq_printf(m, "CPU waiting? %d\n", count_irq_waiters(dev_priv));
-	seq_printf(m, "Frequency requested %d; min hard:%d, soft:%d; max soft:%d, hard:%d\n",
-		   intel_gpu_freq(dev_priv, dev_priv->rps.cur_freq),
+	seq_printf(m, "Frequency requested %d\n",
+		   intel_gpu_freq(dev_priv, dev_priv->rps.cur_freq));
+	seq_printf(m, "  min hard:%d, soft:%d; max soft:%d, hard:%d\n",
 		   intel_gpu_freq(dev_priv, dev_priv->rps.min_freq),
 		   intel_gpu_freq(dev_priv, dev_priv->rps.min_freq_softlimit),
 		   intel_gpu_freq(dev_priv, dev_priv->rps.max_freq_softlimit),
 		   intel_gpu_freq(dev_priv, dev_priv->rps.max_freq));
+	seq_printf(m, "  idle:%d, efficient:%d, boost:%d\n",
+		   intel_gpu_freq(dev_priv, dev_priv->rps.idle_freq),
+		   intel_gpu_freq(dev_priv, dev_priv->rps.efficient_freq),
+		   intel_gpu_freq(dev_priv, dev_priv->rps.boost_freq));
 
 	mutex_lock(&dev->filelist_mutex);
 	spin_lock(&dev_priv->rps.client_lock);
@@ -2478,6 +2493,30 @@ static int i915_rps_boost_info(struct seq_file *m, void *data)
 	spin_unlock(&dev_priv->rps.client_lock);
 	mutex_unlock(&dev->filelist_mutex);
 
+	if (INTEL_GEN(dev_priv) >= 6 &&
+	    dev_priv->rps.enabled &&
+	    dev_priv->gt.active_engines) {
+		u32 rpupei, rpcurup;
+		u32 rpdownei, rpcurdown;
+
+		intel_uncore_forcewake_get(dev_priv, FORCEWAKE_ALL);
+		rpupei = I915_READ_FW(GEN6_RP_CUR_UP_EI) & GEN6_CURICONT_MASK;
+		rpcurup = I915_READ_FW(GEN6_RP_CUR_UP) & GEN6_CURBSYTAVG_MASK;
+		rpdownei = I915_READ_FW(GEN6_RP_CUR_DOWN_EI) & GEN6_CURIAVG_MASK;
+		rpcurdown = I915_READ_FW(GEN6_RP_CUR_DOWN) & GEN6_CURBSYTAVG_MASK;
+		intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);
+
+		seq_printf(m, "\nRPS Autotuning (current \"%s\" window):\n",
+			   rps_power_to_str(dev_priv->rps.power));
+		seq_printf(m, "  Avg. up: %d%% [above threshold? %d%%]\n",
+			   100*rpcurup/rpupei,
+			   dev_priv->rps.up_threshold);
+		seq_printf(m, "  Avg. down: %d%% [below threshold? %d%%]\n",
+			   100*rpcurdown/rpdownei,
+			   dev_priv->rps.down_threshold);
+	} else
+		seq_printf(m, "\nRPS Autotuning inactive\n");
+
 	return 0;
 }
 
-- 
2.8.1

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

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

* ✗ Ro.CI.BAT: failure for drm/i915: Show RPS autotuning thresholds along with waitboost (rev2)
  2016-08-14  8:52 [PATCH] drm/i915: Show RPS autotuning thresholds along with waitboost Chris Wilson
  2016-08-14  9:21 ` ✗ Ro.CI.BAT: failure for " Patchwork
  2016-08-14 13:28 ` [PATCH v2] " Chris Wilson
@ 2016-08-14 13:52 ` Patchwork
  2 siblings, 0 replies; 6+ messages in thread
From: Patchwork @ 2016-08-14 13:52 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

== Series Details ==

Series: drm/i915: Show RPS autotuning thresholds along with waitboost (rev2)
URL   : https://patchwork.freedesktop.org/series/11063/
State : failure

== Summary ==

Series 11063v2 drm/i915: Show RPS autotuning thresholds along with waitboost
http://patchwork.freedesktop.org/api/1.0/series/11063/revisions/2/mbox

Test gem_exec_suspend:
        Subgroup basic-s3:
                pass       -> INCOMPLETE (fi-hsw-i7-4770k)
Test kms_cursor_legacy:
        Subgroup basic-cursor-vs-flip-varying-size:
                fail       -> PASS       (ro-ilk1-i5-650)
        Subgroup basic-flip-vs-cursor-legacy:
                pass       -> FAIL       (ro-bdw-i5-5250u)
        Subgroup basic-flip-vs-cursor-varying-size:
                fail       -> PASS       (ro-byt-n2820)
                pass       -> DMESG-FAIL (fi-skl-i7-6700k)
Test kms_pipe_crc_basic:
        Subgroup suspend-read-crc-pipe-a:
                dmesg-warn -> PASS       (ro-bdw-i7-5600u)

fi-hsw-i7-4770k  total:107  pass:91   dwarn:0   dfail:0   fail:0   skip:15 
fi-kbl-qkkr      total:244  pass:185  dwarn:28  dfail:1   fail:3   skip:27 
fi-skl-i7-6700k  total:244  pass:208  dwarn:4   dfail:2   fail:2   skip:28 
fi-snb-i7-2600   total:244  pass:202  dwarn:0   dfail:0   fail:0   skip:42 
ro-bdw-i5-5250u  total:240  pass:219  dwarn:2   dfail:0   fail:1   skip:18 
ro-bdw-i7-5600u  total:240  pass:207  dwarn:0   dfail:0   fail:1   skip:32 
ro-bsw-n3050     total:240  pass:194  dwarn:0   dfail:0   fail:4   skip:42 
ro-byt-n2820     total:240  pass:198  dwarn:0   dfail:0   fail:2   skip:40 
ro-hsw-i3-4010u  total:240  pass:214  dwarn:0   dfail:0   fail:0   skip:26 
ro-hsw-i7-4770r  total:240  pass:185  dwarn:0   dfail:0   fail:0   skip:55 
ro-ilk1-i5-650   total:235  pass:174  dwarn:0   dfail:0   fail:1   skip:60 
ro-ivb-i7-3770   total:240  pass:205  dwarn:0   dfail:0   fail:0   skip:35 
ro-ivb2-i7-3770  total:240  pass:209  dwarn:0   dfail:0   fail:0   skip:31 
ro-skl3-i5-6260u total:240  pass:222  dwarn:0   dfail:0   fail:4   skip:14 

Results at /archive/results/CI_IGT_test/RO_Patchwork_1863/

3612906 drm-intel-nightly: 2016y-08m-12d-15h-08m-02s UTC integration manifest
cc82745 drm/i915: Show RPS autotuning thresholds along with waitboost

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

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

* Re: [PATCH v2] drm/i915: Show RPS autotuning thresholds along with waitboost
  2016-08-14 13:28 ` [PATCH v2] " Chris Wilson
@ 2016-08-14 13:58   ` kbuild test robot
  2016-08-15  8:27   ` David Weinehall
  1 sibling, 0 replies; 6+ messages in thread
From: kbuild test robot @ 2016-08-14 13:58 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx, kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1753 bytes --]

Hi Chris,

[auto build test ERROR on drm-intel/for-linux-next]
[also build test ERROR on v4.8-rc1 next-20160812]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Chris-Wilson/drm-i915-Show-RPS-autotuning-thresholds-along-with-waitboost/20160814-213058
base:   git://anongit.freedesktop.org/drm-intel for-linux-next
config: i386-randconfig-x009-201633 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_debugfs.c: In function 'i915_rps_boost_info':
>> drivers/gpu/drm/i915/i915_debugfs.c:2468:44: error: 'struct intel_gen6_power_mgmt' has no member named 'boost_freq'; did you mean 'cur_freq'?
         intel_gpu_freq(dev_priv, dev_priv->rps.boost_freq));
                                               ^

vim +2468 drivers/gpu/drm/i915/i915_debugfs.c

  2462			   intel_gpu_freq(dev_priv, dev_priv->rps.min_freq_softlimit),
  2463			   intel_gpu_freq(dev_priv, dev_priv->rps.max_freq_softlimit),
  2464			   intel_gpu_freq(dev_priv, dev_priv->rps.max_freq));
  2465		seq_printf(m, "  idle:%d, efficient:%d, boost:%d\n",
  2466			   intel_gpu_freq(dev_priv, dev_priv->rps.idle_freq),
  2467			   intel_gpu_freq(dev_priv, dev_priv->rps.efficient_freq),
> 2468			   intel_gpu_freq(dev_priv, dev_priv->rps.boost_freq));
  2469	
  2470		mutex_lock(&dev->filelist_mutex);
  2471		spin_lock(&dev_priv->rps.client_lock);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27025 bytes --]

[-- Attachment #3: Type: text/plain, Size: 160 bytes --]

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

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

* Re: [PATCH v2] drm/i915: Show RPS autotuning thresholds along with waitboost
  2016-08-14 13:28 ` [PATCH v2] " Chris Wilson
  2016-08-14 13:58   ` kbuild test robot
@ 2016-08-15  8:27   ` David Weinehall
  1 sibling, 0 replies; 6+ messages in thread
From: David Weinehall @ 2016-08-15  8:27 UTC (permalink / raw)
  To: Chris Wilson; +Cc: intel-gfx

On Sun, Aug 14, 2016 at 02:28:56PM +0100, Chris Wilson wrote:
> For convenience when debugging user issues show the autotuning
> RPS parameters in debugfs/i915_rps_boost_info.
> 
> v2: Refine the presentation
> 
> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> Cc: fritsch@kodi.tv

Looks good to me (well, it doesn't, I hate having things on the same
line as the case statement, but that's a personal opinion), compiles
and works as it should.

Reviewed-by: David Weinehall <david.weinehall@linux.intel.com>

> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 43 +++++++++++++++++++++++++++++++++++--
>  1 file changed, 41 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index c461072da142..8d302906d768 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -2441,6 +2441,16 @@ static int count_irq_waiters(struct drm_i915_private *i915)
>  	return count;
>  }
>  
> +static const char *rps_power_to_str(int power)
> +{
> +	switch (power) {
> +	default: return "unknown";
> +	case LOW_POWER: return "low power";
> +	case BETWEEN: return "mixed";
> +	case HIGH_POWER: return "high power";
> +	}
> +}
> +
>  static int i915_rps_boost_info(struct seq_file *m, void *data)
>  {
>  	struct drm_info_node *node = m->private;
> @@ -2452,12 +2462,17 @@ static int i915_rps_boost_info(struct seq_file *m, void *data)
>  	seq_printf(m, "GPU busy? %s [%x]\n",
>  		   yesno(dev_priv->gt.awake), dev_priv->gt.active_engines);
>  	seq_printf(m, "CPU waiting? %d\n", count_irq_waiters(dev_priv));
> -	seq_printf(m, "Frequency requested %d; min hard:%d, soft:%d; max soft:%d, hard:%d\n",
> -		   intel_gpu_freq(dev_priv, dev_priv->rps.cur_freq),
> +	seq_printf(m, "Frequency requested %d\n",
> +		   intel_gpu_freq(dev_priv, dev_priv->rps.cur_freq));
> +	seq_printf(m, "  min hard:%d, soft:%d; max soft:%d, hard:%d\n",
>  		   intel_gpu_freq(dev_priv, dev_priv->rps.min_freq),
>  		   intel_gpu_freq(dev_priv, dev_priv->rps.min_freq_softlimit),
>  		   intel_gpu_freq(dev_priv, dev_priv->rps.max_freq_softlimit),
>  		   intel_gpu_freq(dev_priv, dev_priv->rps.max_freq));
> +	seq_printf(m, "  idle:%d, efficient:%d, boost:%d\n",
> +		   intel_gpu_freq(dev_priv, dev_priv->rps.idle_freq),
> +		   intel_gpu_freq(dev_priv, dev_priv->rps.efficient_freq),
> +		   intel_gpu_freq(dev_priv, dev_priv->rps.boost_freq));
>  
>  	mutex_lock(&dev->filelist_mutex);
>  	spin_lock(&dev_priv->rps.client_lock);
> @@ -2478,6 +2493,30 @@ static int i915_rps_boost_info(struct seq_file *m, void *data)
>  	spin_unlock(&dev_priv->rps.client_lock);
>  	mutex_unlock(&dev->filelist_mutex);
>  
> +	if (INTEL_GEN(dev_priv) >= 6 &&
> +	    dev_priv->rps.enabled &&
> +	    dev_priv->gt.active_engines) {
> +		u32 rpupei, rpcurup;
> +		u32 rpdownei, rpcurdown;
> +
> +		intel_uncore_forcewake_get(dev_priv, FORCEWAKE_ALL);
> +		rpupei = I915_READ_FW(GEN6_RP_CUR_UP_EI) & GEN6_CURICONT_MASK;
> +		rpcurup = I915_READ_FW(GEN6_RP_CUR_UP) & GEN6_CURBSYTAVG_MASK;
> +		rpdownei = I915_READ_FW(GEN6_RP_CUR_DOWN_EI) & GEN6_CURIAVG_MASK;
> +		rpcurdown = I915_READ_FW(GEN6_RP_CUR_DOWN) & GEN6_CURBSYTAVG_MASK;
> +		intel_uncore_forcewake_put(dev_priv, FORCEWAKE_ALL);
> +
> +		seq_printf(m, "\nRPS Autotuning (current \"%s\" window):\n",
> +			   rps_power_to_str(dev_priv->rps.power));
> +		seq_printf(m, "  Avg. up: %d%% [above threshold? %d%%]\n",
> +			   100*rpcurup/rpupei,
> +			   dev_priv->rps.up_threshold);
> +		seq_printf(m, "  Avg. down: %d%% [below threshold? %d%%]\n",
> +			   100*rpcurdown/rpdownei,
> +			   dev_priv->rps.down_threshold);
> +	} else
> +		seq_printf(m, "\nRPS Autotuning inactive\n");
> +
>  	return 0;
>  }
>  
> -- 
> 2.8.1
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2016-08-15  8:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-14  8:52 [PATCH] drm/i915: Show RPS autotuning thresholds along with waitboost Chris Wilson
2016-08-14  9:21 ` ✗ Ro.CI.BAT: failure for " Patchwork
2016-08-14 13:28 ` [PATCH v2] " Chris Wilson
2016-08-14 13:58   ` kbuild test robot
2016-08-15  8:27   ` David Weinehall
2016-08-14 13:52 ` ✗ Ro.CI.BAT: failure for drm/i915: Show RPS autotuning thresholds along with waitboost (rev2) Patchwork

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.