From: sashiko-bot@kernel.org
To: "Michał Szolc" <undefine@undefine.pl>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm: add a EDID_QUIRK_IGNORE_STEREO_FLAG quirk
Date: Thu, 23 Jul 2026 22:33:53 +0000 [thread overview]
Message-ID: <20260723223353.BFBBD1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260723220400.17190-2-undefine@undefine.pl>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The newly introduced `EDID_QUIRK_IGNORE_STEREO_FLAG` quirk is never assigned to any panel in the `edid_quirk_list`, making the added logic dead code.
--
--- Patch [1]: [PATCH 1/2] drm: add a EDID_QUIRK_IGNORE_STEREO_FLAG quirk ---
commit c12c9b1e2a3442319892a911d6fc20a3c6916841
Author: Michał Szolc <undefine@undefine.pl>
drm: add a EDID_QUIRK_IGNORE_STEREO_FLAG quirk
This commit introduces a new EDID quirk meant to ignore the stereo flag
for screens that misrepresent certain modes.
> diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c
> index 07970e5b5f65e..4720217f99bff 100644
> --- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -96,6 +96,8 @@ enum drm_edid_internal_quirk {
> EDID_QUIRK_NON_DESKTOP,
> /* Cap the DSC target bitrate to 15bpp */
> EDID_QUIRK_CAP_DSC_15BPP,
> + /* Ignore stereo flag of modes */
> + EDID_QUIRK_IGNORE_STEREO_FLAG,
> };
>
> #define MICROSOFT_IEEE_OUI 0xca125c
[ ... ]
> @@ -3538,7 +3540,8 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_connector *connecto
> if (hactive < 64 || vactive < 64)
> return NULL;
>
> - if (pt->misc & DRM_EDID_PT_STEREO) {
> + if (pt->misc & DRM_EDID_PT_STEREO &&
> + !drm_edid_has_internal_quirk(connector, EDID_QUIRK_IGNORE_STEREO_FLAG)) {
[Severity: Medium]
Is this new quirk missing an entry in the edid_quirk_list[] array?
Because the quirk is internal to drm_edid.c and isn't currently mapped to any
specific vendor or product IDs in edid_quirk_list[], the call to
drm_edid_has_internal_quirk() will unconditionally evaluate to false. This makes
the newly introduced logic unreachable.
Should a specific display panel be added to edid_quirk_list[] in this patch to
utilize the fix?
> drm_dbg_kms(dev, "[CONNECTOR:%d:%s] Stereo mode not supported\n",
> connector->base.id, connector->name);
> return NULL;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260723220400.17190-1-undefine@undefine.pl?part=1
next prev parent reply other threads:[~2026-07-23 22:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 22:03 [PATCH 0/2] Fix 144hz display mode missing on MSI MAG273R Michał Szolc
2026-07-23 22:03 ` [PATCH 1/2] drm: add a EDID_QUIRK_IGNORE_STEREO_FLAG quirk Michał Szolc
2026-07-23 22:33 ` sashiko-bot [this message]
2026-07-23 22:04 ` [PATCH 2/2] drm: mark MSI MAG273R with the " Michał Szolc
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=20260723223353.BFBBD1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=undefine@undefine.pl \
/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.