[Why] This patch is for fixing Navi14 pink screen issue. With this patch, stream->link->link_enc->funcs->setup will be called twice: this will make sure GC_SEND is set to 1. Though we still need to look into why the issue only happens on Linux, but not on Windows side. [How] Call stream->link->link_enc->funcs->setup twice. Signed-off-by: Zhan liu <zhan.liu@xxxxxxx> --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index 935053664160..8683e8613ec2 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2842,6 +2842,12 @@ void core_link_enable_stream( CONTROLLER_DP_TEST_PATTERN_VIDEOMODE, COLOR_DEPTH_UNDEFINED); + /* Hack on Navi14: fixes Navi14 HDMI pink screen issue */ + if (!dc_is_virtual_signal(pipe_ctx->stream->signal)) + stream->link->link_enc->funcs->setup( + stream->link->link_enc, + pipe_ctx->stream->signal); + #ifdef CONFIG_DRM_AMD_DC_DSC_SUPPORT if (pipe_ctx->stream->timing.flags.DSC) { if (dc_is_dp_signal(pipe_ctx->stream->signal) || -- 2.17.0 _______________________________________________ amd-gfx mailing list https://lists.freedesktop.org/mailman/listinfo/amd-gfx amd-gfx@xxxxxxxxxxxxxxxxxxxxx _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx