diff options
author | Lyude <cpaul@redhat.com> | 2016-08-17 15:55:57 -0400 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2016-08-22 06:54:41 -0400 |
commit | 05a76d3d6ad1ee9f9814f88949cc9305fc165460 (patch) | |
tree | 417f8586b416a97323b4f5c2a04a846f0535fc60 /drivers/gpu | |
parent | 2722efb90b3420dee54b4cb3cdc7917efacc2dce (diff) |
drm/i915/skl: Ensure pipes with changed wms get added to the state
If we're enabling a pipe, we'll need to modify the watermarks on all
active planes. Since those planes won't be added to the state on
their own, we need to add them ourselves.
Signed-off-by: Lyude <cpaul@redhat.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Cc: stable@vger.kernel.org
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Radhakrishna Sripada <radhakrishna.sripada@intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471463761-26796-6-git-send-email-cpaul@redhat.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index 177fdf3194f7..5e3f17059bed 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c | |||
@@ -4112,6 +4112,10 @@ skl_compute_ddb(struct drm_atomic_state *state) | |||
4112 | ret = skl_allocate_pipe_ddb(cstate, ddb); | 4112 | ret = skl_allocate_pipe_ddb(cstate, ddb); |
4113 | if (ret) | 4113 | if (ret) |
4114 | return ret; | 4114 | return ret; |
4115 | |||
4116 | ret = drm_atomic_add_affected_planes(state, &intel_crtc->base); | ||
4117 | if (ret) | ||
4118 | return ret; | ||
4115 | } | 4119 | } |
4116 | 4120 | ||
4117 | return 0; | 4121 | return 0; |