diff options
author | Imre Deak <imre.deak@intel.com> | 2016-02-29 20:49:04 (GMT) |
---|---|---|
committer | Imre Deak <imre.deak@intel.com> | 2016-03-01 17:12:04 (GMT) |
commit | 66e2c4c39cc37beaccc24c9d14c75d627fce9cf4 (patch) | |
tree | 41b7a7b295180a1d68b5690d0686a8a5f43d45f0 /drivers | |
parent | a37baf3b832b862d09e10067b7d2065b3b42a729 (diff) | |
download | linux-66e2c4c39cc37beaccc24c9d14c75d627fce9cf4.tar.xz |
drm/i915/gen9: Disable DC states if power well support is disabled
If power well support is disabled via the i915.disable_power_well module
option we should never enable DC states. Currently we would enable DC
states even in this case during system suspend, where we need to disable
all power wells regardless of the disable_power_well option.
CC: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456778945-5411-3-git-send-email-imre.deak@intel.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index 30df9de..f0ca5134 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c @@ -2034,6 +2034,9 @@ static uint32_t get_allowed_dc_mask(const struct drm_i915_private *dev_priv, mask = 0; } + if (!i915.disable_power_well) + max_dc = 0; + if (enable_dc >= 0 && enable_dc <= max_dc) { requested_dc = enable_dc; } else if (enable_dc == -1) { |