aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3053-drm-amd-display-Change-min_h_sync_width-from-8-to-4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3053-drm-amd-display-Change-min_h_sync_width-from-8-to-4.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3053-drm-amd-display-Change-min_h_sync_width-from-8-to-4.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3053-drm-amd-display-Change-min_h_sync_width-from-8-to-4.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3053-drm-amd-display-Change-min_h_sync_width-from-8-to-4.patch
new file mode 100644
index 00000000..a4173401
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3053-drm-amd-display-Change-min_h_sync_width-from-8-to-4.patch
@@ -0,0 +1,41 @@
+From e64143d2703ef981b8119c6f3db77fc939639300 Mon Sep 17 00:00:00 2001
+From: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
+Date: Fri, 21 Jun 2019 17:44:50 -0400
+Subject: [PATCH 3053/4256] drm/amd/display: Change min_h_sync_width from 8 to
+ 4
+
+[Why]
+Some display's hsync width is lower than the minimum dcn20 is set
+to support right now. This will cause optc1_validate_timing to fail which
+eventually will result in wrong set mode. This was set to 8 as per
+HW team's request for no valid reason.
+
+[How]
+Changing min_h_sync_width to 4 will let us validate timing for
+preffered mode and light up the headset. This change was made
+to Vega 10 before for a similar issue.
+
+Signed-off-by: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
+Reviewed-by: Joshua Aberback <Joshua.Aberback@amd.com>
+Acked-by: Aric Cyr <Aric.Cyr@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
+index 26a66ccf6e72..1ae973962d53 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
+@@ -535,7 +535,7 @@ void dcn20_timing_generator_init(struct optc *optc1)
+ optc1->min_h_blank = 32;
+ optc1->min_v_blank = 3;
+ optc1->min_v_blank_interlace = 5;
+- optc1->min_h_sync_width = 8;
++ optc1->min_h_sync_width = 4;// Minimum HSYNC = 8 pixels asked By HW in the first place for no actual reason. Oculus Rift S will not light up with 8 as it's hsyncWidth is 6. Changing it to 4 to fix that issue.
+ optc1->min_v_sync_width = 1;
+ optc1->comb_opp_id = 0xf;
+ }
+--
+2.17.1
+