Skip to content

Commit ab0cb02

Browse files
Paul Hsiehalexdeucher
authored andcommitted
drm/amd/display: VBIOS can't be light up HDMI when restart system
[Why] VBIOS will not post pixel rate > 340MHz. If driver set pixel rate > 340MHz and do restart bottom, VBIOS can't post HDMI monitor due to monitor is stay in HDMI2.0 state. [How] Program Scrambling_Enable and TMDS_Bit_Clock_Ratio when disable stream. Signed-off-by: Paul Hsieh <paul.hsieh@amd.com> Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent db64a2f commit ab0cb02

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,12 +2660,18 @@ void core_link_enable_stream(
26602660
void core_link_disable_stream(struct pipe_ctx *pipe_ctx, int option)
26612661
{
26622662
struct dc *core_dc = pipe_ctx->stream->ctx->dc;
2663+
struct dc_stream_state *stream = pipe_ctx->stream;
26632664

26642665
core_dc->hwss.blank_stream(pipe_ctx);
26652666

26662667
if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST)
26672668
deallocate_mst_payload(pipe_ctx);
26682669

2670+
if (dc_is_hdmi_signal(pipe_ctx->stream->signal))
2671+
dal_ddc_service_write_scdc_data(
2672+
stream->link->ddc, 0,
2673+
stream->timing.flags.LTE_340MCSC_SCRAMBLE);
2674+
26692675
core_dc->hwss.disable_stream(pipe_ctx, option);
26702676

26712677
disable_link(pipe_ctx->stream->link, pipe_ctx->stream->signal);

0 commit comments

Comments
 (0)