diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4307-drm-amd-display-Add-ENGINE_ID_DIGD-condition-check-f.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4307-drm-amd-display-Add-ENGINE_ID_DIGD-condition-check-f.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4307-drm-amd-display-Add-ENGINE_ID_DIGD-condition-check-f.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4307-drm-amd-display-Add-ENGINE_ID_DIGD-condition-check-f.patch new file mode 100644 index 00000000..8445299a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4307-drm-amd-display-Add-ENGINE_ID_DIGD-condition-check-f.patch @@ -0,0 +1,42 @@ +From e222a82077c62b125dd397a7da2167f63674d7fc Mon Sep 17 00:00:00 2001 +From: Zhan liu <zhan.liu@amd.com> +Date: Fri, 1 Nov 2019 22:42:41 -0400 +Subject: [PATCH 4307/4736] 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@amd.com> +Reviewed-by: Hersen Wu <hersenxs.wu@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 5 +++++ + 1 file changed, 5 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 d1c7e10cb722..ef43faa09eb3 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +@@ -1150,6 +1150,11 @@ struct stream_encoder *dcn20_stream_encoder_create( + if (!enc1) + return NULL; + ++ if (ASICREV_IS_NAVI14_M(ctx->asic_id.hw_internal_rev)) { ++ 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.17.1 + |