drm/amd/display: Update ABM crtc state on non-modeset
authorDavid Francis <David.Francis@amd.com>
Mon, 4 Mar 2019 15:31:31 +0000 (10:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:50 +0000 (06:43 -0700)
[ Upstream commit b05e2c5e81f9a0be4a145e0926b1dfe62f6347d4 ]

[Why]
Somewhere in the atomic check reshuffle ABM got lost.
ABM is a crtc property (copied from a connector property).
It can change without a modeset, just like underscan.

[How]
In the skip_modeset branch of atomic check crtc updates,
copy over the abm property.

Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 66f19d1864b173a955f8f1062e41c4a97a98897b..c212bff457eec1383cb1816ba64253799474682d 100644 (file)
@@ -5661,6 +5661,9 @@ static int dm_update_crtc_state(struct amdgpu_display_manager *dm,
                update_stream_scaling_settings(
                        &new_crtc_state->mode, dm_new_conn_state, dm_new_crtc_state->stream);
 
+       /* ABM settings */
+       dm_new_crtc_state->abm_level = dm_new_conn_state->abm_level;
+
        /*
         * Color management settings. We also update color properties
         * when a modeset is needed, to ensure it gets reprogrammed.