aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2769-drm-amd-display-Move-update_plane_addr-to-apply_ctx_.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2769-drm-amd-display-Move-update_plane_addr-to-apply_ctx_.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2769-drm-amd-display-Move-update_plane_addr-to-apply_ctx_.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2769-drm-amd-display-Move-update_plane_addr-to-apply_ctx_.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2769-drm-amd-display-Move-update_plane_addr-to-apply_ctx_.patch
new file mode 100644
index 00000000..a2a043d7
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2769-drm-amd-display-Move-update_plane_addr-to-apply_ctx_.patch
@@ -0,0 +1,51 @@
+From 346e5b61db2fa6848e59aea9c67facf202486fd4 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Thu, 9 Nov 2017 13:55:46 -0500
+Subject: [PATCH 2769/4131] drm/amd/display: Move update_plane_addr to
+ apply_ctx_for_surface for dce.
+
+Move update_plane_addr to apply_ctx_for_surface, address update will
+just be called once, not twice for updat type is full and medium.
+This will reduce some reg access and duration time.
+
+Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++--
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 +++
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index d4519a4..8cad8bb 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -1275,8 +1275,8 @@ static void commit_planes_for_stream(struct dc *dc,
+ if (pipe_ctx->plane_state != plane_state)
+ continue;
+
+- if (srf_updates[i].flip_addr)
+- dc->hwss.update_plane_addr(dc, pipe_ctx);
++ if (update_type == UPDATE_TYPE_FAST && srf_updates[i].flip_addr)
++ dc->hwss.update_plane_addr(dc, pipe_ctx);
+ }
+ }
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+index ee3b944..6376245 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+@@ -2879,6 +2879,9 @@ static void dce110_apply_ctx_for_surface(
+ context->stream_count);
+
+ dce110_program_front_end_for_pipe(dc, pipe_ctx);
++
++ dc->hwss.update_plane_addr(dc, pipe_ctx);
++
+ program_surface_visibility(dc, pipe_ctx);
+
+ }
+--
+2.7.4
+