diff options
author | Christian König <christian.koenig@amd.com> | 2016-03-13 14:19:48 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-16 17:59:22 -0400 |
commit | c89377d10a11e5d8be11525f220dc624574c1aa5 (patch) | |
tree | 4d3fc9723c862ef28d6d88a64b5a450f0993bfe0 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | e6151a08bbb3c85cd0b23813432690939e143131 (diff) |
drm/amdgpu: keep all fences in an RCU protected array v2
Just keep all HW fences in a RCU protected array as a
first step to replace the wait queue.
v2: update commit message, move fixes into separate patch.
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 26b137801aea..2fea597f8b6c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -393,6 +393,8 @@ struct amdgpu_fence_driver { | |||
393 | unsigned irq_type; | 393 | unsigned irq_type; |
394 | struct timer_list fallback_timer; | 394 | struct timer_list fallback_timer; |
395 | wait_queue_head_t fence_queue; | 395 | wait_queue_head_t fence_queue; |
396 | unsigned num_fences_mask; | ||
397 | struct fence **fences; | ||
396 | }; | 398 | }; |
397 | 399 | ||
398 | /* some special values for the owner field */ | 400 | /* some special values for the owner field */ |