From: sashiko-bot@kernel.org
To: "Conor Svensson" <conor10@gmail.com>
Cc: intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
intel-gfx@lists.freedesktop.org
Subject: Re: [RFC PATCH] drm/i915/dp: Ignore inconsistent TMDS limits on an Anker DP branch
Date: Wed, 23 Sep 2026 22:21:33 +0000 [thread overview]
Message-ID: <20260923222133.953501F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923221018.42133-1-conor10@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] drm/i915/dp: incomplete downstream ports signature match
--
commit 025075775ae9b93d6ea2089caff0dfbc102027cd
Author: Conor Svensson <conor10@gmail.com>
drm/i915/dp: Ignore inconsistent TMDS limits on an Anker DP branch
This commit adds an experimental workaround to clear derived TMDS limits
for a specific Anker DP branch device that reports inconsistent capabilities
when hotplugged, which can cause the loss of native modes.
Link: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/17180
> diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c
> index 0cd5e6b5034cf..beba989860056 100644
> --- a/drivers/gpu/drm/i915/display/intel_dp.c
> +++ b/drivers/gpu/drm/i915/display/intel_dp.c
[ ... ]
> +static bool
> +intel_dp_has_anker_tmds_mismatch(struct intel_dp *intel_dp,
> + const struct drm_edid *drm_edid)
> +{
> + static const struct drm_dp_dpcd_ident branch = {
> + .oui = { 0x90, 0xcc, 0x24 },
> + .device_id = { 'S', 'Y', 'N', 'A', 'b', 0x10 },
> + .hw_rev = 0x10,
> + .sw_major_rev = 0x06,
> + .sw_minor_rev = 0x05,
> + };
> + static const u8 downstream_ports[] = {
> + 0x0a, 0x42, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> + };
[ ... ]
> + return !memcmp(&intel_dp->desc.ident, &branch, sizeof(branch)) &&
> + !memcmp(intel_dp->downstream_ports, downstream_ports,
> + sizeof(downstream_ports)) &&
[Severity: Low]
Does this comparison in intel_dp_has_anker_tmds_mismatch() strictly validate
the entire downstream port state as intended?
Because the local downstream_ports array is defined with only 8 elements,
sizeof(downstream_ports) evaluates to 8. However, intel_dp->downstream_ports
is a 16-byte array (DP_MAX_DOWNSTREAM_PORTS).
This partial match could theoretically trigger the quirk on a different device
that shares the same firmware and first 8 bytes of port capabilities but
differs in the remaining 8 bytes, which seems contrary to the deliberately
narrow intent described in the commit message.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260923221018.42133-1-conor10@gmail.com?part=1
next parent reply other threads:[~2026-09-23 22:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260923221018.42133-1-conor10@gmail.com>
2026-09-23 22:21 ` sashiko-bot [this message]
2026-09-24 8:03 ` [RFC PATCH] drm/i915/dp: Ignore inconsistent TMDS limits on an Anker DP branch Jani Nikula
[not found] ` <20260924211852.436787-1-conor10@gmail.com>
2026-10-06 16:09 ` [PATCH] drm/i915/dp: Configure protocol converter only for TMDS outputs Conor Svensson
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=20260923222133.953501F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor10@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=intel-xe@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox