[PATCH] drm/amd/display: Disable 4k at 60 on DP as well for DCE11
S, Shirish
Shirish.S at amd.com
Tue Nov 27 08:52:27 UTC 2018
This patch extends the below patch to apply DP signal type, for exactly
the same reasons it was disabled for HDMI.
"1a0e348 drm/amd/display: Disable 4k 60 HDMI on DCE11"
Signed-off-by: Shirish S <shirish.s at amd.com>
---
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 4 ++++
1 file changed, 4 insertions(+)
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 3e18ea8..d578828 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
@@ -662,6 +662,10 @@ bool dce110_link_encoder_validate_dp_output(
const struct dce110_link_encoder *enc110,
const struct dc_crtc_timing *crtc_timing)
{
+ if (crtc_timing->pix_clk_khz >
+ enc110->base.features.max_hdmi_pixel_clock)
+ return false;
+
if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
return false;
--
2.7.4
More information about the amd-gfx
mailing list