diff options
author | Christian König <christian.koenig@amd.com> | 2022-04-16 15:25:36 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2023-07-12 14:14:50 +0200 |
commit | ca6c1e210aa7d7629900a62f28b5090724054854 (patch) | |
tree | 9066b68298c3585c5a2e32d3a8122af54ba414e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 2acc73f81f2500e1bf03e2fbba8b733c0817dbb9 (diff) |
drm/amdgpu: use the new drm_exec object for CS v3
Use the new component here as well and remove the old handling.
v2: drop dupplicate handling
v3: fix memory leak pointed out by Tatsuyuki
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230711133122.3710-7-christian.koenig@amd.com
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index c5c5f2eb76c5..854260171dfd 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -340,28 +340,6 @@ void amdgpu_vm_bo_base_init(struct amdgpu_vm_bo_base *base, } /** - * amdgpu_vm_get_pd_bo - add the VM PD to a validation list - * - * @vm: vm providing the BOs - * @validated: head of validation list - * @entry: entry to add - * - * Add the page directory to the list of BOs to - * validate for command submission. - */ -void amdgpu_vm_get_pd_bo(struct amdgpu_vm *vm, - struct list_head *validated, - struct amdgpu_bo_list_entry *entry) -{ - entry->priority = 0; - entry->tv.bo = &vm->root.bo->tbo; - /* Two for VM updates, one for TTM and one for the CS job */ - entry->tv.num_shared = 4; - entry->user_pages = NULL; - list_add(&entry->tv.head, validated); -} - -/** * amdgpu_vm_lock_pd - lock PD in drm_exec * * @vm: vm providing the BOs |