]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Fix incorrect DCN401 comparison
authorAlex Hung <alex.hung@amd.com>
Wed, 8 May 2024 19:48:12 +0000 (13:48 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 May 2024 20:19:34 +0000 (16:19 -0400)
The comparisons intend to be DCN401 inclusive, and fix it by adding
equal signs.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@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 ae04937e60b0078be1afff073d6128d36c989a99..518164dd9c3cc89467e12ab45158369fb4fe946f 100644 (file)
@@ -5104,7 +5104,7 @@ 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)
                return update_planes_and_stream_v3(dc, srf_updates,
                                surface_count, stream, stream_update);
        return update_planes_and_stream_v2(dc, srf_updates,
@@ -5124,7 +5124,7 @@ void dc_commit_updates_for_stream(struct dc *dc,
         * we get more confident about this change we'll need to enable
         * the new sequence for all ASICs.
         */
-       if (dc->ctx->dce_version > DCN_VERSION_4_01) {
+       if (dc->ctx->dce_version >= DCN_VERSION_4_01) {
                update_planes_and_stream_v3(dc, srf_updates, surface_count,
                                stream, stream_update);
                return;