From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>,
sashiko-reviews@lists.linux.dev
Cc: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org,
intel-xe@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/edid: Introduce drm_edid_get_displayid_product_id()
Date: Fri, 27 Nov 2026 17:55:20 +0200 [thread overview]
Message-ID: <b7f3b3e4a8eb866368cedf88c383bf14834077fc@intel.com> (raw)
In-Reply-To: <awYXhjvZvrw3gWea@intel.com>
On Wed, 25 Nov 2026, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Tue, Nov 24, 2026 at 10:51:24PM +0000, sashiko-bot@kernel.org wrote:
>> Thank you for your contribution! Sashiko AI review found 1 potential
>> issue to consider:
>> - [Low] drm/edid: commit subject mismatches
>> drm_displayid_get_product_id()
>> --
>>
>> commit 4452aea3cbb2a5afd7ef8a119931282a44feb4c3
>> Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
>>
>> drm/edid: Introduce drm_edid_get_displayid_product_id()
>>
>> This commit adds drm_displayid_get_product_id() to extract vendor and
>> product identification from a DisplayID Product ID block.
>>
>> > diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h
>> > index a2617aa34edfc..b44c26d422171 100644
>> > --- a/include/drm/drm_edid.h
>> > +++ b/include/drm/drm_edid.h
>>
>> [ ... ]
>>
>> > @@ -484,6 +492,8 @@ int drm_edid_connector_add_modes(struct drm_connector *connector);
>> > bool drm_edid_is_digital(const struct drm_edid *drm_edid);
>> > void drm_edid_get_product_id(const struct drm_edid *drm_edid,
>> > struct drm_edid_product_id *id);
>> > +void drm_displayid_get_product_id(const struct drm_edid *drm_edid,
>> > + struct drm_displayid_product_id *id);
>>
>> [Severity: Low]
>> The commit subject names this function drm_edid_get_displayid_product_id(),
>> while the commit message body and code define drm_displayid_get_product_id().
>> Also, this declaration is placed in the "Interface based on struct drm_edid"
>> section of include/drm/drm_edid.h, where all other functions taking a
>> const struct drm_edid * use the drm_edid_ prefix. Should the commit subject
>> and exported function name be aligned?
>
> I was going back and forth with the name and being dissatisfied
> with all of them. If anyone has an opinion how we should name
> these things I'm all ears.
Not really sure either.
Maybe I'm ever so slightly leaning towards drm_edid_ prefixed naming,
and only because in my mind we'll be able to use struct drm_edid as the
abstract type for all these cases:
- plain old EDID with no DisplayID blocks
- EDID with DisplayID blocks in EDID extensions
- native DisplayID only
- combined native DisplayID *and* EDID with/without DisplayID blocks
I.e. it's "struct drm_edid" even when it's native DisplayID inside,
i.e. just use drm_edid naming for it all.
In that context, drm_edid_get_displayid_product_id() makes sense. Get
the displayid product id from this opaque blob.
Digressing a bit, native DisplayID will still be a PITA to implement,
but I'm hoping mostly due to the userland ABI promises and having to
break the VESA spec about reading *both* EDID and native DisplayID DDC
addresses, even if native DisplayID is there. But I think the opaque
struct drm_edid and the hidden-from-drivers drm_displayid abstractions
can handle it.
BR,
Jani.
--
Jani Nikula, Intel
next prev parent reply other threads:[~2026-11-27 15:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 22:46 [PATCH 0/2] drm/i915: Implement DisplayID based VBT panel type detection Ville Syrjala
2026-11-24 22:46 ` [PATCH 1/2] drm/edid: Introduce drm_edid_get_displayid_product_id() Ville Syrjala
2026-11-24 22:51 ` sashiko-bot
2026-11-24 23:02 ` Ville Syrjälä
2026-11-27 15:55 ` Jani Nikula [this message]
2026-11-27 15:45 ` Jani Nikula
2026-11-27 15:59 ` Jani Nikula
2026-11-24 22:46 ` [PATCH 2/2] drm/i915/bios: Attempt to match the VBT PnP ID against DisplayID first Ville Syrjala
2026-11-24 22:56 ` sashiko-bot
2026-11-24 23:06 ` Ville Syrjälä
2026-11-27 16:29 ` Jani Nikula
2026-11-27 16:55 ` Ville Syrjälä
2026-11-27 18:08 ` Jani Nikula
2026-11-25 0:13 ` ✗ CI.checkpatch: warning for drm/i915: Implement DisplayID based VBT panel type detection Patchwork
2026-11-25 0:16 ` ✓ CI.KUnit: success " Patchwork
2026-11-25 0:55 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-11-25 4:05 ` ✗ Xe.CI.FULL: " Patchwork
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=b7f3b3e4a8eb866368cedf88c383bf14834077fc@intel.com \
--to=jani.nikula@linux.intel.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 \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox