Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tests: edid: Add edid-decode --check output

Some of our EDIDs are (rightfully) invalid, but most of them should be
valid.

Let's add the edid-decode --check of these EDIDs when they were
generated, so we know what to expect going forward, and a comment to
explicitly mention when we expect them to be broken.

Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250625-drm-update-edid-v1-3-2d963743ab9e@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>

+51
+51
drivers/gpu/drm/tests/drm_kunit_edid.h
··· 46 46 * Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz 47 47 * Dummy Descriptor: 48 48 * Checksum: 0xab 49 + * 50 + * ---------------- 51 + * 52 + * edid-decode 1.30.0-5367 53 + * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22 54 + * 55 + * EDID conformity: PASS 49 56 */ 50 57 static const unsigned char test_edid_dvi_1080p[] = { 51 58 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, ··· 69 62 }; 70 63 71 64 /* 65 + * 66 + * This edid is intentionally broken with the 100MHz limit. It's meant 67 + * to be used only with tests in unusual situations. 68 + * 72 69 * edid-decode (hex): 73 70 * 74 71 * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00 ··· 147 136 * Source physical address: 1.2.3.4 148 137 * Maximum TMDS clock: 100 MHz 149 138 * Checksum: 0x10 Unused space in Extension Block: 106 bytes 139 + * 140 + * ---------------- 141 + * 142 + * edid-decode 1.30.0-5367 143 + * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22 144 + * 145 + * Failures: 146 + * 147 + * EDID: 148 + * CTA-861: The maximum HDMI TMDS clock is 100000 kHz, but one or more video timings go up to 148500 kHz. 149 + * 150 + * EDID conformity: FAIL 150 151 */ 151 152 static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] = { 152 153 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, ··· 260 237 * Source physical address: 1.2.3.4 261 238 * Maximum TMDS clock: 200 MHz 262 239 * Checksum: 0xfc Unused space in Extension Block: 106 bytes 240 + * 241 + * ---------------- 242 + * 243 + * edid-decode 1.30.0-5367 244 + * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22 245 + * 246 + * EDID conformity: PASS 263 247 */ 264 248 static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] = { 265 249 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, ··· 368 338 * Source physical address: 1.2.3.4 369 339 * Maximum TMDS clock: 340 MHz 370 340 * Checksum: 0xe0 Unused space in Extension Block: 106 bytes 341 + * 342 + * ---------------- 343 + * 344 + * edid-decode 1.30.0-5367 345 + * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22 346 + * 347 + * EDID conformity: PASS 371 348 */ 372 349 static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] = { 373 350 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, ··· 482 445 * DC_Y444 483 446 * Maximum TMDS clock: 200 MHz 484 447 * Checksum: 0xd4 Unused space in Extension Block: 106 bytes 448 + * 449 + * ---------------- 450 + * 451 + * edid-decode 1.30.0-5367 452 + * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22 453 + * 454 + * EDID conformity: PASS 485 455 */ 486 456 static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = { 487 457 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00, ··· 596 552 * DC_Y444 597 553 * Maximum TMDS clock: 340 MHz 598 554 * Checksum: 0xb8 Unused space in Extension Block: 106 bytes 555 + * 556 + * ---------------- 557 + * 558 + * edid-decode 1.30.0-5367 559 + * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22 560 + * 561 + * EDID conformity: PASS 599 562 */ 600 563 static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] = { 601 564 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,