diff options
Diffstat (limited to 'amdgpu/amdgpu_internal.h')
-rw-r--r-- | amdgpu/amdgpu_internal.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/amdgpu/amdgpu_internal.h b/amdgpu/amdgpu_internal.h index 7dd5c1c7..557ba1f1 100644 --- a/amdgpu/amdgpu_internal.h +++ b/amdgpu/amdgpu_internal.h | |||
@@ -111,8 +111,23 @@ struct amdgpu_bo_list { | |||
111 | 111 | ||
112 | struct amdgpu_context { | 112 | struct amdgpu_context { |
113 | struct amdgpu_device *dev; | 113 | struct amdgpu_device *dev; |
114 | /** Mutex for accessing fences and to maintain command submissions | ||
115 | in good sequence. */ | ||
116 | pthread_mutex_t sequence_mutex; | ||
114 | /* context id*/ | 117 | /* context id*/ |
115 | uint32_t id; | 118 | uint32_t id; |
119 | uint64_t last_seq[AMDGPU_HW_IP_NUM][AMDGPU_HW_IP_INSTANCE_MAX_COUNT][AMDGPU_CS_MAX_RINGS]; | ||
120 | struct list_head sem_list[AMDGPU_HW_IP_NUM][AMDGPU_HW_IP_INSTANCE_MAX_COUNT][AMDGPU_CS_MAX_RINGS]; | ||
121 | }; | ||
122 | |||
123 | /** | ||
124 | * Structure describing sw semaphore based on scheduler | ||
125 | * | ||
126 | */ | ||
127 | struct amdgpu_semaphore { | ||
128 | atomic_t refcount; | ||
129 | struct list_head list; | ||
130 | struct amdgpu_cs_fence signal_fence; | ||
116 | }; | 131 | }; |
117 | 132 | ||
118 | /** | 133 | /** |