diff options
author | Christian König <christian.koenig@amd.com> | 2017-08-15 11:08:12 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-08-29 15:28:03 -0400 |
commit | cb7b6ec2f8b8759b6b5beb4d17ea6984867a3296 (patch) | |
tree | 9c659bbda3ffbc33d53fcf0327383ea100b739ac /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
parent | 3d7d4d3a1b9f67c0caecf2b2aa8d7c347f074a33 (diff) |
drm/amdgpu: add bo_va cleared flag again v2
We changed this to use an extra list a while back, but for the next
series I need a separate flag again.
v2: reorder to avoid unlocked list access
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h index a288fa6d72c8..e613ba42f167 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |||
@@ -55,6 +55,9 @@ struct amdgpu_bo_va { | |||
55 | /* mappings for this bo_va */ | 55 | /* mappings for this bo_va */ |
56 | struct list_head invalids; | 56 | struct list_head invalids; |
57 | struct list_head valids; | 57 | struct list_head valids; |
58 | |||
59 | /* If the mappings are cleared or filled */ | ||
60 | bool cleared; | ||
58 | }; | 61 | }; |
59 | 62 | ||
60 | struct amdgpu_bo { | 63 | struct amdgpu_bo { |