diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2618-drm-amd-display-Check-cursor-address-before-program.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2618-drm-amd-display-Check-cursor-address-before-program.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2618-drm-amd-display-Check-cursor-address-before-program.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2618-drm-amd-display-Check-cursor-address-before-program.patch new file mode 100644 index 00000000..a73f8f0e --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2618-drm-amd-display-Check-cursor-address-before-program.patch @@ -0,0 +1,34 @@ +From 26bc19ebf49c56f96501a9fda5b755a197bdcc09 Mon Sep 17 00:00:00 2001 +From: Yongqiang Sun <yongqiang.sun@amd.com> +Date: Tue, 17 Oct 2017 14:54:58 -0400 +Subject: [PATCH 2618/4131] drm/amd/display: Check cursor address before + program. + +Program cursor attributes during set mode is only needed +in case of pipe slipt, bottom pipe should be programmed +same as top pipe. Need to program if address is 0. + +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> +--- + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +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 0d1f0e2..c82d667 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 +@@ -2436,7 +2436,8 @@ static void program_all_pipe_in_tree( + /* TODO: this is a hack w/a for switching from mpo to pipe split */ + dc_stream_set_cursor_position(pipe_ctx->stream, &position); + +- dc_stream_set_cursor_attributes(pipe_ctx->stream, ++ if (pipe_ctx->stream->cursor_attributes.address.quad_part != 0) ++ dc_stream_set_cursor_attributes(pipe_ctx->stream, + &pipe_ctx->stream->cursor_attributes); + + if (cur_pipe_ctx->plane_state != pipe_ctx->plane_state) { +-- +2.7.4 + |