aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-05-29 20:58:31 -0400
committerDave Airlie <airlied@redhat.com>2018-05-29 20:58:31 -0400
commit2b85352e3b08159c9d5c82144d05767a00169f9d (patch)
treeceb7f9b1b0d16f40bb1381fa371ac3191c325130
parentebb442bb35e8c35eb765b04423b28392b4df7a04 (diff)
parent20fa2ff0441eabc8e6263b428191228d9599ea9d (diff)
Merge branch 'drm-fixes-4.17' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
One last fix for 4.17. Fix a suspend regression in DC. * 'drm-fixes-4.17' of git://people.freedesktop.org/~agd5f/linux: drm/amd/display: Fix BUG_ON during CRTC atomic check update
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 1dd1142246c2..ad1ad333012a 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -4695,15 +4695,16 @@ next_crtc:
4695 * We want to do dc stream updates that do not require a 4695 * We want to do dc stream updates that do not require a
4696 * full modeset below. 4696 * full modeset below.
4697 */ 4697 */
4698 if (!enable || !aconnector || modereset_required(new_crtc_state)) 4698 if (!(enable && aconnector && new_crtc_state->enable &&
4699 new_crtc_state->active))
4699 continue; 4700 continue;
4700 /* 4701 /*
4701 * Given above conditions, the dc state cannot be NULL because: 4702 * Given above conditions, the dc state cannot be NULL because:
4702 * 1. We're attempting to enable a CRTC. Which has a... 4703 * 1. We're in the process of enabling CRTCs (just been added
4703 * 2. Valid connector attached, and 4704 * to the dc context, or already is on the context)
4704 * 3. User does not want to reset it (disable or mark inactive, 4705 * 2. Has a valid connector attached, and
4705 * which can happen on a CRTC that's already disabled). 4706 * 3. Is currently active and enabled.
4706 * => It currently exists. 4707 * => The dc stream state currently exists.
4707 */ 4708 */
4708 BUG_ON(dm_new_crtc_state->stream == NULL); 4709 BUG_ON(dm_new_crtc_state->stream == NULL);
4709 4710