[PATCH] drm/amd/display: Add ENGINE_ID_DIGD condition check for Navi14
Wu, Hersen
hersenxs.wu at amd.com
Sat Nov 2 01:23:19 UTC 2019
Hi Zhan,
The function is shared by NV10,12,14.
Please add ASIC ID check for the DIG D skip.
Thanks!
Hersen
-----Original Message-----
From: Liu, Zhan <Zhan.Liu at amd.com>
Sent: Friday, November 1, 2019 9:18 PM
To: amd-gfx at lists.freedesktop.org; Kazlauskas, Nicholas <Nicholas.Kazlauskas at amd.com>; Lakha, Bhawanpreet <Bhawanpreet.Lakha at amd.com>; Li, Roman <Roman.Li at amd.com>; Liu, Zhan <Zhan.Liu at amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira at amd.com>; Wentland, Harry <Harry.Wentland at amd.com>; Wu, Hersen <hersenxs.wu at amd.com>; Zuo, Jerry <Jerry.Zuo at amd.com>
Cc: Yeh, Eagle <Eagle.Yeh at amd.com>; Lazare, Jordan <Jordan.Lazare at amd.com>
Subject: [PATCH] drm/amd/display: Add ENGINE_ID_DIGD condition check for Navi14
From: Zhan liu <zhan.liu at amd.com>
Date: Fri, 1 Nov 2019 21:10:17 -0400
Subject: [PATCH] drm/amd/display: Add ENGINE_ID_DIGD condition check for Navi14
[Why]
Navi10 has 6 PHY, but Navi14 only has 5 PHY, that is because there is no ENGINE_ID_DIGD in Navi14. Without this patch, many HDMI related issues (e.g. HDMI S3 resume failure, HDMI pink screen on boot) will be observed.
[How]
If eng_id is larger than ENGINE_ID_DIGD, then add eng_id by 1.
Signed-off-by: Zhan liu <zhan.liu at amd.com>
---
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
index 924c2e303588..cf886483e380 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
@@ -1152,6 +1152,9 @@ struct stream_encoder *dcn20_stream_encoder_create(
if (!enc1)
return NULL;
+ if (eng_id >= ENGINE_ID_DIGD)
+ eng_id++;
+
dcn20_stream_encoder_construct(enc1, ctx, ctx->dc_bios, eng_id,
&stream_enc_regs[eng_id],
&se_shift, &se_mask);
--
2.21.0
_______________________________________________
amd-gfx mailing list
amd-gfx at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
More information about the amd-gfx
mailing list