All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <mripard@kernel.org>
To: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Cc: Helge Deller <deller@gmx.de>, Martin Bugge <marbugge@cisco.com>,
	 Thierry Reding <treding@nvidia.com>,
	Hans Verkuil <hverkuil@kernel.org>,
	 Mauro Carvalho Chehab <mchehab@kernel.org>,
	Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	 Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>,
	 Simona Vetter <simona@ffwll.ch>,
	kernel@collabora.com, linux-fbdev@vger.kernel.org,
	 dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 13/25] drm/tests: edid: Fix conformity for 1080p+4K YUV420 200MHz EDID
Date: Mon, 23 Nov 2026 16:51:31 +0100	[thread overview]
Message-ID: <awRgyldN6JaiisFJ@houat> (raw)
In-Reply-To: <20261114-drm-conn-hdmi-cleanup-v1-13-20e8a33a2286@collabora.com>

[-- Attachment #1: Type: text/plain, Size: 10368 bytes --]

On Sat, Nov 14, 2026 at 08:03:37PM +0200, Cristian Ciocaltea wrote:
> The test EDID added by commit 58fe1d78605e ("drm/tests: hdmi: Provide
> EDID supporting 4K@30Hz with YUV420 only") fails 'edid-decode --check'
> (v1.33.0) with the following issues:
> 
>   Warnings:
> 
>   Block 1, CTA-861 Extension Block:
>     IT Video Formats are overscanned by default, but normally this should be underscanned.
>     YCbCr 4:2:0 Video Data Block: Some YCbCr 4:2:0 timings are invalid for HDMI 2.1
>       (which requires an RGB timings pixel rate >= 590 MHz).
>   EDID:
>     Base EDID: Some timings are out of range of the Monitor Ranges:
>       Maximum Clock: 297.000 MHz (Monitor: 170.000 MHz)
>     CTA-861: Multiple native progressive timings are defined.
> 
>   Failures:
> 
>   Block 0, Base EDID:
>     Vendor & Product Identification: EDID 1.3 does not support week 0xff.
>   Block 1, CTA-861 Extension Block:
>     Vendor-Specific Data Block (HDMI Forum), OUI C4-5D-D8: Max TMDS rate is > 0 and <= 340 or > 600.
>     YCbCr 4:2:0 Capability Map Data Block: Empty Capability Map.
>     YCbCr 4:2:0 Video Data Block: YCbCr 4:2:0-only VIC 95 is also a regular VIC.
>     Missing VCDB, needed for Set Selectable RGB Quantization to avoid interop issues.
>   EDID:
>     CTA-861: The maximum HDMI TMDS clock is 200000 kHz, but one or more video timings go up to 297000 kHz.
> 
> Address them while preserving the advertised maximum resolutions, BPC
> and TMDS clock used by the existing KUnit tests:
> 
> - Week 0xff is not valid for EDID 1.3; set it to 0x00 so that the Model
>   year field becomes a regular Year of Manufacture.
> - The HDMI Forum VSDB Max TMDS Character Rate must be 0 when no rate
>   above 340 MHz is supported.  The HDMI VSDB still advertises 200 MHz as
>   Max TMDS Clock.
> - VIC 95 (3840x2160@30Hz) was reported as YUV420-only but was listed in
>   both the regular Video Data Block and the YCbCr 4:2:0 Video Data
>   Block.  Drop it from the regular VDB (so it stays advertised in the
>   4:2:0 VDB only) and remove the now unnecessary empty YCbCr 4:2:0
>   Capability Map Data Block.
> - Add a Video Capability Data Block advertising selectable RGB and YCC
>   quantization range plus underscan for IT/CE formats; also set the 'IT
>   Video Formats Underscanned' bit in the CTA-861 extension header to
>   match.
> - Bump the Display Range Limits max pixel clock from 170 MHz to 300 MHz
>   so it covers the 297 MHz pixel rate of VIC 95.
> - Drop the 'native' flag from VIC 16 in the Video Data Block so it is no
>   longer flagged as a second native progressive timing alongside the
>   preferred DTD.
> 
> The only remaining warning is HDMI 2.1 related and can be ignored, as it
> requires that any mode listed in the YCbCr 4:2:0 Video Data Block must
> have a corresponding RGB pixel clock >= 590 MHz.
> 
> Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
> ---
>  drivers/gpu/drm/tests/drm_kunit_edid.c | 65 +++++++++++++++++++++-------------
>  1 file changed, 41 insertions(+), 24 deletions(-)
> 
> diff --git a/drivers/gpu/drm/tests/drm_kunit_edid.c b/drivers/gpu/drm/tests/drm_kunit_edid.c
> index c807ae0d9faa..cf28f3c0f844 100644
> --- a/drivers/gpu/drm/tests/drm_kunit_edid.c
> +++ b/drivers/gpu/drm/tests/drm_kunit_edid.c
> @@ -766,22 +766,22 @@ EXPORT_SYMBOL(test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz);
>   * edid-decode (hex):
>   *
>   * 00 ff ff ff ff ff ff 00 31 d8 34 00 00 00 00 00
> - * ff 23 01 03 80 60 36 78 0f ee 91 a3 54 4c 99 26
> + * 00 23 01 03 80 60 36 78 0f ee 91 a3 54 4c 99 26
>   * 0f 50 54 20 00 00 01 01 01 01 01 01 01 01 01 01
>   * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
>   * 45 00 c0 1c 32 00 00 1e 00 00 00 fc 00 54 65 73
>   * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 18
> - * 55 18 5e 11 00 0a 20 20 20 20 20 20 00 00 00 10
> - * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 bb
> + * 55 18 5e 1e 00 0a 20 20 20 20 20 20 00 00 00 10
> + * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ad
>   *
> - * 02 03 29 31 42 90 5f 6c 03 0c 00 10 00 78 28 20
> - * 00 00 01 03 6d d8 5d c4 01 28 80 07 00 00 00 00
> - * 00 00 e3 0f 00 00 e2 0e 5f 00 00 00 00 00 00 00
> + * 02 03 27 b1 41 10 6c 03 0c 00 10 00 78 28 20 00
> + * 00 01 03 6d d8 5d c4 01 00 80 07 00 00 00 00 00
> + * 00 e2 00 ca e2 0e 5f 00 00 00 00 00 00 00 00 00
>   * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>   * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
> - * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ca
> + * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 9a
>   *
>   * ----------------
>   *
> @@ -790,7 +790,7 @@ EXPORT_SYMBOL(test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz);
>   *   Vendor & Product Identification:
>   *     Manufacturer: LNX
>   *     Model: 52
> - *     Model year: 2025
> + *     Made in: 2025
>   *   Basic Display Parameters & Features:
>   *     Digital display
>   *     Maximum image size: 96 cm x 54 cm
> @@ -813,21 +813,21 @@ EXPORT_SYMBOL(test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz);
>   *                  Vfront    4 Vsync   5 Vback   36 Vpol P
>   *     Display Product Name: 'Test EDID'
>   *     Display Range Limits:
> - *       Monitor ranges (GTF): 24-85 Hz V, 24-94 kHz H, max dotclock 170 MHz
> + *       Monitor ranges (GTF): 24-85 Hz V, 24-94 kHz H, max dotclock 300 MHz
>   *     Dummy Descriptor:
>   *   Extension blocks: 1
> - * Checksum: 0xbb
> + * Checksum: 0xad
>   *
>   * ----------------
>   *
>   * Block 1, CTA-861 Extension Block:
>   *   Revision: 3
> + *   Underscans IT Video Formats by default
>   *   Supports YCbCr 4:4:4
>   *   Supports YCbCr 4:2:2
>   *   Native detailed modes: 1
>   *   Video Data Block:
> - *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (native)
> - *     VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
> + *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
>   *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
>   *     Source physical address: 1.0.0.0
>   *     DC_48bit
> @@ -838,40 +838,57 @@ EXPORT_SYMBOL(test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz);
>   *     Extended HDMI video details:
>   *   Vendor-Specific Data Block (HDMI Forum), OUI C4-5D-D8:
>   *     Version: 1
> - *     Maximum TMDS Character Rate: 200 MHz
>   *     SCDC Present
>   *     Supports 16-bits/component Deep Color 4:2:0 Pixel Encoding
>   *     Supports 12-bits/component Deep Color 4:2:0 Pixel Encoding
>   *     Supports 10-bits/component Deep Color 4:2:0 Pixel Encoding
> - *   YCbCr 4:2:0 Capability Map Data Block:
> - *     Empty Capability Map
> + *     VRRmin: 0 Hz
> + *     VRRmax: 0 Hz
> + *   Video Capability Data Block:
> + *     YCbCr quantization: Selectable (via AVI YQ)
> + *     RGB quantization: Selectable (via AVI Q)
> + *     PT scan behavior: No Data
> + *     IT scan behavior: Always Underscanned
> + *     CE scan behavior: Always Underscanned
>   *   YCbCr 4:2:0 Video Data Block:
>   *     VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
> - * Checksum: 0xca
> + * Checksum: 0x9a  Unused space in Extension Block: 88 bytes
> + *
> + * ----------------
> + *
> + * edid-decode 1.33.0
> + *
> + * Warnings:
> + *
> + * Block 1, CTA-861 Extension Block:
> + *   YCbCr 4:2:0 Video Data Block: Some YCbCr 4:2:0 timings are invalid for HDMI 2.1
> + *     (which requires an RGB timings pixel rate >= 590 MHz).
> + *
> + * EDID conformity: PASS
>   */
>  const unsigned char test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz[] = {
>  	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x34, 0x00,
> -	0x00, 0x00, 0x00, 0x00, 0xff, 0x23, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x23, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78,
>  	0x0f, 0xee, 0x91, 0xa3, 0x54, 0x4c, 0x99, 0x26, 0x0f, 0x50, 0x54, 0x20,
>  	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
>  	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
>  	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0xc0, 0x1c, 0x32, 0x00, 0x00, 0x1e,
>  	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
>  	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x18,
> -	0x55, 0x18, 0x5e, 0x11, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
> +	0x55, 0x18, 0x5e, 0x1e, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
>  	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> -	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xbb, 0x02, 0x03, 0x29, 0x31,
> -	0x42, 0x90, 0x5f, 0x6c, 0x03, 0x0c, 0x00, 0x10, 0x00, 0x78, 0x28, 0x20,
> -	0x00, 0x00, 0x01, 0x03, 0x6d, 0xd8, 0x5d, 0xc4, 0x01, 0x28, 0x80, 0x07,
> -	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x0f, 0x00, 0x00, 0xe2, 0x0e,
> -	0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xad, 0x02, 0x03, 0x27, 0xb1,
> +	0x41, 0x10, 0x6c, 0x03, 0x0c, 0x00, 0x10, 0x00, 0x78, 0x28, 0x20, 0x00,
> +	0x00, 0x01, 0x03, 0x6d, 0xd8, 0x5d, 0xc4, 0x01, 0x00, 0x80, 0x07, 0x00,
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0xe2, 0x00, 0xca, 0xe2, 0x0e, 0x5f, 0x00,
>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
>  	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> -	0x00, 0x00, 0x00, 0xca
> +	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
> +	0x00, 0x00, 0x00, 0x9a,
>  };
>  EXPORT_SYMBOL(test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz);

Acked-by: Maxime Ripard <mripard@kernel.org>

I've been collecting descriptions of these EDIDs here:
https://github.com/mripard/redid/tree/main/edid-generator/samples

If you ever have the chance or the motivation, it would be great to
submit a sample for this one.

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]

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

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-14 18:03 [PATCH 00/25] drm: HDMI connector API cleanup and HDMI 2.0 test coverage Cristian Ciocaltea
2026-11-14 18:03 ` [PATCH 01/25] video/hdmi: Copy SPD vendor/product with strtomem_pad() Cristian Ciocaltea
2026-11-14 18:15   ` sashiko-bot
2026-11-23 12:53   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 02/25] video/hdmi: Define SPD InfoFrame vendor/product field lengths Cristian Ciocaltea
2026-11-23 12:52   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 03/25] drm/display: hdmi-state-helper: Drop drm_atomic_helper_connector_hdmi_force() Cristian Ciocaltea
2026-11-14 18:03 ` [PATCH 04/25] drm/display: hdmi-state-helper: Reject connectors lacking HDMI funcs Cristian Ciocaltea
2026-11-23 12:57   ` Maxime Ripard
2026-11-24 19:49     ` Cristian Ciocaltea
2026-11-14 18:03 ` [PATCH 05/25] drm/tests: connector: Convert to drmm_connector_hdmi_init() Cristian Ciocaltea
2026-11-23 12:57   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 06/25] drm/tests: hdmi: " Cristian Ciocaltea
2026-11-14 18:14   ` sashiko-bot
2026-11-23 12:58   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 07/25] drm/connector: Remove drmm_connector_hdmi_ini2() Cristian Ciocaltea
2026-11-23 13:02   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 08/25] drm/connector: Drop redundant hdmi vendor/product fields Cristian Ciocaltea
2026-11-23 13:07   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 09/25] drm/connector: Drop redundant hdmi supported_formats field Cristian Ciocaltea
2026-11-23 13:07   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 10/25] drm/connector: Drop redundant max_bpc field Cristian Ciocaltea
2026-11-23 13:07   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 11/25] drm/connector: Use the SPD InfoFrame field length defines Cristian Ciocaltea
2026-11-14 18:03 ` [PATCH 12/25] drm/connector: Fix comment in drmm_connector_hdmi_init() Cristian Ciocaltea
2026-11-23 15:31   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 13/25] drm/tests: edid: Fix conformity for 1080p+4K YUV420 200MHz EDID Cristian Ciocaltea
2026-11-23 15:51   ` Maxime Ripard [this message]
2026-11-24 20:08     ` Cristian Ciocaltea
2026-11-27 15:15       ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 14/25] drm/tests: edid: Fix conformity for 4K RGB/YUV 340MHz EDID Cristian Ciocaltea
2026-11-14 18:03 ` [PATCH 15/25] drm/tests: edid: Add 4K@60Hz EDID with 600MHz TMDS Cristian Ciocaltea
2026-11-23 15:52   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 16/25] drm/tests: connector: Add HDMI max_tmds_char_rate init coverage Cristian Ciocaltea
2026-11-23 16:02   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 17/25] drm/tests: connector: Add HDMI source-side scrambler coverage Cristian Ciocaltea
2026-11-23 16:03   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 18/25] drm/tests: hdmi: Cover mode validation against connector max_tmds_char_rate Cristian Ciocaltea
2026-11-23 16:31   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 19/25] drm/tests: hdmi: Verify scrambler_needed computation Cristian Ciocaltea
2026-11-23 16:32   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 20/25] drm/tests: hdmi: Add SPD InfoFrame vendor/product coverage Cristian Ciocaltea
2026-11-23 16:34   ` Maxime Ripard
2026-11-14 18:03 ` [PATCH 21/25] drm/tests: hdmi: Add HDMI 2.0 scrambling helpers coverage Cristian Ciocaltea
2026-11-14 18:21   ` sashiko-bot
2026-11-14 18:03 ` [PATCH 22/25] drm/tests: hdmi: Verify SCDC resync on hotplug Cristian Ciocaltea
2026-11-14 18:22   ` sashiko-bot
2026-11-14 18:03 ` [PATCH 23/25] drm/tests: bridge: Set supported HDMI version Cristian Ciocaltea
2026-11-14 18:14   ` sashiko-bot
2026-11-14 18:03 ` [PATCH 24/25] drm/tests: bridge: Add HDMI 2.0 bridge connector coverage Cristian Ciocaltea
2026-11-14 18:03 ` [PATCH 25/25] drm/tests: probe-helper: Add .force_ctx() callback coverage Cristian Ciocaltea
2026-11-14 18:28   ` sashiko-bot

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=awRgyldN6JaiisFJ@houat \
    --to=mripard@kernel.org \
    --cc=airlied@gmail.com \
    --cc=cristian.ciocaltea@collabora.com \
    --cc=deller@gmx.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=hverkuil@kernel.org \
    --cc=kernel@collabora.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marbugge@cisco.com \
    --cc=mchehab@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=treding@nvidia.com \
    --cc=tzimmermann@suse.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.