Home
last modified time | relevance | path

Searched refs:sched_job (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/drivers/gpu/drm/etnaviv/
Detnaviv_sched.c21 etnaviv_sched_dependency(struct drm_sched_job *sched_job, in etnaviv_sched_dependency() argument
24 struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job); in etnaviv_sched_dependency()
72 static struct dma_fence *etnaviv_sched_run_job(struct drm_sched_job *sched_job) in etnaviv_sched_run_job() argument
74 struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job); in etnaviv_sched_run_job()
77 if (likely(!sched_job->s_fence->finished.error)) in etnaviv_sched_run_job()
85 static void etnaviv_sched_timedout_job(struct drm_sched_job *sched_job) in etnaviv_sched_timedout_job() argument
87 struct etnaviv_gem_submit *submit = to_etnaviv_submit(sched_job); in etnaviv_sched_timedout_job()
108 schedule_delayed_work(&sched_job->work_tdr, in etnaviv_sched_timedout_job()
109 sched_job->sched->timeout); in etnaviv_sched_timedout_job()
115 drm_sched_hw_job_reset(&gpu->sched, sched_job); in etnaviv_sched_timedout_job()
[all …]
Detnaviv_sched.h14 struct etnaviv_gem_submit *to_etnaviv_submit(struct drm_sched_job *sched_job) in to_etnaviv_submit() argument
16 return container_of(sched_job, struct etnaviv_gem_submit, sched_job); in to_etnaviv_submit()
Detnaviv_gem.h96 struct drm_sched_job sched_job; member
/Linux-v4.19/drivers/gpu/drm/v3d/
Dv3d_sched.c28 to_v3d_job(struct drm_sched_job *sched_job) in to_v3d_job() argument
30 return container_of(sched_job, struct v3d_job, base); in to_v3d_job()
34 v3d_job_free(struct drm_sched_job *sched_job) in v3d_job_free() argument
36 struct v3d_job *job = to_v3d_job(sched_job); in v3d_job_free()
46 v3d_job_dependency(struct drm_sched_job *sched_job, in v3d_job_dependency() argument
49 struct v3d_job *job = to_v3d_job(sched_job); in v3d_job_dependency()
79 static struct dma_fence *v3d_job_run(struct drm_sched_job *sched_job) in v3d_job_run() argument
81 struct v3d_job *job = to_v3d_job(sched_job); in v3d_job_run()
151 v3d_job_timedout(struct drm_sched_job *sched_job) in v3d_job_timedout() argument
153 struct v3d_job *job = to_v3d_job(sched_job); in v3d_job_timedout()
[all …]
/Linux-v4.19/drivers/gpu/drm/scheduler/
Dgpu_scheduler_trace.h38 TP_PROTO(struct drm_sched_job *sched_job, struct drm_sched_entity *entity),
39 TP_ARGS(sched_job, entity),
51 __entry->id = sched_job->id;
52 __entry->fence = &sched_job->s_fence->finished;
53 __entry->name = sched_job->sched->name;
56 &sched_job->sched->hw_rq_count);
Dgpu_scheduler.c58 #define to_drm_sched_job(sched_job) \ argument
59 container_of((sched_job), struct drm_sched_job, queue_node)
484 struct drm_sched_job *sched_job = to_drm_sched_job( in drm_sched_entity_pop_job() local
487 if (!sched_job) in drm_sched_entity_pop_job()
490 while ((entity->dependency = sched->ops->dependency(sched_job, entity))) in drm_sched_entity_pop_job()
496 dma_fence_set_error(&sched_job->s_fence->finished, -ECANCELED); in drm_sched_entity_pop_job()
499 entity->last_scheduled = dma_fence_get(&sched_job->s_fence->finished); in drm_sched_entity_pop_job()
502 return sched_job; in drm_sched_entity_pop_job()
517 void drm_sched_entity_push_job(struct drm_sched_job *sched_job, in drm_sched_entity_push_job() argument
520 struct drm_gpu_scheduler *sched = sched_job->sched; in drm_sched_entity_push_job()
[all …]
/Linux-v4.19/include/drm/
Dgpu_scheduler.h216 struct dma_fence *(*dependency)(struct drm_sched_job *sched_job,
225 struct dma_fence *(*run_job)(struct drm_sched_job *sched_job);
231 void (*timedout_job)(struct drm_sched_job *sched_job);
237 void (*free_job)(struct drm_sched_job *sched_job);
292 void drm_sched_entity_push_job(struct drm_sched_job *sched_job,
/Linux-v4.19/drivers/gpu/drm/amd/amdgpu/
Damdgpu_job.c167 static struct dma_fence *amdgpu_job_dependency(struct drm_sched_job *sched_job, in amdgpu_job_dependency() argument
171 struct amdgpu_job *job = to_amdgpu_job(sched_job); in amdgpu_job_dependency()
200 static struct dma_fence *amdgpu_job_run(struct drm_sched_job *sched_job) in amdgpu_job_run() argument
202 struct amdgpu_ring *ring = to_amdgpu_ring(sched_job->sched); in amdgpu_job_run()
207 job = to_amdgpu_job(sched_job); in amdgpu_job_run()
Damdgpu_job.h33 #define to_amdgpu_job(sched_job) \ argument
34 container_of((sched_job), struct amdgpu_job, base)