aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2322-drm-amd-display-do-not-reset-lane-count-in-EQ-fallba.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2322-drm-amd-display-do-not-reset-lane-count-in-EQ-fallba.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2322-drm-amd-display-do-not-reset-lane-count-in-EQ-fallba.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2322-drm-amd-display-do-not-reset-lane-count-in-EQ-fallba.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2322-drm-amd-display-do-not-reset-lane-count-in-EQ-fallba.patch
new file mode 100644
index 00000000..af8eed01
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2322-drm-amd-display-do-not-reset-lane-count-in-EQ-fallba.patch
@@ -0,0 +1,36 @@
+From 6c1edb07b1df1854401bad2623d01f67c41d4b0a Mon Sep 17 00:00:00 2001
+From: Wenjing Liu <Wenjing.Liu@amd.com>
+Date: Wed, 23 Aug 2017 17:02:34 -0400
+Subject: [PATCH 2322/4131] drm/amd/display: do not reset lane count in EQ
+ fallback
+
+[Description]
+According to DP1.4 specs we should not reset lane count back
+when falling back in failing EQ training.
+This causes PHY test pattern compliance to fail as infinite LT
+when LT fails EQ to 4 RBR and fails CR in a loop.
+
+Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+index e19447d..446e293 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+@@ -1302,8 +1302,6 @@ bool decide_fallback_link_setting(
+ current_link_setting->lane_count);
+ } else if (!reached_minimum_link_rate
+ (current_link_setting->link_rate)) {
+- current_link_setting->lane_count =
+- initial_link_settings.lane_count;
+ current_link_setting->link_rate =
+ reduce_link_rate(
+ current_link_setting->link_rate);
+--
+2.7.4
+