aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChunming Zhou <[email protected]>2015-11-18 03:17:39 +0000
committerAlex Deucher <[email protected]>2015-11-20 23:22:23 +0000
commit69b576a1bc8b466ae7bff0208f1c139dbaaf802c (patch)
treea5d2d94a0a026181a0834b9d3c78979da3ed5725 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parentdrm/amdgpu: adapt vce session create interface changes (diff)
downloadkernel-69b576a1bc8b466ae7bff0208f1c139dbaaf802c.tar.gz
kernel-69b576a1bc8b466ae7bff0208f1c139dbaaf802c.zip
drm/amdgpu: add mutex for ba_va->valids/invalids
Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 306f75700bf8..50672bb19798 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -496,6 +496,7 @@ struct amdgpu_bo_va_mapping {
/* bo virtual addresses in a specific vm */
struct amdgpu_bo_va {
+ struct mutex mutex;
/* protected by bo being reserved */
struct list_head bo_list;
struct fence *last_pt_update;