Provide the basic support to enable using YUV420 as an RGB fallback when computing the best output format and color depth.
Signed-off-by: Cristian Ciocaltea <cristian.ciocal...@collabora.com> --- Changes in v2: - Provided the missing Fixes tag on first patch (Dmitry) - Added patch "drm/connector: hdmi: Improve debug message for supported format" - Reworked "drm/connector: hdmi: Use YUV420 output format as an RGB fallback" so that the fallback to YUV420 will be attempted only when RGB cannot be supported for any of the available color depths (Maxime) - Added a patch to simplify EDID setup in KUnit cases - Added two patches extending KUnit coverage for YUV420 by providing tests for limited range and max TMDS rate fallback - Rebased series onto drm-misc-next-2025-03-06 - Link to v1: https://lore.kernel.org/r/20241130-hdmi-conn-yuv-v1-0-254279a08...@collabora.com --- Cristian Ciocaltea (7): drm/connector: hdmi: Evaluate limited range after computing format drm/connector: hdmi: Add support for YUV420 format verification drm/connector: hdmi: Improve debug message for supported format drm/connector: hdmi: Use YUV420 output format as an RGB fallback drm/tests: hdmi: Add macros to simplify EDID setup drm/tests: hdmi: Add limited range tests for YUV420 mode drm/tests: hdmi: Add max TMDS rate fallback tests for YUV420 mode drivers/gpu/drm/display/drm_hdmi_state_helper.c | 115 +++-- drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c | 479 ++++++++++++++------- drivers/gpu/drm/tests/drm_kunit_edid.h | 222 ++++++++++ 3 files changed, 615 insertions(+), 201 deletions(-) --- base-commit: 4423e607ff50157aaf088854b145936cbab4d560 change-id: 20241130-hdmi-conn-yuv-e1fa596df768