Skip to content

lib/igt_hdr: Find HDR in DisplayID EDIDs

Gil Dekel igt-dev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Apologies for the v1 bloat from agent-assisted drafting; replace the raw panel EDID dump in Patch 2/3 with a synthetic make_displayid_cta_edid() helper.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3lib/igt_hdr: Add a testable igt_is_edid_hdr()lib/igt_hdr.c lib/igt_hdr.h lib/tests/igt_hdr.c +1 more+133 -330 replies
2/3lib/igt_hdr: Parse DisplayID CTA data blockslib/igt_hdr.c lib/tests/igt_hdr.c+84 -20 replies
3/3tests/kms_hdr: Use /dev/kmsg in invalid-hdrtests/kms_hdr.c+48 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH i-g-t v2 0/3] lib/igt_hdr: Find HDR in DisplayID EDIDs

igt_is_panel_hdr() only looks in CTA-861 extensions. eDP panels that describe HDR inside a DisplayID extension are therefore treated as SDR, and kms_hdr runs invalid-hdr on them, which then fails. Patch 1 splits the EDID parser out so it can be tested on the host, bounds it by the blob size, and adds lib/tests/igt_hdr. Patch 2 also walks the CTA data blocks inside DisplayID extensions. Patch 3 makes invalid-hdr read only the kernel log written by its own commit.

v2:
- Apologies for the v1 bloat from agent-assisted drafting; replace the raw panel EDID dump in Patch 2/3 with a synthetic make_displayid_cta_edid() helper.

Cc Swati Sharma <[email protected]>
Cc Karthik B S <[email protected]>
Cc Mark Yacoub <[email protected]>

Gil Dekel (3):
lib/igt_hdr: Add a testable igt_is_edid_hdr()
lib/igt_hdr: Parse DisplayID CTA data blocks
tests/kms_hdr: Use /dev/kmsg in invalid-hdr

 lib/igt_hdr.c         | 146 ++++++++++++++++++++++++++++++++----------
 lib/igt_hdr.h         |   1 +
 lib/tests/igt_hdr.c   | 100 +++++++++++++++++++++++++++++
 lib/tests/meson.build |   1 +
 tests/kms_hdr.c       |  49 +++++++++++++-
 5 files changed, 263 insertions(+), 34 deletions(-)
 create mode 100644 lib/tests/igt_hdr.c
Signature · 1 line
Gil Dekel, Software Engineer, Google / ChromeOS Display and Graphics