From: "Petter Skjelsbæk" <skjelsbaek@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: ankit.k.nautiyal@intel.com, ville.syrjala@linux.intel.com,
maarten.lankhorst@linux.intel.com, skjelsbaek@gmail.com
Subject: [RFC PATCH] drm/dp: allow dual-link clock for 30-inch Apple Cinema HD
Date: Sat, 21 Nov 2026 10:09:49 +0100 [thread overview]
Message-ID: <20261121090949.12290-1-skjelsbaek@gmail.com> (raw)
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 <skjelsbaek@gmail.com>
---
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
next reply other threads:[~2026-11-22 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 9:09 Petter Skjelsbæk [this message]
2026-11-22 17:21 ` [RFC PATCH] drm/dp: allow dual-link clock for 30-inch Apple Cinema HD sashiko-bot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261121090949.12290-1-skjelsbaek@gmail.com \
--to=skjelsbaek@gmail.com \
--cc=ankit.k.nautiyal@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=ville.syrjala@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.