diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2015-07-21 01:17:19 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:32 -0400 |
commit | 9cb7e5a91f6cd4dc018cca7120d2da067f816d3a (patch) | |
tree | 6d221842a748e103ad700841d94f7064a65c87d0 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | b80d8475c1fdf5f4bcabb65168b2e8a9c3d77731 (diff) |
drm/amdgpu: add context entity init
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Christian K?nig <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.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 815d40f5e6e1..776339c2a95e 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -994,10 +994,12 @@ struct amdgpu_vm_manager { | |||
994 | struct amdgpu_ctx_ring { | 994 | struct amdgpu_ctx_ring { |
995 | uint64_t sequence; | 995 | uint64_t sequence; |
996 | struct fence *fences[AMDGPU_CTX_MAX_CS_PENDING]; | 996 | struct fence *fences[AMDGPU_CTX_MAX_CS_PENDING]; |
997 | struct amd_context_entity c_entity; | ||
997 | }; | 998 | }; |
998 | 999 | ||
999 | struct amdgpu_ctx { | 1000 | struct amdgpu_ctx { |
1000 | struct kref refcount; | 1001 | struct kref refcount; |
1002 | struct amdgpu_device *adev; | ||
1001 | unsigned reset_counter; | 1003 | unsigned reset_counter; |
1002 | spinlock_t ring_lock; | 1004 | spinlock_t ring_lock; |
1003 | struct amdgpu_ctx_ring rings[AMDGPU_MAX_RINGS]; | 1005 | struct amdgpu_ctx_ring rings[AMDGPU_MAX_RINGS]; |