Skip to content

Commit

Permalink
drm/amdgpu: fix comment on amdgpu_bo_va
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christian König authored and Alex Deucher committed Aug 29, 2017
1 parent cb7b6ec commit 00b5cc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
Original file line number Diff line number Diff line change
@@ -49,9 +49,11 @@ struct amdgpu_bo_va {
struct amdgpu_vm_bo_base base;

/* protected by bo being reserved */
struct dma_fence *last_pt_update;
unsigned ref_count;

/* all other members protected by the VM PD being reserved */
struct dma_fence *last_pt_update;

/* mappings for this bo_va */
struct list_head invalids;
struct list_head valids;

0 comments on commit 00b5cc8

Please sign in to comment.