Skip to contentSkip to conversation

drm/amd/display: Disable 4k@60 on DP as well for DCE11

PATCH In review S, Shirish 2 participants 2 messages Nov 27, 2018 – Nov 28, 2018 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore

S, Shirish

author
#0 lore raw

PATCH 1/1 drm/amd/display: Disable 4k@60 on DP as well for DCE11

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"

---
 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +4 -0
index 3e18ea8..d578828 100644
@@ -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;
 
Signature · 6 lines
2.7.4

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1543308721-7138-1-git-send-email-shirish.s-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 15 lines · Shirish

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"

---
 drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +0 -0
index 3e18ea8..d578828 100644

drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c bool dce110_link_encoder_validate_dp_output( · line 668

Quoted 7 lines
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +4 -0
@@ -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;
+

It doesn't make sense to look at the max hdmi pixel for DP.

If we want to restrict the supported timings we should also make sure they only apply to Stoney and/or Carrizo. That said, are you sure 4k60 is an issue on all CZ/ST boards or is this particular to a certain platform?

Harry

drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c bool dce110_link_encoder_validate_dp_output( · line 671

Quoted 4 lines
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +0 -0
 	if (crtc_timing->pixel_encoding == PIXEL_ENCODING_YCBCR420)
 		return false;
 

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx