]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Set DCN32 to use update planes and stream version 3
authorNicholas Carbones <Nicholas.Carbones@amd.com>
Fri, 3 Oct 2025 22:36:18 +0000 (18:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Oct 2025 22:26:19 +0000 (18:26 -0400)
[Why]
Old minimal transition does not always wait for updates to complete
before proceeding, which can lead to corruption in multi display
scenarios for DCN32.

[How]
Set DCN32 to use update_planes_and_stream_v3 for better pipe transition
handling.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Nicholas Carbones <Nicholas.Carbones@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 36b046611d02b0e5d9e2aede12901bfe6379cc88..4c964cf28f685fb4b46e236dad069f7f483a7407 100644 (file)
@@ -5376,7 +5376,8 @@ bool dc_update_planes_and_stream(struct dc *dc,
         * specially handle compatibility problems with transitions among those
         * features as they are now transparent to the new sequence.
         */
-       if (dc->ctx->dce_version >= DCN_VERSION_4_01)
+       if (dc->ctx->dce_version >= DCN_VERSION_4_01 || dc->ctx->dce_version == DCN_VERSION_3_2 ||
+                       dc->ctx->dce_version == DCN_VERSION_3_21)
                ret = update_planes_and_stream_v3(dc, srf_updates,
                                surface_count, stream, stream_update);
        else