aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3721-drm-amd-display-verify-stream-link-before-link-test.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3721-drm-amd-display-verify-stream-link-before-link-test.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3721-drm-amd-display-verify-stream-link-before-link-test.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3721-drm-amd-display-verify-stream-link-before-link-test.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3721-drm-amd-display-verify-stream-link-before-link-test.patch
new file mode 100644
index 00000000..c070e7b8
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3721-drm-amd-display-verify-stream-link-before-link-test.patch
@@ -0,0 +1,37 @@
+From da31b0384a98b84fa4ff9d9e7da6e54d34f29f0d Mon Sep 17 00:00:00 2001
+From: Jing Zhou <Jing.Zhou@amd.com>
+Date: Thu, 22 Aug 2019 14:26:33 +0800
+Subject: [PATCH 3721/4256] drm/amd/display: verify stream link before link
+ test
+
+[Why]
+DP1.2 LL CTS test failure.
+
+[How]
+The failure is caused by not verify stream link is equal
+to link, only check stream and link is not null.
+
+Signed-off-by: Jing Zhou <Jing.Zhou@amd.com>
+Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
+Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
+index 79438c4f1e20..a519dbc5ecb6 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
+@@ -277,7 +277,8 @@ void dp_retrain_link_dp_test(struct dc_link *link,
+ if (pipes[i].stream != NULL &&
+ !pipes[i].top_pipe && !pipes[i].prev_odm_pipe &&
+ pipes[i].stream->link != NULL &&
+- pipes[i].stream_res.stream_enc != NULL) {
++ pipes[i].stream_res.stream_enc != NULL &&
++ pipes[i].stream->link == link) {
+ udelay(100);
+
+ pipes[i].stream_res.stream_enc->funcs->dp_blank(
+--
+2.17.1
+