Skip to content
Snippets Groups Projects
Verified Commit 5d14c08a authored by Maxime Ripard's avatar Maxime Ripard
Browse files

drm/tests: hdmi: Fix recursive locking


The find_preferred_mode() functions takes the mode_config mutex, but due
to the order most tests have, is called with the crtc_ww_class_mutex
taken. This raises a warning for a circular dependency when running the
tests with lockdep.

Reorder the tests to call find_preferred_mode before the acquire context
has been created to avoid the issue.

Reviewed-by: default avatarSimona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250129-test-kunit-v2-4-fe59c43805d5@kernel.org


Signed-off-by: Maxime Ripard's avatarMaxime Ripard <mripard@kernel.org>
parent 6b6bfd63
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment