Skip to content

Commit 81df727

Browse files
George Shenalexdeucher
authored andcommitted
drm/amd/display: Update DP HPO MSA with colorimetry from test request
[Why] Some DP link layer tests request a different colorimetry than the default one that is used. Currently, our test automation logic does not update the MSA with the test request value for DP HPO case. [How] Update HPO MSA colorimetry with test automation request value. Reviewed-by: Wenjing Liu <wenjing.liu@amd.com> Acked-by: Hersen Wu <hersenxs.wu@amd.com> Signed-off-by: George Shen <george.shen@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent f031ba1 commit 81df727

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ bool dp_set_test_pattern(
598598
const unsigned char *p_custom_pattern,
599599
unsigned int cust_pattern_size)
600600
{
601+
const struct link_hwss *link_hwss;
601602
struct pipe_ctx *pipes = link->dc->current_state->res_ctx.pipe_ctx;
602603
struct pipe_ctx *pipe_ctx = NULL;
603604
unsigned int lane;
@@ -834,11 +835,9 @@ bool dp_set_test_pattern(
834835

835836
pipe_ctx->stream_res.tg->funcs->lock(pipe_ctx->stream_res.tg);
836837
/* update MSA to requested color space */
837-
pipe_ctx->stream_res.stream_enc->funcs->dp_set_stream_attribute(pipe_ctx->stream_res.stream_enc,
838-
&pipe_ctx->stream->timing,
839-
color_space,
840-
pipe_ctx->stream->use_vsc_sdp_for_colorimetry,
841-
link->dpcd_caps.dprx_feature.bits.SST_SPLIT_SDP_CAP);
838+
link_hwss = get_link_hwss(link, &pipe_ctx->link_res);
839+
pipe_ctx->stream->output_color_space = color_space;
840+
link_hwss->setup_stream_attribute(pipe_ctx);
842841

843842
if (pipe_ctx->stream->use_vsc_sdp_for_colorimetry) {
844843
if (test_pattern == DP_TEST_PATTERN_COLOR_SQUARES_CEA)

0 commit comments

Comments
 (0)