summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-08-21 16:18:47 +0300
committerAlex Deucher <alexander.deucher@amd.com>2015-08-25 17:50:42 +0300
commitc14692f0a728a9d79fb03c7ce521eb07ec0e2b23 (patch)
treee6689d2a218e40d4f11342a7a19cfd0f2864e48d /drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
parent6c859274f363be9dc13f8849bdc59bb64f922f26 (diff)
downloadlinux-c14692f0a728a9d79fb03c7ce521eb07ec0e2b23.tar.xz
drm/amdgpu: remove entity reference from sched fence
Entity don't live as long as scheduler fences. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.h')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
index 46b528d41f7f..62655f4cf11d 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
@@ -48,7 +48,6 @@ struct amd_sched_entity {
struct amd_gpu_scheduler *scheduler;
wait_queue_head_t wait_queue;
uint64_t fence_context;
- char name[20];
};
/**
@@ -64,8 +63,7 @@ struct amd_sched_rq {
struct amd_sched_fence {
struct fence base;
- struct fence_cb cb;
- struct amd_sched_entity *entity;
+ struct amd_gpu_scheduler *scheduler;
spinlock_t lock;
};
@@ -111,6 +109,7 @@ struct amd_gpu_scheduler {
uint32_t ring_id;
wait_queue_head_t wait_queue;
uint32_t hw_submission_limit;
+ char name[20];
};
struct amd_gpu_scheduler *