Patch "drm/tests: hdmi: Fix WW_MUTEX_SLOWPATH failures" has been added to the 6.13-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/tests: hdmi: Fix WW_MUTEX_SLOWPATH failures

to the 6.13-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-tests-hdmi-fix-ww_mutex_slowpath-failures.patch
and it can be found in the queue-6.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6e70c9e16aa2f1dec27ddbbcf359f291b88637ec
Author: Maxime Ripard <mripard@xxxxxxxxxx>
Date:   Wed Jan 29 15:21:53 2025 +0100

    drm/tests: hdmi: Fix WW_MUTEX_SLOWPATH failures
    
    [ Upstream commit fb97bc2e47f694f79d6358d981ae0428db8e8088 ]
    
    The light_up_connector helper function in the HDMI infrastructure unit
    tests uses drm_atomic_set_crtc_for_connector(), but fails when it
    returns an error.
    
    This function can return EDEADLK though if the sequence needs to be
    restarted, and WW_MUTEX_SLOWPATH is meant to test that we handle it
    properly.
    
    Let's handle EDEADLK and restart the sequence in our tests as well.
    
    Fixes: eb66d34d793e ("drm/tests: Add output bpc tests")
    Reported-by: Dave Airlie <airlied@xxxxxxxxx>
    Closes: https://lore.kernel.org/r/CAPM=9tzJ4-ERDxvuwrCyUPY0=+P44orhp1kLWVGL7MCfpQjMEQ@xxxxxxxxxxxxxx/
    Link: https://lore.kernel.org/r/20241031091558.2435850-1-mripard@xxxxxxxxxx
    Reviewed-by: Simona Vetter <simona.vetter@xxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20250129-test-kunit-v2-1-fe59c43805d5@xxxxxxxxxx
    Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c b/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
index 4ba869e0e794c..cbd9584af3299 100644
--- a/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
+++ b/drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
@@ -70,10 +70,17 @@ static int light_up_connector(struct kunit *test,
 	state = drm_kunit_helper_atomic_state_alloc(test, drm, ctx);
 	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, state);
 
+retry:
 	conn_state = drm_atomic_get_connector_state(state, connector);
 	KUNIT_ASSERT_NOT_ERR_OR_NULL(test, conn_state);
 
 	ret = drm_atomic_set_crtc_for_connector(conn_state, crtc);
+	if (ret == -EDEADLK) {
+		drm_atomic_state_clear(state);
+		ret = drm_modeset_backoff(ctx);
+		if (!ret)
+			goto retry;
+	}
 	KUNIT_EXPECT_EQ(test, ret, 0);
 
 	crtc_state = drm_atomic_get_crtc_state(state, crtc);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux