linux/drivers/gpu
Thomas Zimmermann efb67f52fb drm/panic: Compile KUnit tests as module
Fix dependency of the panic-helper KUnit tests on CONFIG_DRM_KUNIT_TEST=y
and make them build as a module. Export the necessary interfaces from the
panic helpers iff the KUnit framework has been enabled.

Select DRM_PANIC_HELPER from DRM_KUNIT_TEST to meet the dependencies of
the panic-helper tests.

It is now possible to run the tests by modprobe-ing drm_panic_helper_test
at runtime.

v5:
- clear test description with drm_panic_helper_clear_description() (Sashiko)
v3:
- clean up after each test case (Sashiko)
v2:
- fix parameter order in decl of drm_panic_helper_draw_screen_qr()
  (Sashiko)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patch.msgid.link/20260911124540.279841-15-tzimmermann@suse.de
2026-09-17 09:16:41 +02:00
..
drm drm/panic: Compile KUnit tests as module 2026-09-17 09:16:41 +02:00
host1x Linux 7.2 2026-08-20 10:58:44 +10:00
ipu-v3
nova-core drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
tests gpu/tests/buddy: add dirty tracker performance KUnit test 2026-08-27 17:59:01 +05:30
trace
vga vga-switcheroo: Remove unused interfaces 2026-09-11 16:52:43 +02:00
buddy.c Merge drm/drm-next into drm-misc-next 2026-09-07 13:44:24 +02:00
Kconfig
Makefile