drm/i915: Don't spam dmesg with rps messages on vlv/chv
Subsystems (2)
PATCH 1/1 drm/i915: Don't spam dmesg with rps messages on vlv/chv
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
--- drivers/gpu/drm/i915/intel_pm.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +7 -6
@@ -3488,17 +3488,18 @@ void valleyview_set_rps(struct drm_device *dev, u8 val)WARN_ON (val > dev_priv->rps.max_freq_softlimit);WARN_ON (val < dev_priv->rps.min_freq_softlimit); -DRM_DEBUG_DRIVER ("GPU freq request from %d MHz (%u) to %d MHz (%u)\n" , -vlv_gpu_freq (dev_priv, dev_priv->rps.cur_freq), - dev_priv->rps.cur_freq, -vlv_gpu_freq (dev_priv, val), val); -if (WARN_ONCE (IS_CHERRYVIEW (dev) && (val &1 ),"Odd GPU freq value\n" )) val &= ~1 ; -if (val != dev_priv->rps.cur_freq) +if (val != dev_priv->rps.cur_freq) { +DRM_DEBUG_DRIVER ("GPU freq request from %d MHz (%u) to %d MHz (%u)\n" , +vlv_gpu_freq (dev_priv, dev_priv->rps.cur_freq), + dev_priv->rps.cur_freq, +vlv_gpu_freq (dev_priv, val), val); +vlv_punit_write (dev_priv,PUNIT_REG_GPU_FREQ_REQ , val); + }I915_WRITE (GEN6_PMINTRMSK ,gen6_rps_pm_mask (dev_priv, val));
Signature · 6 lines
1.8.5.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · On Tue, 02 Sep 2014, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
Signed-off-by Ville Syrjälä <[email protected]>
Oh yes please!
Quoted 40 lines
--- drivers/gpu/drm/i915/intel_pm.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/intel_pm.c +7
-6@@ -3488,17 +3488,18 @@ void valleyview_set_rps(struct drm_device *dev, u8 val)WARN_ON (val > dev_priv->rps.max_freq_softlimit);WARN_ON (val < dev_priv->rps.min_freq_softlimit); -DRM_DEBUG_DRIVER ("GPU freq request from %d MHz (%u) to %d MHz (%u)\n" , -vlv_gpu_freq (dev_priv, dev_priv->rps.cur_freq), - dev_priv->rps.cur_freq, -vlv_gpu_freq (dev_priv, val), val); -if (WARN_ONCE (IS_CHERRYVIEW (dev) && (val &1 ),"Odd GPU freq value\n" )) val &= ~1 ; -if (val != dev_priv->rps.cur_freq) +if (val != dev_priv->rps.cur_freq) { +DRM_DEBUG_DRIVER ("GPU freq request from %d MHz (%u) to %d MHz (%u)\n" , +vlv_gpu_freq (dev_priv, dev_priv->rps.cur_freq), + dev_priv->rps.cur_freq, +vlv_gpu_freq (dev_priv, val), val); +vlv_punit_write (dev_priv,PUNIT_REG_GPU_FREQ_REQ , val); + }I915_WRITE (GEN6_PMINTRMSK ,gen6_rps_pm_mask (dev_priv, val));Signature · 6 lines
1.8.5.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 11 lines · Jani Nikula
Quoted 6 lines · On Tue, 02 Sep 2014, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
Signed-off-by Ville Syrjälä <[email protected]>Oh yes please!
Reviewed-by Jani Nikula <[email protected]>
Queued for -next-fixes, thanks for the patch.
-Daniel
Quoted 49 lines
Quoted 42 lines
--- drivers/gpu/drm/i915/intel_pm.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)drivers/gpu/drm/i915/intel_pm.c +7
-6@@ -3488,17 +3488,18 @@ void valleyview_set_rps(struct drm_device *dev, u8 val)WARN_ON (val > dev_priv->rps.max_freq_softlimit);WARN_ON (val < dev_priv->rps.min_freq_softlimit); -DRM_DEBUG_DRIVER ("GPU freq request from %d MHz (%u) to %d MHz (%u)\n" , -vlv_gpu_freq (dev_priv, dev_priv->rps.cur_freq), - dev_priv->rps.cur_freq, -vlv_gpu_freq (dev_priv, val), val); -if (WARN_ONCE (IS_CHERRYVIEW (dev) && (val &1 ),"Odd GPU freq value\n" )) val &= ~1 ; -if (val != dev_priv->rps.cur_freq) +if (val != dev_priv->rps.cur_freq) { +DRM_DEBUG_DRIVER ("GPU freq request from %d MHz (%u) to %d MHz (%u)\n" , +vlv_gpu_freq (dev_priv, dev_priv->rps.cur_freq), + dev_priv->rps.cur_freq, +vlv_gpu_freq (dev_priv, val), val); +vlv_punit_write (dev_priv,PUNIT_REG_GPU_FREQ_REQ , val); + }I915_WRITE (GEN6_PMINTRMSK ,gen6_rps_pm_mask (dev_priv, val));Signature · 6 lines
1.8.5.5 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfxSignature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 4 lines · On Tue, Sep 02, 2014 at 03:12:17PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
I'd be more worried about why. gen6_rps_idle()?
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Quoted 7 lines · Chris Wilson
Quoted 4 lines · On Tue, Sep 02, 2014 at 03:12:17PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
I'd be more worried about why.
gen6_rps_idle()?
Hmm. Good question. I suppose the PMINTRMSK frobbing should prevent it from doing that. rps_idle should not be involved since it tries to set the max freq all the time when running some benchmark. I'll try to investigate a bit more...
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 7 lines · Ville Syrjälä
Quoted 6 lines · Chris Wilson
Quoted 4 lines · On Tue, Sep 02, 2014 at 03:12:17PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
Quoted 6 lines
Quoted 1 line
I'd be more worried about why.
gen6_rps_idle()?Hmm. Good question. I suppose the PMINTRMSK frobbing should prevent it from doing that.
rps_idleshould not be involved since it tries to set the max freq all the time when running some benchmark. I'll try to investigate a bit more...
gen6_rps_boost() is one culprit at least. So yeah I think we want this patch, or maybe even make it DRM_DEBUG() to shut it up more? Or maybe just kill it since we don't print this stuff for other platforms either?
Signature · 2 lines
Ville Syrjälä Intel OTC
Quoted 10 lines · Ville Syrjälä
Quoted 9 lines · Ville Syrjälä
Quoted 7 lines · Chris Wilson
Quoted 4 lines · On Tue, Sep 02, 2014 at 03:12:17PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
If the GPU frequency isn't going to change don't spam dmesg with debug messages about it.
I'd be more worried about why.
gen6_rps_idle()?
Quoted 8 lines
Quoted 4 lines
Hmm. Good question. I suppose the PMINTRMSK frobbing should prevent it from doing that.
rps_idleshould not be involved since it tries to set the max freq all the time when running some benchmark. I'll try to investigate a bit more...
gen6_rps_boost()is one culprit at least. So yeah I think we want this patch, or maybe even make itDRM_DEBUG()to shut it up more? Or maybe just kill it since we don't print this stuff for other platforms either?
You were reviewing patches which included a suppression for that, or so I thought this morning.... Or maybe those patches are only my machines here. Hmm.
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre