]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/tests: hdmi: Handle drm_kunit_helper_enable_crtc_connector() returning EDEADLK
authorJosé Expósito <jose.exposito89@gmail.com>
Tue, 4 Nov 2025 10:22:35 +0000 (11:22 +0100)
committerJosé Expósito <jose.exposito89@gmail.com>
Fri, 12 Dec 2025 09:07:43 +0000 (10:07 +0100)
commitfe27e709d91fb645182751b602cb88966b4a1bb6
treec2c3fbf8d42b830bf36f6d18dc0fa339b2ee4229
parent6cb31fba137d45e682ce455b8ea364f44d5d4f98
drm/tests: hdmi: Handle drm_kunit_helper_enable_crtc_connector() returning EDEADLK

Fedora/CentOS/RHEL CI is reporting intermittent failures while running
the KUnit tests present in drm_hdmi_state_helper_test.c [1].

While the specific test causing the failure change between runs, all of
them are caused by drm_kunit_helper_enable_crtc_connector() returning
-EDEADLK. The error trace always follow this structure:

    # <test name>: ASSERTION FAILED at
    # drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c:<line>
    Expected ret == 0, but
        ret == -35 (0xffffffffffffffdd)

As documented, if the drm_kunit_helper_enable_crtc_connector() function
returns -EDEADLK (-35), the entire atomic sequence must be restarted.

Handle this error code for all function calls.

Closes: https://datawarehouse.cki-project.org/issue/4039 [1]
Fixes: 6a5c0ad7e08e ("drm/tests: hdmi_state_helpers: Switch to new helper")
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patch.msgid.link/20251104102258.10026-1-jose.exposito89@gmail.com
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c