diff options
author | Christian König <christian.koenig@amd.com> | 2017-08-28 08:46:40 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-29 15:28:04 -0400 |
commit | 00b5cc83c443dcd351cb2b21055656e007992b54 (patch) | |
tree | 2ff74b973f64d6f8c9251665e2a2de8f2e5b7ba1 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | cb7b6ec2f8b8759b6b5beb4d17ea6984867a3296 (diff) |
drm/amdgpu: fix comment on amdgpu_bo_va
Except for the reference count all other members are protected
by the VM PD being reserved.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index e613ba42f167..42492e63b3a2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -49,9 +49,11 @@ struct amdgpu_bo_va { | |||
49 | struct amdgpu_vm_bo_base base; | 49 | struct amdgpu_vm_bo_base base; |
50 | 50 | ||
51 | /* protected by bo being reserved */ | 51 | /* protected by bo being reserved */ |
52 | struct dma_fence *last_pt_update; | ||
53 | unsigned ref_count; | 52 | unsigned ref_count; |
54 | 53 | ||
54 | /* all other members protected by the VM PD being reserved */ | ||
55 | struct dma_fence *last_pt_update; | ||
56 | |||
55 | /* mappings for this bo_va */ | 57 | /* mappings for this bo_va */ |
56 | struct list_head invalids; | 58 | struct list_head invalids; |
57 | struct list_head valids; | 59 | struct list_head valids; |