aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
diff options
context:
space:
mode:
authorMihir Bhogilal Patel <[email protected]>2020-10-15 12:27:26 +0000
committerAlex Deucher <[email protected]>2020-10-16 18:44:56 +0000
commit0e601a04dd3f0364b86908f4e14ab6df1b68b989 (patch)
tree11bf44db109d489a0db89b8efc1ed733de213852 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
parentdrm/amdgpu: update golden setting for sienna_cichlid (diff)
downloadkernel-0e601a04dd3f0364b86908f4e14ab6df1b68b989.tar.gz
kernel-0e601a04dd3f0364b86908f4e14ab6df1b68b989.zip
drm/amdgpu: add a list in VM for BOs in the done state
Add a new list in VM for done state i.e. BOs which are invalidated and updated in PTEs. Signed-off-by: Mihir Bhogilal Patel <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
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 74cc14179c41..ffea3b89b9da 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
@@ -274,6 +274,9 @@ struct amdgpu_vm {
/* BO mappings freed, but not yet updated in the PT */
struct list_head freed;
+ /* BOs which are invalidated, has been updated in the PTs */
+ struct list_head done;
+
/* contains the page directory */
struct amdgpu_vm_pt root;
struct dma_fence *last_update;