Files
linux/drivers/gpu/drm/scheduler/tests/Makefile
T
Tvrtko Ursulin 5a99350794 drm/sched: Add scheduler unit testing infrastructure and some basic tests
Implement a mock scheduler backend and add some basic test to exercise the
core scheduler code paths.

Mock backend (kind of like a very simple mock GPU) can either process jobs
by tests manually advancing the "timeline" job at a time, or alternatively
jobs can be configured with a time duration in which case they get
completed asynchronously from the unit test code.

Core scheduler classes are subclassed to support this mock implementation.

The tests added are just a few simple submission patterns.

Signed-off-by: Tvrtko Ursulin <[email protected]>
Suggested-by: Philipp Stanner <[email protected]>
Cc: Christian König <[email protected]>
Cc: Danilo Krummrich <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Philipp Stanner <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Philipp Stanner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2025-03-24 10:41:52 +01:00

8 lines
165 B
Makefile

# SPDX-License-Identifier: GPL-2.0
drm-sched-tests-y := \
mock_scheduler.o \
tests_basic.o
obj-$(CONFIG_DRM_SCHED_KUNIT_TEST) += drm-sched-tests.o