diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4353-drm-amd-display-optimize-bandwidth-after-commit-stre.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4353-drm-amd-display-optimize-bandwidth-after-commit-stre.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4353-drm-amd-display-optimize-bandwidth-after-commit-stre.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4353-drm-amd-display-optimize-bandwidth-after-commit-stre.patch new file mode 100644 index 00000000..9e03049e --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/4353-drm-amd-display-optimize-bandwidth-after-commit-stre.patch @@ -0,0 +1,43 @@ +From a61b8b1bfca590518f760c50ff81a31421e080d3 Mon Sep 17 00:00:00 2001 +From: Yongqiang Sun <yongqiang.sun@amd.com> +Date: Fri, 18 Oct 2019 18:24:59 -0400 +Subject: [PATCH 4353/4736] drm/amd/display: optimize bandwidth after commit + streams. + +[Why] +System is unable to enter S0i3 due to DISPLAY_OFF_MASK not asserted +in SMU. + +[How] +Optimized bandwidth should be called paired and to resolve unplug +display underflow issue, optimize bandwidth after commit streams is +moved to next page flip, in case of S0i3, there is a change for no +flip coming causing display count is 1 in SMU side. +Add optimize bandwidth after commit stream. + +Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> +Signed-off-by: Rahul Kumar <rahul.kumar1@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index 82d8b4aff88f..0c7925c2faf2 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -1239,6 +1239,10 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c + + dc_enable_stereo(dc, context, dc_streams, context->stream_count); + ++ if (!dc->optimize_seamless_boot) ++ /* pplib is notified if disp_num changed */ ++ dc->hwss.optimize_bandwidth(dc, context); ++ + for (i = 0; i < context->stream_count; i++) + context->streams[i]->mode_changed = false; + +-- +2.17.1 + |