drm/tests: Drop drm_kunit_helper_acquire_ctx_alloc()
authorMaxime Ripard <mripard@kernel.org>
Thu, 20 Feb 2025 13:25:37 +0000 (14:25 +0100)
committerMaxime Ripard <mripard@kernel.org>
Mon, 3 Mar 2025 13:21:58 +0000 (14:21 +0100)
commit30188df0c387d9837562bbcc38ede98f6a1f0d46
treea31b85ead5dc1c27a6abdb803203771017fa92e4
parentdb505ff68c122734ed0e944f9f8430eb89947fdb
drm/tests: Drop drm_kunit_helper_acquire_ctx_alloc()

lockdep complains when a lock is released in a separate thread the
lock is taken in, and it turns out that kunit does run its actions in a
separate thread than the test ran in.

This means that drm_kunit_helper_acquire_ctx_alloc() just cannot work as
it's supposed to, so let's just get rid of it.

Suggested-by: Simona Vetter <simona.vetter@ffwll.ch>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250220132537.2834168-1-mripard@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/tests/drm_atomic_state_test.c
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c
drivers/gpu/drm/tests/drm_kunit_helpers.c
drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c
include/drm/drm_kunit_helpers.h