Searched refs:s_job (Results 1 – 4 of 4) sorted by relevance
/Linux-v6.6/drivers/gpu/drm/scheduler/ |
D | sched_main.c | 265 static void drm_sched_job_done(struct drm_sched_job *s_job, int result) in drm_sched_job_done() argument 267 struct drm_sched_fence *s_fence = s_job->s_fence; in drm_sched_job_done() 288 struct drm_sched_job *s_job = container_of(cb, struct drm_sched_job, cb); in drm_sched_job_done_cb() local 290 drm_sched_job_done(s_job, f->error); in drm_sched_job_done_cb() 373 static void drm_sched_job_begin(struct drm_sched_job *s_job) in drm_sched_job_begin() argument 375 struct drm_gpu_scheduler *sched = s_job->sched; in drm_sched_job_begin() 378 list_add_tail(&s_job->list, &sched->pending_list); in drm_sched_job_begin() 440 struct drm_sched_job *s_job, *tmp; in drm_sched_stop() local 464 list_for_each_entry_safe_reverse(s_job, tmp, &sched->pending_list, in drm_sched_stop() 466 if (s_job->s_fence->parent && in drm_sched_stop() [all …]
|
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_job.c | 34 static enum drm_gpu_sched_stat amdgpu_job_timedout(struct drm_sched_job *s_job) in amdgpu_job_timedout() argument 36 struct amdgpu_ring *ring = to_amdgpu_ring(s_job->sched); in amdgpu_job_timedout() 37 struct amdgpu_job *job = to_amdgpu_job(s_job); in amdgpu_job_timedout() 45 __func__, s_job->sched->name); in amdgpu_job_timedout() 55 amdgpu_ring_soft_recovery(ring, job->vmid, s_job->s_fence->parent)) { in amdgpu_job_timedout() 57 s_job->sched->name); in amdgpu_job_timedout() 68 dma_fence_set_error(&s_job->s_fence->finished, -ETIME); in amdgpu_job_timedout() 178 static void amdgpu_job_free_cb(struct drm_sched_job *s_job) in amdgpu_job_free_cb() argument 180 struct amdgpu_job *job = to_amdgpu_job(s_job); in amdgpu_job_free_cb() 182 drm_sched_job_cleanup(s_job); in amdgpu_job_free_cb() [all …]
|
D | amdgpu_debugfs.c | 1837 struct drm_sched_job *s_job; in amdgpu_ib_preempt_job_recovery() local 1841 list_for_each_entry(s_job, &sched->pending_list, list) { in amdgpu_ib_preempt_job_recovery() 1842 fence = sched->ops->run_job(s_job); in amdgpu_ib_preempt_job_recovery() 1851 struct drm_sched_job *s_job, *tmp; in amdgpu_ib_preempt_mark_partial_job() local 1873 list_for_each_entry_safe(s_job, tmp, &sched->pending_list, list) { in amdgpu_ib_preempt_mark_partial_job() 1874 if (dma_fence_is_signaled(&s_job->s_fence->finished)) { in amdgpu_ib_preempt_mark_partial_job() 1876 list_del_init(&s_job->list); in amdgpu_ib_preempt_mark_partial_job() 1877 sched->ops->free_job(s_job); in amdgpu_ib_preempt_mark_partial_job() 1880 job = to_amdgpu_job(s_job); in amdgpu_ib_preempt_mark_partial_job()
|
/Linux-v6.6/include/drm/ |
D | gpu_scheduler.h | 376 static inline bool drm_sched_invalidate_job(struct drm_sched_job *s_job, in drm_sched_invalidate_job() argument 379 return s_job && atomic_inc_return(&s_job->karma) > threshold; in drm_sched_invalidate_job()
|