aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3833-drm-amd-display-fix-global-sync-param-extraction-ind.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3833-drm-amd-display-fix-global-sync-param-extraction-ind.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3833-drm-amd-display-fix-global-sync-param-extraction-ind.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3833-drm-amd-display-fix-global-sync-param-extraction-ind.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3833-drm-amd-display-fix-global-sync-param-extraction-ind.patch
new file mode 100644
index 00000000..85072d4a
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3833-drm-amd-display-fix-global-sync-param-extraction-ind.patch
@@ -0,0 +1,34 @@
+From 2714e4e91ba4706ae8646d6409ad3b49968455aa Mon Sep 17 00:00:00 2001
+From: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Date: Fri, 23 Aug 2019 14:22:40 -0400
+Subject: [PATCH 3833/4256] drm/amd/display: fix global sync param extraction
+ indexing
+
+dcn20_calculate_dlg_params was incorrectly indexing pipe src and
+dst structs when extracting global sync params.
+
+Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
+Reviewed-by: Jaehyun Chung <Jaehyun.Chung@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+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 9aceb159bef5..49a147661cd4 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
+@@ -2638,8 +2638,8 @@ void dcn20_calculate_dlg_params(
+ continue;
+
+ if (!visited[pipe_idx]) {
+- display_pipe_source_params_st *src = &pipes[pipe_idx_unsplit].pipe.src;
+- display_pipe_dest_params_st *dst = &pipes[pipe_idx_unsplit].pipe.dest;
++ display_pipe_source_params_st *src = &pipes[pipe_idx].pipe.src;
++ display_pipe_dest_params_st *dst = &pipes[pipe_idx].pipe.dest;
+
+ dst->vstartup_start = context->bw_ctx.dml.vba.VStartup[pipe_idx_unsplit];
+ dst->vupdate_offset = context->bw_ctx.dml.vba.VUpdateOffsetPix[pipe_idx_unsplit];
+--
+2.17.1
+