diff options
author | Christian König <christian.koenig@amd.com> | 2022-09-28 10:17:40 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2022-11-03 12:45:19 +0100 |
commit | 4d5230b50dd42afa2dfa6b13c44b0d90ecb78510 (patch) | |
tree | 212225482e54d7c93a6201485746e7cb2fd5cd87 /include/drm/gpu_scheduler.h | |
parent | drm/ofdrm: Depend on CONFIG_MMU (diff) | |
download | linux-4d5230b50dd42afa2dfa6b13c44b0d90ecb78510.tar.xz linux-4d5230b50dd42afa2dfa6b13c44b0d90ecb78510.zip |
drm/scheduler: add drm_sched_job_add_resv_dependencies
Add a new function to update job dependencies from a resv obj.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014084641.128280-3-christian.koenig@amd.com
Diffstat (limited to 'include/drm/gpu_scheduler.h')
-rw-r--r-- | include/drm/gpu_scheduler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 1f7d9dd1a444..8d1747f3e878 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_scheduler.h @@ -32,6 +32,8 @@ #define MAX_WAIT_SCHED_ENTITY_Q_EMPTY msecs_to_jiffies(1000) +enum dma_resv_usage; +struct dma_resv; struct drm_gem_object; struct drm_gpu_scheduler; @@ -505,6 +507,9 @@ int drm_sched_job_init(struct drm_sched_job *job, void drm_sched_job_arm(struct drm_sched_job *job); int drm_sched_job_add_dependency(struct drm_sched_job *job, struct dma_fence *fence); +int drm_sched_job_add_resv_dependencies(struct drm_sched_job *job, + struct dma_resv *resv, + enum dma_resv_usage usage); int drm_sched_job_add_implicit_dependencies(struct drm_sched_job *job, struct drm_gem_object *obj, bool write); |