]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: limit clear_update_flags to dcn32 and above
authorCharlene Liu <Charlene.Liu@amd.com>
Thu, 26 Jun 2025 20:36:17 +0000 (16:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jul 2025 18:07:51 +0000 (14:07 -0400)
[why]
dc has some code out of sync:
dc_commit_updates_for_stream handles v1/v2/v3,
but dc_update_planes_and_stream makes v1 asic to use v2.

as a reression fix: limit clear_update_flags to dcn32 or newer asic.
need to follow up that v1 asic using v2 issue.

Reviewed-by: Syed Hassan <syed.hassan@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index f37ed24b2430524177305a25744674c491b645ab..cee45fe7cec9bac40734755323431c9dc7eb3c49 100644 (file)
@@ -5443,8 +5443,7 @@ bool dc_update_planes_and_stream(struct dc *dc,
        else
                ret = update_planes_and_stream_v2(dc, srf_updates,
                        surface_count, stream, stream_update);
-
-       if (ret)
+       if (ret && dc->ctx->dce_version >= DCN_VERSION_3_2)
                clear_update_flags(srf_updates, surface_count, stream);
 
        return ret;
@@ -5475,7 +5474,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
                ret = update_planes_and_stream_v1(dc, srf_updates, surface_count, stream,
                                stream_update, state);
 
-       if (ret)
+       if (ret && dc->ctx->dce_version >= DCN_VERSION_3_2)
                clear_update_flags(srf_updates, surface_count, stream);
 }