diff options
| author | Christian König <christian.koenig@amd.com> | 2016-01-21 05:28:53 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2016-02-10 14:16:58 -0500 |
| commit | a27de35caab59bacf5c47713856739f86ec06e43 (patch) | |
| tree | 7452339b06230a40ed9f2986d1c525e1e793173c /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
| parent | a9a78b329a3e31a977f8d8ef64b2f3a574899992 (diff) | |
drm/amdgpu: remove the ring lock v2
It's not needed any more because all access goes through the scheduler now.
v2: Update commit message.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 3d4c2abfcfe8..081953e1ec6c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
| @@ -814,7 +814,6 @@ struct amdgpu_ring { | |||
| 814 | struct amd_gpu_scheduler sched; | 814 | struct amd_gpu_scheduler sched; |
| 815 | 815 | ||
| 816 | spinlock_t fence_lock; | 816 | spinlock_t fence_lock; |
| 817 | struct mutex *ring_lock; | ||
| 818 | struct amdgpu_bo *ring_obj; | 817 | struct amdgpu_bo *ring_obj; |
| 819 | volatile uint32_t *ring; | 818 | volatile uint32_t *ring; |
| 820 | unsigned rptr_offs; | 819 | unsigned rptr_offs; |
| @@ -1190,12 +1189,9 @@ int amdgpu_ib_ring_tests(struct amdgpu_device *adev); | |||
| 1190 | /* Ring access between begin & end cannot sleep */ | 1189 | /* Ring access between begin & end cannot sleep */ |
| 1191 | void amdgpu_ring_free_size(struct amdgpu_ring *ring); | 1190 | void amdgpu_ring_free_size(struct amdgpu_ring *ring); |
| 1192 | int amdgpu_ring_alloc(struct amdgpu_ring *ring, unsigned ndw); | 1191 | int amdgpu_ring_alloc(struct amdgpu_ring *ring, unsigned ndw); |
| 1193 | int amdgpu_ring_lock(struct amdgpu_ring *ring, unsigned ndw); | ||
| 1194 | void amdgpu_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count); | 1192 | void amdgpu_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count); |
| 1195 | void amdgpu_ring_commit(struct amdgpu_ring *ring); | 1193 | void amdgpu_ring_commit(struct amdgpu_ring *ring); |
| 1196 | void amdgpu_ring_unlock_commit(struct amdgpu_ring *ring); | ||
| 1197 | void amdgpu_ring_undo(struct amdgpu_ring *ring); | 1194 | void amdgpu_ring_undo(struct amdgpu_ring *ring); |
| 1198 | void amdgpu_ring_unlock_undo(struct amdgpu_ring *ring); | ||
| 1199 | unsigned amdgpu_ring_backup(struct amdgpu_ring *ring, | 1195 | unsigned amdgpu_ring_backup(struct amdgpu_ring *ring, |
| 1200 | uint32_t **data); | 1196 | uint32_t **data); |
| 1201 | int amdgpu_ring_restore(struct amdgpu_ring *ring, | 1197 | int amdgpu_ring_restore(struct amdgpu_ring *ring, |
| @@ -2009,7 +2005,6 @@ struct amdgpu_device { | |||
| 2009 | 2005 | ||
| 2010 | /* rings */ | 2006 | /* rings */ |
| 2011 | unsigned fence_context; | 2007 | unsigned fence_context; |
| 2012 | struct mutex ring_lock; | ||
| 2013 | unsigned num_rings; | 2008 | unsigned num_rings; |
| 2014 | struct amdgpu_ring *rings[AMDGPU_MAX_RINGS]; | 2009 | struct amdgpu_ring *rings[AMDGPU_MAX_RINGS]; |
| 2015 | bool ib_pool_ready; | 2010 | bool ib_pool_ready; |
