]> git.dujemihanovic.xyz Git - linux.git/commitdiff
drm/amd/display: add log for automated test
authorQingqing Zhuo <qingqing.zhuo@amd.com>
Thu, 18 Mar 2021 18:37:06 +0000 (14:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:48:57 +0000 (16:48 -0400)
[Why&How]
Add log for easier debug purposes.

Signed-off-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 0b8082a15e24848ab3ae02cf69697a5363fe95c0..7d2e433c227563a9b2fc3885dc0a3279a908e7d9 100644 (file)
@@ -2902,6 +2902,10 @@ static void dp_test_send_link_test_pattern(struct dc_link *link)
 
        if (requestColorDepth != COLOR_DEPTH_UNDEFINED
                        && pipe_ctx->stream->timing.display_color_depth != requestColorDepth) {
+               DC_LOG_DEBUG("%s: original bpc %d, changing to %d\n",
+                               __func__,
+                               pipe_ctx->stream->timing.display_color_depth,
+                               requestColorDepth);
                pipe_ctx->stream->timing.display_color_depth = requestColorDepth;
                dp_update_dsc_config(pipe_ctx);
        }