aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3581-drm-amd-display-fix-stuck-test-pattern-on-right-half.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3581-drm-amd-display-fix-stuck-test-pattern-on-right-half.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3581-drm-amd-display-fix-stuck-test-pattern-on-right-half.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3581-drm-amd-display-fix-stuck-test-pattern-on-right-half.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3581-drm-amd-display-fix-stuck-test-pattern-on-right-half.patch
new file mode 100644
index 00000000..fbdc5391
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3581-drm-amd-display-fix-stuck-test-pattern-on-right-half.patch
@@ -0,0 +1,38 @@
+From 622763bbfe824cd42c86fbdb3d52af3d09342cc6 Mon Sep 17 00:00:00 2001
+From: Zi Yu Liao <ziyu.liao@amd.com>
+Date: Tue, 6 Aug 2019 11:58:09 -0400
+Subject: [PATCH 3581/4256] drm/amd/display: fix stuck test pattern on right
+ half of display
+
+[why]
+With visual confirm enabled, displays where ODM combine is enabled
+has a test pattern stuck on the right half of the display even
+though the display is unblanked.
+
+[how]
+Add a condition to not show the colour ramp test pattern when the
+display is unblanked.
+
+Signed-off-by: Zi Yu Liao <ziyu.liao@amd.com>
+Reviewed-by: Eric Yang <eric.yang2@amd.com>
+Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
+index 18de1aeaa51f..aa6e5ddc89b6 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c
+@@ -888,7 +888,7 @@ void dcn20_blank_pixel_data(
+ for (odm_pipe = pipe_ctx->next_odm_pipe; odm_pipe; odm_pipe = odm_pipe->next_odm_pipe) {
+ odm_pipe->stream_res.opp->funcs->opp_set_disp_pattern_generator(
+ odm_pipe->stream_res.opp,
+- dc->debug.visual_confirm != VISUAL_CONFIRM_DISABLE ?
++ dc->debug.visual_confirm != VISUAL_CONFIRM_DISABLE && blank ?
+ CONTROLLER_DP_TEST_PATTERN_COLORRAMP : test_pattern,
+ stream->timing.display_color_depth,
+ &black_color,
+--
+2.17.1
+