aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0737-drm-amd-display-Remove-the-check-to-see-if-pp_displa.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0737-drm-amd-display-Remove-the-check-to-see-if-pp_displa.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0737-drm-amd-display-Remove-the-check-to-see-if-pp_displa.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0737-drm-amd-display-Remove-the-check-to-see-if-pp_displa.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0737-drm-amd-display-Remove-the-check-to-see-if-pp_displa.patch
new file mode 100644
index 00000000..a5744666
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0737-drm-amd-display-Remove-the-check-to-see-if-pp_displa.patch
@@ -0,0 +1,43 @@
+From df79f020e59f55d6c2e14912b1f21375a342bdde Mon Sep 17 00:00:00 2001
+From: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
+Date: Fri, 19 Oct 2018 10:12:56 -0400
+Subject: [PATCH 0737/2940] drm/amd/display: Remove the check to see if
+ pp_display_cfg is changed
+
+[Why]
+When going to full-screen mode commit_planes_for_stream tries to decrease
+dcf_deep_sleep value, but safe_to_lower is false, so we don't send the new value
+to SMU but dc context gets updated.
+Later when dc_post_update_surfaces_to_stream tries to lower dcf_ds when
+safe_to_lower is true, this check prevents the message from being sent.
+
+[How]
+Remove the check that compares new value with what is stored in dc_context.
+This check is not necessary as dcn1_update_clocks already checks if the value
+is different from the current dcf_dp value.
+
+Signed-off-by: Fatemeh Darbehani <fatemeh.darbehani@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c
+index 6f329d1e8fd3..d5314610b2cd 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_clk_mgr.c
+@@ -57,8 +57,7 @@ void dcn1_pplib_apply_display_requirements(
+ pp_display_cfg->disp_clk_khz = dc->res_pool->clk_mgr->clks.dispclk_khz;
+ dce110_fill_display_configs(context, pp_display_cfg);
+
+- if (memcmp(&dc->current_state->pp_display_cfg, pp_display_cfg, sizeof(*pp_display_cfg)) != 0)
+- dm_pp_apply_display_requirements(dc->ctx, pp_display_cfg);
++ dm_pp_apply_display_requirements(dc->ctx, pp_display_cfg);
+ }
+
+ static int dcn1_determine_dppclk_threshold(struct clk_mgr *clk_mgr, struct dc_clocks *new_clocks)
+--
+2.17.1
+