All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Petter Skjelsbæk" <skjelsbaek@gmail.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [RFC PATCH] drm/dp: allow dual-link clock for 30-inch Apple Cinema HD
Date: Sun, 22 Nov 2026 17:21:36 +0000	[thread overview]
Message-ID: <sashiko-outbox-228139@kernel.org> (raw)
In-Reply-To: <20261121090949.12290-1-skjelsbaek@gmail.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] drm/dp: drm_dp_downstream_max_tmds_clock() uses sink EDID for
  DFP limit
--

commit 3f7cc9438aa51a2bb27f49e36ae50fec8c07ea94
Author: Petter Skjelsbæk <skjelsbaek@gmail.com>

drm/dp: allow dual-link clock for 30-inch Apple Cinema HD

This commit returns a 300 MHz maximum downstream TMDS clock in
drm_dp_downstream_max_tmds_clock() when an Apple Cinema HD Display
(APP 0x9221) is attached to a DVI downstream port without detailed
capability information.

> diff --git a/drivers/gpu/drm/display/drm_dp_helper.c b/drivers/gpu/drm/display/drm_dp_helper.c
> index a2959db1d956e..09e82a6d7f6ab 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;
> +		}

[Severity: Medium]
Should drm_dp_downstream_max_tmds_clock() derive the branch device's
downstream port limit from the attached sink's EDID panel ID?

drm_dp_downstream_max_tmds_clock() reports the capability of the DP-to-DVI
branch adapter (stored in intel_dp->dfp.max_tmds_clock by
intel_dp_update_dfp()), not the monitor.  If the APP 0x9221 display is
connected through a single-link DP-to-DVI adapter that lacks
DP_DETAILED_CAP_INFO_AVAILABLE, this returns 300 MHz and exposes the
268 MHz 2560x1600 native mode that the single-link adapter cannot drive,
while any other dual-link DVI monitor on the Apple dual-link adapter
remains capped at 165 MHz.

Could the quirk instead identify the branch adapter itself via its DPCD
branch descriptor (DP_BRANCH_OUI / DP_BRANCH_ID)?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261121090949.12290-1-skjelsbaek@gmail.com?part=1

      reply	other threads:[~2026-11-22 17:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21  9:09 [RFC PATCH] drm/dp: allow dual-link clock for 30-inch Apple Cinema HD Petter Skjelsbæk
2026-11-22 17:21 ` sashiko-bot [this message]

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=sashiko-outbox-228139@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=skjelsbaek@gmail.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.