drm/amd/display: Avoid full modeset when not required
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Fri, 28 Jul 2017 17:11:00 +0000 (13:11 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:16:01 +0000 (18:16 -0400)
commit9b690ef3c70422cdcd0cf912db33f2c92ef4a53f
tree85ad2a4cc10b8ef3a765aa92dd62a8607b6f5ff1
parentd54d29db47cdbe1f26776f2d03320ca56c5271fa
drm/amd/display: Avoid full modeset when not required

Fix IGT test case (kms_atomic_transition)
-DRM sets the mode_changed flag, while we don't need to do a full
 modeset.
-We want to override the mode_changed flag in this case

If we don't do this, we will still bypass the modeset in DC. This will
fail to update the new stream_status, causing nullptr at a later stage
when trying to access stream_status"

We now avoid this by discarding the new_stream instead of partially
filling it.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c