mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-23 17:02:06 -04:00
drm/amdgpu: properly abstract scheduler timeout handling
The driver shouldn't mess with the scheduler internals. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Monk.Liu <monk.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
1e24e31f22
commit
0e51a772e2
@@ -108,6 +108,7 @@ static inline struct amd_sched_fence *to_amd_sched_fence(struct fence *f)
|
||||
struct amd_sched_backend_ops {
|
||||
struct fence *(*dependency)(struct amd_sched_job *sched_job);
|
||||
struct fence *(*run_job)(struct amd_sched_job *sched_job);
|
||||
void (*timedout_job)(struct amd_sched_job *sched_job);
|
||||
};
|
||||
|
||||
enum amd_sched_priority {
|
||||
@@ -153,7 +154,6 @@ void amd_sched_fence_signal(struct amd_sched_fence *fence);
|
||||
int amd_sched_job_init(struct amd_sched_job *job,
|
||||
struct amd_gpu_scheduler *sched,
|
||||
struct amd_sched_entity *entity,
|
||||
void (*timeout_cb)(struct work_struct *work),
|
||||
void (*free_cb)(struct kref* refcount),
|
||||
void *owner, struct fence **fence);
|
||||
static inline void amd_sched_job_get(struct amd_sched_job *job)
|
||||
|
||||
Reference in New Issue
Block a user