mirror of
https://github.com/torvalds/linux.git
synced 2026-04-25 18:12:26 -04:00
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>
This commit is contained in:
committed by
Alex Deucher
parent
6c859274f3
commit
c14692f0a7
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user