]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Fix Coverity change for visual confirm
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Thu, 19 Sep 2024 19:19:29 +0000 (15:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:23:23 +0000 (11:23 -0400)
[Why && How]
Previous change for Coverity has caused regression on visual confirm
so fix it by reverting the part that affects visual confirm.

Reviewed-by: Chris Park <chris.park@amd.com>
Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Signed-off-by: Roman Li <roman.li@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/dc_dmub_srv.c

index 9291f078ffde79dd89615756c2e643c868c09ca1..8486c144d81ca32e0806c9ab9d117896902bde9d 100644 (file)
@@ -519,7 +519,8 @@ void dc_dmub_srv_get_visual_confirm_color_cmd(struct dc *dc, struct pipe_ctx *pi
        union dmub_rb_cmd cmd = { 0 };
        unsigned int panel_inst = 0;
 
-       if (!dc_get_edp_link_panel_inst(dc, pipe_ctx->stream->link, &panel_inst))
+       if (!dc_get_edp_link_panel_inst(dc, pipe_ctx->stream->link, &panel_inst) &&
+                       dc->debug.visual_confirm == VISUAL_CONFIRM_DISABLE)
                return;
 
        memset(&cmd, 0, sizeof(cmd));