diff options
author | Mihir Bhogilal Patel <Mihir.Patel@amd.com> | 2020-10-15 17:57:26 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-16 14:44:56 -0400 |
commit | 0e601a04dd3f0364b86908f4e14ab6df1b68b989 (patch) | |
tree | 11bf44db109d489a0db89b8efc1ed733de213852 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | |
parent | c6b3c8779cb2a75cb7d61bc5b5093654f61290b4 (diff) | |
download | linux-0e601a04dd3f0364b86908f4e14ab6df1b68b989.tar.gz |
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 <Mihir.Patel@amd.com>
Reviewed-by: Christian König <christian.koenig@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.h | 3 |
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; |