diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0104-drm-amd-display-debug-opt-disable-hdmi-deep-color.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/0104-drm-amd-display-debug-opt-disable-hdmi-deep-color.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0104-drm-amd-display-debug-opt-disable-hdmi-deep-color.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0104-drm-amd-display-debug-opt-disable-hdmi-deep-color.patch new file mode 100644 index 00000000..3f58ca71 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0104-drm-amd-display-debug-opt-disable-hdmi-deep-color.patch @@ -0,0 +1,43 @@ +From 694684cf06a62e2053430960d8f0dae58d213381 Mon Sep 17 00:00:00 2001 +From: Tony Cheng <tony.cheng@amd.com> +Date: Fri, 23 Dec 2016 07:12:19 -0500 +Subject: [PATCH 0104/4131] drm/amd/display: debug opt disable hdmi deep color + +Signed-off-by: Tony Cheng <tony.cheng@amd.com> +Reviewed-by: Yongqiang Sun <yongqiang.sun@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/dc.h | 1 + + drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 +++ + 2 files changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h +index ef9a697..823a872 100644 +--- a/drivers/gpu/drm/amd/display/dc/dc.h ++++ b/drivers/gpu/drm/amd/display/dc/dc.h +@@ -147,6 +147,7 @@ struct dc_debug { + bool disable_power_gate; + bool disable_clock_gate; + bool disable_dmcu; ++ bool disable_hdmi_deep_color; + }; + + struct dc { +diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +index a8a2290..b439a9e 100644 +--- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c ++++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +@@ -993,6 +993,9 @@ bool dce110_link_encoder_construct( + enc110->base.features.max_deep_color = COLOR_DEPTH_121212; + enc110->base.features.max_hdmi_deep_color = COLOR_DEPTH_121212; + ++ if (enc110->base.ctx->dc->debug.disable_hdmi_deep_color) ++ enc110->base.features.max_hdmi_deep_color = COLOR_DEPTH_888; ++ + /* set the flag to indicate whether driver poll the I2C data pin + * while doing the DP sink detect + */ +-- +2.7.4 + |