diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2015-10-22 13:56:34 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-11-02 09:55:34 +0200 |
commit | b10f1b20171945b49988b2b1fe68cb312cc36d32 (patch) | |
tree | 298ae1d2405b76fb3bb01227102d9ede109d620a /drivers/gpu/drm/i915/intel_pm.c | |
parent | 6675bce251b6ec20ec09c07e941d9f664be4ae58 (diff) | |
download | op-kernel-dev-b10f1b20171945b49988b2b1fe68cb312cc36d32.zip op-kernel-dev-b10f1b20171945b49988b2b1fe68cb312cc36d32.tar.gz |
drm/i915/skl: Prevent unclaimed register writes on skylake.
I'm getting unclaimed register writes when checking the WM registers
after the crtc is disabled. So I would imagine those are guarded by
the crtc power well. Fix this by not reading out wm state when the
power well is off.
Cc: stable@vger.kernel.org # v4.3
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92181
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 80175a3..d52a15d 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -2818,7 +2818,12 @@ void skl_ddb_get_hw_state(struct drm_i915_private *dev_priv, int plane; u32 val; + memset(ddb, 0, sizeof(*ddb)); + for_each_pipe(dev_priv, pipe) { + if (!intel_display_power_is_enabled(dev_priv, POWER_DOMAIN_PIPE(pipe))) + continue; + for_each_plane(dev_priv, pipe, plane) { val = I915_READ(PLANE_BUF_CFG(pipe, plane)); skl_ddb_entry_init_from_hw(&ddb->plane[pipe][plane], |