summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-03-13 19:19:48 +0100
committerAlex Deucher <alexander.deucher@amd.com>2016-03-16 17:59:22 -0400
commitc89377d10a11e5d8be11525f220dc624574c1aa5 (patch)
tree4d3fc9723c862ef28d6d88a64b5a450f0993bfe0 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parente6151a08bbb3c85cd0b23813432690939e143131 (diff)
downloadop-kernel-dev-c89377d10a11e5d8be11525f220dc624574c1aa5.zip
op-kernel-dev-c89377d10a11e5d8be11525f220dc624574c1aa5.tar.gz
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.h2
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 26b1378..2fea597 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 {
unsigned irq_type;
struct timer_list fallback_timer;
wait_queue_head_t fence_queue;
+ unsigned num_fences_mask;
+ struct fence **fences;
};
/* some special values for the owner field */
OpenPOWER on IntegriCloud