mirror-linux/drivers/gpu/drm/tests
Thomas Zimmermann 3f41307d58 drm/tests: shmem: Hold reservation lock around purge
Acquire and release the GEM object's reservation lock around calls
to the object's purge operation. The tests use
drm_gem_shmem_purge_locked(), which led to errors such as show below.

[   58.709128] WARNING: CPU: 1 PID: 1354 at drivers/gpu/drm/drm_gem_shmem_helper.c:515 drm_gem_shmem_purge_locked+0x51c/0x740

Only export the new helper drm_gem_shmem_purge() for Kunit tests.
This is not an interface for regular drivers.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 954907f714 ("drm/shmem-helper: Refactor locked/unlocked functions")
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.16+
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patch.msgid.link/20251212160317.287409-6-tzimmermann@suse.de
2025-12-21 18:21:36 +01:00
..
.kunitconfig drm/tests: make sure drm_client_modeset tests are enabled 2025-09-16 20:20:21 +03:00
Makefile drm/tests: Add a few tests around drm_fixed.h 2025-11-26 23:03:33 +01:00
drm_atomic_state_test.c drm/tests: Drop drm_kunit_helper_acquire_ctx_alloc() 2025-03-03 14:21:58 +01:00
drm_atomic_test.c drm/tests: Create tests for drm_atomic 2025-03-20 14:45:48 +01:00
drm_bridge_test.c drm/tests: bridge: add KUnit tests for devm_drm_bridge_alloc() 2025-06-06 15:50:23 +02:00
drm_buddy_test.c drm/buddy: Add KUnit tests for allocator performance under fragmentation 2025-10-07 19:19:15 +05:30
drm_client_modeset_test.c Merge tag 'drm-misc-next-2025-04-09' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next 2025-04-14 15:29:49 +10:00
drm_cmdline_parser_test.c drm/tests: cmdline: Fix drm_display_mode memory leak 2025-04-08 17:28:14 +02:00
drm_connector_test.c
drm_damage_helper_test.c
drm_dp_mst_helper_test.c
drm_exec_test.c drm/test: drm_exec: use kzalloc() to allocate GEM objects 2025-08-29 17:42:20 +02:00
drm_fixp_test.c drm/tests: Add a few tests around drm_fixed.h 2025-11-26 23:03:33 +01:00
drm_format_helper_test.c drm/tests: Fix drm_test_fb_xrgb8888_to_xrgb2101010() on big-endian 2025-08-11 17:24:15 +02:00
drm_format_test.c
drm_framebuffer_test.c drm: Pass the format info to .fb_create() 2025-07-16 20:03:14 +03:00
drm_gem_shmem_test.c drm/tests: shmem: Hold reservation lock around purge 2025-12-21 18:21:36 +01:00
drm_hdmi_state_helper_test.c drm/tests: hdmi: Add test for unsuccessful fallback to YUV420 2025-06-02 11:02:39 +02:00
drm_kunit_edid.h drm/tests: edid: Add edid-decode --check output 2025-07-16 17:31:42 +02:00
drm_kunit_helpers.c drm: Include <linux/export.h> 2025-06-16 09:01:23 +02:00
drm_managed_test.c
drm_mm_test.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
drm_modes_test.c drm/tests: modes: Fix drm_display_mode memory leak 2025-04-08 17:28:21 +02:00
drm_plane_helper_test.c
drm_probe_helper_test.c drm/tests: probe-helper: Fix drm_display_mode memory leak 2025-04-08 17:28:25 +02:00
drm_rect_test.c
drm_sysfb_modeset_test.c drm/format-helper: Move drm_fb_build_fourcc_list() to sysfb helpers 2025-06-18 10:46:03 +02:00