aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2524-drm-amd-display-Do-a-reg-update-instead-of-set-when-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2524-drm-amd-display-Do-a-reg-update-instead-of-set-when-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2524-drm-amd-display-Do-a-reg-update-instead-of-set-when-.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2524-drm-amd-display-Do-a-reg-update-instead-of-set-when-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2524-drm-amd-display-Do-a-reg-update-instead-of-set-when-.patch
new file mode 100644
index 00000000..3ece37bb
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2524-drm-amd-display-Do-a-reg-update-instead-of-set-when-.patch
@@ -0,0 +1,36 @@
+From 532094efbeeb40024de2f95a489dc1de172fc948 Mon Sep 17 00:00:00 2001
+From: Nikola Cornij <nikola.cornij@amd.com>
+Date: Thu, 18 Apr 2019 15:15:58 -0400
+Subject: [PATCH 2524/2940] drm/amd/display: Do a reg update instead of set
+ when writing ODM color format
+
+[why]
+If a set is done, DSC settings are zeroed out, leading to no DSC for the modes
+that require ODM, such as 8k60.
+
+This was a regression introduced by 5a4f26295176bbfc776c75aaf0f6dd8ccf806958.
+
+Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
+Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
+Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
+index d0b317ea3a7c..26a66ccf6e72 100644
+--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
++++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_optc.c
+@@ -262,7 +262,7 @@ void optc2_set_odm_combine(struct timing_generator *optc, int combine_opp_id,
+ else if (pixel_encoding == PIXEL_ENCODING_YCBCR420)
+ data_fmt = 2;
+
+- REG_SET(OPTC_DATA_FORMAT_CONTROL, 0, OPTC_DATA_FORMAT, data_fmt);
++ REG_UPDATE(OPTC_DATA_FORMAT_CONTROL, OPTC_DATA_FORMAT, data_fmt);
+
+ REG_SET_3(OPTC_DATA_SOURCE_SELECT, 0,
+ OPTC_NUM_OF_INPUT_SEGMENT, 1,
+--
+2.17.1
+