summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTony Cheng <tony.cheng@amd.com>2016-12-23 07:12:19 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 17:07:34 -0400
commitdc0bcaf2cafaa7a6023055d13ebf7dcc8c6e00b5 (patch)
tree84d454cbd8fe9413615324551e74303fda3d5d72 /drivers
parent1646a6fe746d7e923774994d2020e1707dcda884 (diff)
downloadlinux-stable-dc0bcaf2cafaa7a6023055d13ebf7dcc8c6e00b5.tar.gz
linux-stable-dc0bcaf2cafaa7a6023055d13ebf7dcc8c6e00b5.tar.bz2
linux-stable-dc0bcaf2cafaa7a6023055d13ebf7dcc8c6e00b5.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc.h1
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index ef9a69759bd5..823a87224498 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 a8a2290d47db..b439a9ee0228 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
*/