diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0226-drm-amd-display-fix-12bpc-truncate-to-10bpc.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/0226-drm-amd-display-fix-12bpc-truncate-to-10bpc.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0226-drm-amd-display-fix-12bpc-truncate-to-10bpc.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0226-drm-amd-display-fix-12bpc-truncate-to-10bpc.patch new file mode 100644 index 00000000..92f68106 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0226-drm-amd-display-fix-12bpc-truncate-to-10bpc.patch @@ -0,0 +1,62 @@ +From 7c081351ef763b97fb888f01fe4e2bee40a2cd3b Mon Sep 17 00:00:00 2001 +From: Charlene Liu <charlene.liu@amd.com> +Date: Fri, 17 Feb 2017 13:51:32 -0500 +Subject: [PATCH 0226/4131] drm/amd/display: fix 12bpc truncate to 10bpc + +Signed-off-by: Charlene Liu <charlene.liu@amd.com> +Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> +Acked-by: Harry Wentland <Harry.Wentland@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/display/dc/dce/dce_opp.c | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +index a2f57cf..121ccbb 100644 +--- a/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c ++++ b/drivers/gpu/drm/amd/display/dc/dce/dce_opp.c +@@ -710,32 +710,32 @@ void dce110_opp_set_dyn_expansion( + enum signal_type signal) + { + struct dce110_opp *opp110 = TO_DCE110_OPP(opp); +- bool enable_dyn_exp = false; + + REG_UPDATE_2(FMT_DYNAMIC_EXP_CNTL, + FMT_DYNAMIC_EXP_EN, 0, + FMT_DYNAMIC_EXP_MODE, 0); +- /* From HW programming guide: +- FMT_DYNAMIC_EXP_EN = 0 for limited RGB or YCbCr output +- FMT_DYNAMIC_EXP_EN = 1 for RGB full range only*/ +- if (color_sp == COLOR_SPACE_SRGB) +- enable_dyn_exp = true; + + /*00 - 10-bit -> 12-bit dynamic expansion*/ + /*01 - 8-bit -> 12-bit dynamic expansion*/ +- if (signal == SIGNAL_TYPE_HDMI_TYPE_A) { ++ if (signal == SIGNAL_TYPE_HDMI_TYPE_A || ++ signal == SIGNAL_TYPE_DISPLAY_PORT || ++ signal == SIGNAL_TYPE_DISPLAY_PORT_MST) { + switch (color_dpth) { + case COLOR_DEPTH_888: + REG_UPDATE_2(FMT_DYNAMIC_EXP_CNTL, +- FMT_DYNAMIC_EXP_EN, enable_dyn_exp ? 1:0, ++ FMT_DYNAMIC_EXP_EN, 1, + FMT_DYNAMIC_EXP_MODE, 1); + break; + case COLOR_DEPTH_101010: + REG_UPDATE_2(FMT_DYNAMIC_EXP_CNTL, +- FMT_DYNAMIC_EXP_EN, enable_dyn_exp ? 1:0, ++ FMT_DYNAMIC_EXP_EN, 1, + FMT_DYNAMIC_EXP_MODE, 0); + break; + case COLOR_DEPTH_121212: ++ REG_UPDATE_2( ++ FMT_DYNAMIC_EXP_CNTL, ++ FMT_DYNAMIC_EXP_EN, 1,/*otherwise last two bits are zero*/ ++ FMT_DYNAMIC_EXP_MODE, 0); + break; + default: + break; +-- +2.7.4 + |