aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-04-19 09:01:12 -0400
committerAlex Deucher <alexander.deucher@amd.com>2018-05-24 11:07:54 -0400
commit806f043f0253a76248c554ce9f7303bc25e43314 (patch)
tree7f556458994bd66b47ab85044b3c6e6884cac45b /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parent862b8c5762e4e2324d18c881ce86062af72b2063 (diff)
drm/amdgpu: move VM BOs on LRU again
Move all BOs belonging to a VM on the LRU with every submission. 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_vm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
index 0196b9a782f2..061b99a18cb8 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -178,6 +178,9 @@ struct amdgpu_vm {
178 struct list_head moved; 178 struct list_head moved;
179 spinlock_t moved_lock; 179 spinlock_t moved_lock;
180 180
181 /* All BOs of this VM not currently in the state machine */
182 struct list_head idle;
183
181 /* BO mappings freed, but not yet updated in the PT */ 184 /* BO mappings freed, but not yet updated in the PT */
182 struct list_head freed; 185 struct list_head freed;
183 186