On Wed, Feb 24, 2016 at 07:57:45PM +0200, Imre Deak wrote: > 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@xxxxxxxxxxxxxxx> > Signed-off-by: Imre Deak <imre.deak@xxxxxxxxx> Reviewed-by: Patrik Jakobsson <patrik.jakobsson@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c > index 88df99e..7f65d5f 100644 > --- a/drivers/gpu/drm/i915/intel_runtime_pm.c > +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c > @@ -2030,6 +2030,9 @@ static uint32_t get_allowed_dc_mask(const struct drm_i915_private *dev_priv, > if (!HAS_CSR(dev_priv)) > return mask; > > + if (!i915.disable_power_well) > + return mask; > + > mask |= DC_STATE_EN_UPTO_DC5; > if (IS_SKYLAKE(dev_priv) || IS_KABYLAKE(dev_priv)) { > mask |= DC_STATE_EN_UPTO_DC6; > -- > 2.5.0 > -- --- Intel Sweden AB Registered Office: Knarrarnasgatan 15, 164 40 Kista, Stockholm, Sweden Registration Number: 556189-6027 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx