diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2641-drm-amd-display-Should-disable-when-new-stream-is-nu.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2641-drm-amd-display-Should-disable-when-new-stream-is-nu.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2641-drm-amd-display-Should-disable-when-new-stream-is-nu.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2641-drm-amd-display-Should-disable-when-new-stream-is-nu.patch new file mode 100644 index 00000000..51249931 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2641-drm-amd-display-Should-disable-when-new-stream-is-nu.patch @@ -0,0 +1,36 @@ +From 17fc004e7a1eae75750b44f5c3d216915557d8ff Mon Sep 17 00:00:00 2001 +From: "Leo (Sunpeng) Li" <sunpeng.li@amd.com> +Date: Tue, 17 Oct 2017 17:18:24 -0400 +Subject: [PATCH 2641/4131] drm/amd/display: Should disable when new stream is + null + +core_link_disable_stream should be called when the new stream is null +(i.e. want to disable). Modify the if condition to reflect that. + +Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@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/dce110/dce110_hw_sequencer.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +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 a1e4407..4c072662 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 +@@ -1863,8 +1863,10 @@ static void dce110_reset_hw_ctx_wrap( + pipe_need_reprogram(pipe_ctx_old, pipe_ctx)) { + struct clock_source *old_clk = pipe_ctx_old->clock_source; + +- /* disable already, no need to disable again */ +- if (pipe_ctx->stream && !pipe_ctx->stream->dpms_off) ++ /* Disable if new stream is null. O/w, if stream is ++ * disabled already, no need to disable again. ++ */ ++ if (!pipe_ctx->stream || !pipe_ctx->stream->dpms_off) + core_link_disable_stream(pipe_ctx_old, FREE_ACQUIRED_RESOURCE); + + pipe_ctx_old->stream_res.tg->funcs->set_blank(pipe_ctx_old->stream_res.tg, true); +-- +2.7.4 + |