diff options
author | Tom O'Rourke <Tom.O'Rourke@intel.com> | 2014-11-19 17:21:53 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-11-20 07:03:32 -0500 |
commit | f4ab408c4b55fcbc447cf0288456613bad824626 (patch) | |
tree | abc0f46775a226dcea7d63e747cd727860450220 | |
parent | 93ee29203f506582cca2bcec5f05041526d9ab0a (diff) |
drm/i915: Keep min freq above floor on HSW/BDW
Set the min_freq_softlimit to max(RPe, 450MHz).
Setting a floor can ensure a minimum experience
level. The 450MHz value came from a power and
performance study of various types of workloads
(3D, Media, GPGPU, idle, etc).
v2: rebased
Signed-off-by: Tom O'Rourke <Tom.O'Rourke@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index eb2a0a85e057..6d0795d3b2e4 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -4643,7 +4643,8 @@ static void gen6_init_rps_frequencies(struct drm_device *dev) | |||
4643 | if (dev_priv->rps.min_freq_softlimit == 0) { | 4643 | if (dev_priv->rps.min_freq_softlimit == 0) { |
4644 | if (IS_HASWELL(dev) || IS_BROADWELL(dev)) | 4644 | if (IS_HASWELL(dev) || IS_BROADWELL(dev)) |
4645 | dev_priv->rps.min_freq_softlimit = | 4645 | dev_priv->rps.min_freq_softlimit = |
4646 | dev_priv->rps.efficient_freq; | 4646 | /* max(RPe, 450 MHz) */ |
4647 | max(dev_priv->rps.efficient_freq, (u8) 9); | ||
4647 | else | 4648 | else |
4648 | dev_priv->rps.min_freq_softlimit = | 4649 | dev_priv->rps.min_freq_softlimit = |
4649 | dev_priv->rps.min_freq; | 4650 | dev_priv->rps.min_freq; |