summaryrefslogtreecommitdiffstats
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 15:01:12 +0200
committerAlex Deucher <alexander.deucher@amd.com>2018-05-24 10:07:54 -0500
commit806f043f0253a76248c554ce9f7303bc25e43314 (patch)
tree7f556458994bd66b47ab85044b3c6e6884cac45b /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parent862b8c5762e4e2324d18c881ce86062af72b2063 (diff)
downloadop-kernel-dev-806f043f0253a76248c554ce9f7303bc25e43314.zip
op-kernel-dev-806f043f0253a76248c554ce9f7303bc25e43314.tar.gz
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 0196b9a..061b99a 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 {
struct list_head moved;
spinlock_t moved_lock;
+ /* All BOs of this VM not currently in the state machine */
+ struct list_head idle;
+
/* BO mappings freed, but not yet updated in the PT */
struct list_head freed;
OpenPOWER on IntegriCloud