Skip to content

Commit d618363

Browse files
committed
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent b17ade5 commit d618363

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

drivers/gpu/drm/tests/drm_kunit_edid.h

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
* Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
4747
* Dummy Descriptor:
4848
* 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
4956
*/
5057
static const unsigned char test_edid_dvi_1080p[] = {
5158
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
@@ -62,6 +69,10 @@ static const unsigned char test_edid_dvi_1080p[] = {
6269
};
6370

6471
/*
72+
*
73+
* This edid is intentionally broken with the 100MHz limit. It's meant
74+
* to be used only with tests in unusual situations.
75+
*
6576
* edid-decode (hex):
6677
*
6778
* 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
@@ -136,6 +147,18 @@ static const unsigned char test_edid_dvi_1080p[] = {
136147
* Source physical address: 1.2.3.4
137148
* Maximum TMDS clock: 100 MHz
138149
* Checksum: 0x10 Unused space in Extension Block: 106 bytes
150+
*
151+
* ----------------
152+
*
153+
* edid-decode 1.30.0-5367
154+
* edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
155+
*
156+
* Failures:
157+
*
158+
* EDID:
159+
* CTA-861: The maximum HDMI TMDS clock is 100000 kHz, but one or more video timings go up to 148500 kHz.
160+
*
161+
* EDID conformity: FAIL
139162
*/
140163
static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] = {
141164
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
@@ -237,6 +260,13 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] = {
237260
* Source physical address: 1.2.3.4
238261
* Maximum TMDS clock: 200 MHz
239262
* Checksum: 0xfc Unused space in Extension Block: 106 bytes
263+
*
264+
* ----------------
265+
*
266+
* edid-decode 1.30.0-5367
267+
* edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
268+
*
269+
* EDID conformity: PASS
240270
*/
241271
static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] = {
242272
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
@@ -338,6 +368,13 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] = {
338368
* Source physical address: 1.2.3.4
339369
* Maximum TMDS clock: 340 MHz
340370
* Checksum: 0xe0 Unused space in Extension Block: 106 bytes
371+
*
372+
* ----------------
373+
*
374+
* edid-decode 1.30.0-5367
375+
* edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
376+
*
377+
* EDID conformity: PASS
341378
*/
342379
static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] = {
343380
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
@@ -445,6 +482,13 @@ static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] = {
445482
* DC_Y444
446483
* Maximum TMDS clock: 200 MHz
447484
* Checksum: 0xd4 Unused space in Extension Block: 106 bytes
485+
*
486+
* ----------------
487+
*
488+
* edid-decode 1.30.0-5367
489+
* edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
490+
*
491+
* EDID conformity: PASS
448492
*/
449493
static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = {
450494
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
@@ -552,6 +596,13 @@ static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = {
552596
* DC_Y444
553597
* Maximum TMDS clock: 340 MHz
554598
* Checksum: 0xb8 Unused space in Extension Block: 106 bytes
599+
*
600+
* ----------------
601+
*
602+
* edid-decode 1.30.0-5367
603+
* edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
604+
*
605+
* EDID conformity: PASS
555606
*/
556607
static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] = {
557608
0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,

0 commit comments

Comments
 (0)