Skip to content

Commit

Permalink
drm/amd/display: Update DP HPO MSA with colorimetry from test request
Browse files Browse the repository at this point in the history
[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 <[email protected]>
Acked-by: Hersen Wu <[email protected]>
Signed-off-by: George Shen <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
  • Loading branch information
George Shen authored and alexdeucher committed Nov 7, 2023
1 parent f031ba1 commit 81df727
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,7 @@ bool dp_set_test_pattern(
const unsigned char *p_custom_pattern,
unsigned int cust_pattern_size)
{
const struct link_hwss *link_hwss;
struct pipe_ctx *pipes = link->dc->current_state->res_ctx.pipe_ctx;
struct pipe_ctx *pipe_ctx = NULL;
unsigned int lane;
Expand Down Expand Up @@ -834,11 +835,9 @@ bool dp_set_test_pattern(

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

if (pipe_ctx->stream->use_vsc_sdp_for_colorimetry) {
if (test_pattern == DP_TEST_PATTERN_COLOR_SQUARES_CEA)
Expand Down

0 comments on commit 81df727

Please sign in to comment.