diff options
author | Matthew Brost <matthew.brost@intel.com> | 2023-10-31 04:24:39 +0100 |
---|---|---|
committer | Luben Tuikov <ltuikov89@gmail.com> | 2023-11-01 22:29:23 +0100 |
commit | 3c6c7ca4508b6cb1a033ac954c50a1b2c97af883 (patch) | |
tree | 86f721d9c4f6e09af606e33f89f42f0896d5fc72 /include/drm/gpu_scheduler.h | |
parent | drm/sched: Add drm_sched_start_timeout_unlocked helper (diff) | |
download | linux-3c6c7ca4508b6cb1a033ac954c50a1b2c97af883.tar.xz linux-3c6c7ca4508b6cb1a033ac954c50a1b2c97af883.zip |
drm/sched: Add a helper to queue TDR immediately
Add a helper whereby a driver can invoke TDR immediately.
v2:
- Drop timeout args, rename function, use mod delayed work (Luben)
v3:
- s/XE/Xe (Luben)
- present tense in commit message (Luben)
- Adjust comment for drm_sched_tdr_queue_imm (Luben)
v4:
- Adjust commit message (Luben)
Cc: Luben Tuikov <luben.tuikov@amd.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://lore.kernel.org/r/20231031032439.1558703-6-matthew.brost@intel.com
Signed-off-by: Luben Tuikov <ltuikov89@gmail.com>
Diffstat (limited to 'include/drm/gpu_scheduler.h')
-rw-r--r-- | include/drm/gpu_scheduler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 6655aeeef9bb..9daa78d2c04c 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_scheduler.h @@ -557,6 +557,7 @@ void drm_sched_entity_modify_sched(struct drm_sched_entity *entity, struct drm_gpu_scheduler **sched_list, unsigned int num_sched_list); +void drm_sched_tdr_queue_imm(struct drm_gpu_scheduler *sched); void drm_sched_job_cleanup(struct drm_sched_job *job); void drm_sched_wakeup_if_can_queue(struct drm_gpu_scheduler *sched); bool drm_sched_wqueue_ready(struct drm_gpu_scheduler *sched); |