Commit bf9a496a authored by Rodrigo Vivi's avatar Rodrigo Vivi

drm/i915/cnl: Also need power well sanitize.

The workaround added in
commit c6782b76 ("drm/i915/gen9: Reset secondary power well
equests left on by DMC/KVMR")
needs to be applied on Cannonlake as well.

So let's assume any platform using this power well setup
will also need and let's just go ahead and remove if condition.

Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1496781040-20888-11-git-send-email-rodrigo.vivi@intel.com
parent 8bcd3dd4
...@@ -853,8 +853,7 @@ static void skl_set_power_well(struct drm_i915_private *dev_priv, ...@@ -853,8 +853,7 @@ static void skl_set_power_well(struct drm_i915_private *dev_priv,
DRM_DEBUG_KMS("Disabling %s\n", power_well->name); DRM_DEBUG_KMS("Disabling %s\n", power_well->name);
} }
if (IS_GEN9(dev_priv)) gen9_sanitize_power_well_requests(dev_priv, power_well);
gen9_sanitize_power_well_requests(dev_priv, power_well);
} }
if (wait_for(!!(I915_READ(HSW_PWR_WELL_DRIVER) & state_mask) == enable, if (wait_for(!!(I915_READ(HSW_PWR_WELL_DRIVER) & state_mask) == enable,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment