diff options
author | Christian König <christian.koenig@amd.com> | 2015-11-14 15:31:40 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-11-18 11:40:37 -0500 |
commit | 1c16c0a7b26c6c905dc79c4194135ca2f360f0f5 (patch) | |
tree | b3358c65300f32ef791fda5fbb91df22b7942467 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | ea89f8c9e8ba8a7b75446eef36917da50d2186d9 (diff) |
drm/amdgpu: keep the owner for VMIDs
We don't need the last VM use any more, keep the owner directly.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <davdi1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index beb74854a8a3..a5692624070a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -925,8 +925,6 @@ struct amdgpu_vm_id { | |||
925 | uint64_t pd_gpu_addr; | 925 | uint64_t pd_gpu_addr; |
926 | /* last flushed PD/PT update */ | 926 | /* last flushed PD/PT update */ |
927 | struct fence *flushed_updates; | 927 | struct fence *flushed_updates; |
928 | /* last use of vmid */ | ||
929 | struct fence *last_id_use; | ||
930 | }; | 928 | }; |
931 | 929 | ||
932 | struct amdgpu_vm { | 930 | struct amdgpu_vm { |
@@ -959,7 +957,11 @@ struct amdgpu_vm { | |||
959 | }; | 957 | }; |
960 | 958 | ||
961 | struct amdgpu_vm_manager { | 959 | struct amdgpu_vm_manager { |
962 | struct fence *active[AMDGPU_NUM_VM]; | 960 | struct { |
961 | struct fence *active; | ||
962 | atomic_long_t owner; | ||
963 | } ids[AMDGPU_NUM_VM]; | ||
964 | |||
963 | uint32_t max_pfn; | 965 | uint32_t max_pfn; |
964 | /* number of VMIDs */ | 966 | /* number of VMIDs */ |
965 | unsigned nvm; | 967 | unsigned nvm; |