drm/amd/display: add infoframe update sequence debug trace
authorLeo (Hanghong) Ma <hanghong.ma@amd.com>
Fri, 28 Jan 2022 14:03:58 +0000 (22:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Feb 2022 23:26:31 +0000 (18:26 -0500)
[Why]
We find some of the driver sequence debug trace for infoframe
update is missing so add it.

[How]
Add the missing sequence debug trace for infoframe update.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Martin Leung <Martin.Leung@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 0b8811ef371786592f54c0d2aafc58de17f38a7d..e1dee42652ba0d83b7cac96e2fe675068a3c54ad 100644 (file)
@@ -2713,6 +2713,9 @@ static void commit_planes_do_stream_update(struct dc *dc,
                                        stream_update->vsp_infopacket) {
                                resource_build_info_frame(pipe_ctx);
                                dc->hwss.update_info_frame(pipe_ctx);
+
+                               if (dc_is_dp_signal(pipe_ctx->stream->signal))
+                                       dp_source_sequence_trace(pipe_ctx->stream->link, DPCD_SOURCE_SEQ_AFTER_UPDATE_INFO_FRAME);
                        }
 
                        if (stream_update->hdr_static_metadata &&