diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2015-11-13 13:32:01 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-11-18 11:40:55 -0500 |
commit | c25867dfabf045a8148fd179fa759bb17f670e42 (patch) | |
tree | 2bffcacfc26a89cd5d4166493c01b75843de2caf /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 1c16c0a7b26c6c905dc79c4194135ca2f360f0f5 (diff) | |
download | linux-c25867dfabf045a8148fd179fa759bb17f670e42.tar.bz2 |
drm/amdgpu: add lock for interval tree in vm
Change-Id: I62b892a22af37b32e6b4aefca80a25cf45426ed2
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@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 a5692624070a..306f75700bf8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -954,6 +954,8 @@ struct amdgpu_vm { /* for id and flush management per ring */ struct amdgpu_vm_id ids[AMDGPU_MAX_RINGS]; + /* for interval tree */ + spinlock_t it_lock; }; struct amdgpu_vm_manager { |