Skip to content

Commit cf04cdc

Browse files
Ivan Lipskigregkh
authored andcommitted
drm/amd/display: Allow DCN301 to clear update flags
commit 2d418e4 upstream. [Why & How] Not letting DCN301 to clear after surface/stream update results in artifacts when switching between active overlay planes. The issue is known and has been solved initially. See below: (https://gitlab.freedesktop.org/drm/amd/-/issues/3441) Fixes: f354556 ("drm/amd/display: limit clear_update_flags t dcn32 and above") Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Ivan Lipski <ivan.lipski@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ccc5a37 commit cf04cdc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • drivers/gpu/drm/amd/display/dc/core

drivers/gpu/drm/amd/display/dc/core/dc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5121,7 +5121,8 @@ bool dc_update_planes_and_stream(struct dc *dc,
51215121
else
51225122
ret = update_planes_and_stream_v2(dc, srf_updates,
51235123
surface_count, stream, stream_update);
5124-
if (ret && dc->ctx->dce_version >= DCN_VERSION_3_2)
5124+
if (ret && (dc->ctx->dce_version >= DCN_VERSION_3_2 ||
5125+
dc->ctx->dce_version == DCN_VERSION_3_01))
51255126
clear_update_flags(srf_updates, surface_count, stream);
51265127

51275128
return ret;

0 commit comments

Comments
 (0)