The 30-inch Apple Cinema HD Display (APP 0x9221) advertises its native 2560x1600 mode at 59.86 Hz with a 268 MHz pixel clock. Its EDID also identifies the digital interface as DVI Dual Link High Resolution.
When connected using Apple's active Mini DisplayPort to Dual-Link DVI adapter, the adapter is detected as a DisplayPort branch with a DVI downstream port. It does not provide detailed downstream capability information, so drm_dp_downstream_max_tmds_clock() falls back to 165 MHz. This causes the native 268 MHz mode to be rejected, leaving only 1280x800 at 71 MHz available. Allow a 300 MHz TMDS clock for this display so that its native 2560x1600 mode is exposed. An earlier version of this workaround was tested successfully with an Intel Arc B580 using the xe driver and Apple's active Mini DisplayPort to Dual-Link DVI adapter on Linux 7.0.11 and 7.2.6. The revised capability check has not yet been runtime-tested. This is intended as an RFC since the underlying limitation is the active dual-link DVI adapter, while this workaround identifies the attached display by EDID. A more generic way of identifying dual-link capable downstream DVI adapters may be preferable. Signed-off-by: Petter Skjelsbæk <[email protected]> --- drivers/gpu/drm/display/drm_dp_helper.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c index e623ccb4c1d8..ec36fa88b0ca 100644 --- a/drivers/gpu/drm/display/drm_dp_helper.c +++ b/drivers/gpu/drm/display/drm_dp_helper.c @@ -1388,8 +1388,15 @@ int drm_dp_downstream_max_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE], return 300000; return port_cap[1] * 2500; case DP_DS_PORT_TYPE_DVI: - if ((dpcd[DP_DOWNSTREAMPORT_PRESENT] & DP_DETAILED_CAP_INFO_AVAILABLE) == 0) + if ((dpcd[DP_DOWNSTREAMPORT_PRESENT] & + DP_DETAILED_CAP_INFO_AVAILABLE) == 0) { + if (drm_edid && + drm_edid_get_panel_id(drm_edid) == + drm_edid_encode_panel_id('A', 'P', 'P', 0x9221)) + return 300000; return 165000; + } + /* FIXME what to do about DVI dual link? */ return port_cap[1] * 2500; default: -- 2.43.0
