drm/amdgpu: fix comment on amdgpu_bo_va
authorChristian König <christian.koenig@amd.com>
Mon, 28 Aug 2017 12:46:40 +0000 (14:46 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:28:04 +0000 (15:28 -0400)
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h

index e613ba42f167ea471c2cff4e89a77fe1c2226ac9..42492e63b3a293650d5d07e7f8b7b2c19668a180 100644 (file)
@@ -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;