Thx! Will do it. Zhan
From: Kazlauskas, Nicholas <nicholas.kazlaus...@amd.com> Sent: 2019/October/17, Thursday 4:51 PM To: Liu, Zhan <zhan....@amd.com>; amd-gfx@lists.freedesktop.org Subject: Re: [PATCH v2] drm/amd/display: Modify display link stream setup sequence. This is actually setting DIG mode a second time, right? I don't think this is what sets GC_SEND. Please mention that this is setting the DIG_MODE to the correct value after having been overridden by the call to transmitter control in your patch description. Also correct the HACK comment to mention that this second call is needed to reconfigure the DIG as a workaround for the incorrect value being applied from transmitter control. Specifics help in source. I don't think there is a case where we'd want HDMI changed to DVI so it's probably fine to leave this as is for now... With those fixed, you can add my: Reviewed-by: Nicholas Kazlauskas <nicholas.kazlaus...@amd.com<mailto:nicholas.kazlaus...@amd.com>> Thanks, Nicholas Kazlauskas ________________________________ From: amd-gfx <amd-gfx-boun...@lists.freedesktop.org<mailto:amd-gfx-boun...@lists.freedesktop.org>> on behalf of Liu, Zhan <zhan....@amd.com<mailto:zhan....@amd.com>> Sent: Thursday, October 17, 2019, 3:04 PM To: amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org>; Liu, Zhan Subject: [PATCH v2] drm/amd/display: Modify display link stream setup sequence. [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....@amd.com<mailto:zhan....@amd.com>> --- 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@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org> _______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org<mailto:amd-gfx@lists.freedesktop.org> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________ amd-gfx mailing list amd-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/amd-gfx