mirror of
https://github.com/torvalds/linux.git
synced 2026-04-27 19:12:29 -04:00
drm/sched: Add a simple timeout test
Add a very simple timeout test which submits a single job and verifies that the timeout handling will run if the backend failed to complete the job in time. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Cc: Christian König <christian.koenig@amd.com> Cc: Danilo Krummrich <dakr@kernel.org> Cc: Matthew Brost <matthew.brost@intel.com> Cc: Philipp Stanner <phasta@kernel.org> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Philipp Stanner <phasta@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20250324092633.49746-4-tvrtko.ursulin@igalia.com
This commit is contained in:
committed by
Philipp Stanner
parent
5a99350794
commit
53e6597492
@@ -97,6 +97,7 @@ struct drm_mock_sched_job {
|
||||
struct completion done;
|
||||
|
||||
#define DRM_MOCK_SCHED_JOB_DONE 0x1
|
||||
#define DRM_MOCK_SCHED_JOB_TIMEDOUT 0x2
|
||||
unsigned long flags;
|
||||
|
||||
struct list_head link;
|
||||
@@ -129,7 +130,8 @@ drm_sched_job_to_mock_job(struct drm_sched_job *sched_job)
|
||||
return container_of(sched_job, struct drm_mock_sched_job, base);
|
||||
};
|
||||
|
||||
struct drm_mock_scheduler *drm_mock_sched_new(struct kunit *test);
|
||||
struct drm_mock_scheduler *drm_mock_sched_new(struct kunit *test,
|
||||
long timeout);
|
||||
void drm_mock_sched_fini(struct drm_mock_scheduler *sched);
|
||||
unsigned int drm_mock_sched_advance(struct drm_mock_scheduler *sched,
|
||||
unsigned int num);
|
||||
|
||||
Reference in New Issue
Block a user