aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3123-drm-amd-display-Refactor-remove-mpcc-processing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3123-drm-amd-display-Refactor-remove-mpcc-processing.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3123-drm-amd-display-Refactor-remove-mpcc-processing.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3123-drm-amd-display-Refactor-remove-mpcc-processing.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3123-drm-amd-display-Refactor-remove-mpcc-processing.patch
new file mode 100644
index 00000000..fb33893b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3123-drm-amd-display-Refactor-remove-mpcc-processing.patch
@@ -0,0 +1,62 @@
+From caf1268a86537b065e02a464f7ea15be81a30200 Mon Sep 17 00:00:00 2001
+From: Yongqiang Sun <yongqiang.sun@amd.com>
+Date: Fri, 22 Dec 2017 12:05:25 -0500
+Subject: [PATCH 3123/4131] drm/amd/display: Refactor remove mpcc processing.
+
+No need to use loop find opp, use opp in stream_res.
+
+Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+---
+ .../gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 19 +++++--------------
+ 1 file changed, 5 insertions(+), 14 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+index b03ffff..8b6c249 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+@@ -580,26 +580,19 @@ static void plane_atomic_disconnect(struct dc *dc, struct pipe_ctx *pipe_ctx)
+ struct hubp *hubp = pipe_ctx->plane_res.hubp;
+ int dpp_id = pipe_ctx->plane_res.dpp->inst;
+ struct mpc *mpc = dc->res_pool->mpc;
+- int pipe_idx;
+ struct mpc_tree *mpc_tree_params;
+ struct mpcc *mpcc_to_remove = NULL;
++ struct output_pixel_processor *opp = pipe_ctx->stream_res.opp;
+
+- /* look at tree rather than mi here to know if we already reset */
+- for (pipe_idx = 0; pipe_idx < dc->res_pool->pipe_count; pipe_idx++) {
+- struct output_pixel_processor *opp = dc->res_pool->opps[pipe_idx];
+-
+- mpc_tree_params = &(opp->mpc_tree_params);
+- mpcc_to_remove = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, dpp_id);
+- if (mpcc_to_remove != NULL)
+- break;
+- }
++ mpc_tree_params = &(opp->mpc_tree_params);
++ mpcc_to_remove = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, dpp_id);
+
+ /*Already reset*/
+- if (pipe_idx == dc->res_pool->pipe_count)
++ if (mpcc_to_remove == NULL)
+ return;
+
+ mpc->funcs->remove_mpcc(mpc, mpc_tree_params, mpcc_to_remove);
+- dc->res_pool->opps[pipe_idx]->mpcc_disconnect_pending[pipe_ctx->plane_res.mpcc_inst] = true;
++ opp->mpcc_disconnect_pending[pipe_ctx->plane_res.mpcc_inst] = true;
+
+ dc->optimized_required = true;
+
+@@ -975,8 +968,6 @@ static void dcn10_pipe_control_lock(
+ struct pipe_ctx *pipe,
+ bool lock)
+ {
+- struct hubp *hubp = NULL;
+- hubp = dc->res_pool->hubps[pipe->pipe_idx];
+ /* use TG master update lock to lock everything on the TG
+ * therefore only top pipe need to lock
+ */
+--
+2.7.4
+