Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: Simon Ser <contact@emersion.fr>
Cc: Gil Dekel <gildekel@google.com>,
	igt-dev@lists.freedesktop.org,
	Swati Sharma <swati2.sharma@intel.com>,
	Karthik B S <karthik.b.s@intel.com>,
	Mark Yacoub <markyacoub@google.com>,
	kunal1.joshi@intel.com, kamil.konieczny@intel.com
Subject: Re: [PATCH i-g-t 0/3] lib/igt_hdr: Find HDR in DisplayID EDIDs
Date: Mon, 23 Nov 2026 13:31:44 +0200	[thread overview]
Message-ID: <3fd2ec3aa32a752e4291d7bf9327fe60bf3f0b79@intel.com> (raw)
In-Reply-To: <8dbiQ-xKIF5RNdybtcEVmHNWSf03BlJaPre_6_aNt7aSjmvw1EgoZ5aoOI-2-mxrCT-6i0BTv5XighYrhZEpvugCRa8rUTQ4YAqPL3cVmwU=@emersion.fr>

On Sat, 21 Nov 2026, Simon Ser <contact@emersion.fr> wrote:
> On Wednesday, November 18th, 2026 at 11:46, Jani Nikula <jani.nikula@intel.com> wrote:
>
>> On Mon, 16 Nov 2026, Gil Dekel <gildekel@google.com> wrote:
>> > Hi Jani,
>> >
>> > On Mon, Nov 16, 2026 at 11:40:12AM +0200, Jani Nikula wrote:
>> >> I suggested using libdisplay-info in IGT in April [1]. Has anything
>> >> happened in that front?
>> >>
>> >> The more EDID parsing gets added to IGT, the harder it will be to
>> >> migrate, and the cost of maintaining the local parser increases.
>> >
>> > Nothing I am aware of, and I agree libdisplay-info is the right
>> > long-term direction for IGT. Driving a tree-wide migration (build/CI
>> > dependencies and converting existing lib/igt_edid callers) is beyond
>> > what I can take on right now, though.
>> 
>> Well, it's beyond what *anyone* can take on right now, always.
>> 
>> I keep bringing this up, because more and more EDID parsing keeps
>> getting added, incrementally in small pieces. And it becomes harder for
>> anyone to migrate. Or to maintain.
>
> I don't think the goal should be to migrate everything, everywhere,
> all at once. Nobody can tackle the migration this way. I would
> recommend to migrate incrementally, ideally spreading the effort on
> multiple people. One way to do this would be to ask people to migrate
> a function to libdi instead of adding a new feature to igt_edid if
> that's not a lot more work. Another way would be to freeze igt_edid
> after a given amount of time.

I think the main problem has been that nobody's taken even the first
steps towards adopting libdisplay-info, and it's been hard to block new
EDID parsing on that. But with the libdisplay-info basics in place,
thanks to you, I think the bare minimum going forward should be to
require all new stuff and modification of old stuff to migrate to
libdisplay-info.

>> > I kept the parser delta here minimal so it won't get in the way of that
>> > migration:
>> > - 1/3 isolates the check behind igt_is_edid_hdr(data, size), fixes two
>> >   OOB/overwrite bugs in the CTA loop, and adds unit tests in
>> >   lib/tests/igt_hdr - leaving a single tested function to swap over
>> >   when libdisplay-info lands.
>> > - 2/3 is ~38 net lines reusing lib/igt_edid.h's edid_dispid structs to
>> >   pass DisplayID 0x81 CTA blocks into the same CTA helper, unblocking
>> >   kms_hdr on DisplayID 2.0 eDP OLED panels today.
>> > - 3/3 switches kms_hdr invalid-hdr to /dev/kmsg (no EDID changes).
>> >
>> > Would you be open to landing this series in the meantime so DisplayID
>> > HDR panels aren't blocked while IGT figures out its libdisplay-info
>> > path?
>> 
>> I'm not an IGT maintainer. I don't make the decisions. I'm only
>> commenting on what I personally view as a gradually happening train
>> wreck. Nobody's causing the train wreck, and everyone is. *shrug*.
>> 
>> Cc: Simon, maybe we could nerd snipe him to add the scaffolding to use
>> libdisplay-info. :p
>
> I've sent a small patch to convert igt_hdr, and it also happens to
> supersede this patch for free:
> https://lists.freedesktop.org/archives/igt-dev/2026-November/118994.html
>
> I won't be able to spend a lot of time on this, but I would be happy
> to reply to questions, provide some support and perhaps send an
> occasional migration patch from time to time.

Simon, I think you already contributed the part with the most
impact. Much appreciated! Thanks!

BR,
Jani.


-- 
Jani Nikula, Intel

  reply	other threads:[~2026-11-23 11:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14 22:29 [PATCH i-g-t 0/3] lib/igt_hdr: Find HDR in DisplayID EDIDs Gil Dekel
2026-11-14 22:29 ` [PATCH i-g-t 1/3] lib/igt_hdr: Add a testable igt_is_edid_hdr() Gil Dekel
2026-11-14 22:29 ` [PATCH i-g-t 2/3] lib/igt_hdr: Parse DisplayID CTA data blocks Gil Dekel
2026-11-14 22:29 ` [PATCH i-g-t 3/3] tests/kms_hdr: Use /dev/kmsg in invalid-hdr Gil Dekel
2026-11-15  0:19 ` [PATCH i-g-t v2 0/3] lib/igt_hdr: Find HDR in DisplayID EDIDs Gil Dekel
2026-11-15  0:19   ` [PATCH i-g-t v2 1/3] lib/igt_hdr: Add a testable igt_is_edid_hdr() Gil Dekel
2026-11-15  0:19   ` [PATCH i-g-t v2 2/3] lib/igt_hdr: Parse DisplayID CTA data blocks Gil Dekel
2026-11-15  0:19   ` [PATCH i-g-t v2 3/3] tests/kms_hdr: Use /dev/kmsg in invalid-hdr Gil Dekel
2026-11-16  7:51 ` ✓ Xe.CI.BAT: success for lib/igt_hdr: Find HDR in DisplayID EDIDs Patchwork
2026-11-16  8:07 ` ✓ i915.CI.BAT: " Patchwork
2026-11-16  9:07 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-11-16  9:40 ` [PATCH i-g-t 0/3] " Jani Nikula
2026-11-17  3:13   ` Gil Dekel
2026-11-18 10:46     ` Jani Nikula
2026-11-21 12:01       ` Simon Ser
2026-11-23 11:31         ` Jani Nikula [this message]
2026-11-16 11:26 ` ✗ i915.CI.Full: failure for " 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=3fd2ec3aa32a752e4291d7bf9327fe60bf3f0b79@intel.com \
    --to=jani.nikula@intel.com \
    --cc=contact@emersion.fr \
    --cc=gildekel@google.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@intel.com \
    --cc=karthik.b.s@intel.com \
    --cc=kunal1.joshi@intel.com \
    --cc=markyacoub@google.com \
    --cc=swati2.sharma@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