drm/amdgpu: fix drm-next merge fallout
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix drm-next merge fallout
That hunk somehow got missing while solving the conflict between the TTM and AMDGPU changes for drm-next.
Signed-off-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +5 -1
@@ -631,9 +631,13 @@ static void amdgpu_vm_pt_free(struct amdgpu_vm_bo_base *entry)if (!entry->bo)return ; shadow =amdgpu_bo_shadowed (entry->bo); +if (shadow) { +ttm_bo_set_bulk_move (&shadow->tbo,NULL ); +amdgpu_bo_unref (&shadow); + } +ttm_bo_set_bulk_move (&entry->bo->tbo,NULL ); entry->bo->vm_bo =NULL ;list_del (&entry->vm_status); -amdgpu_bo_unref (&shadow);amdgpu_bo_unref (&entry->bo); }
Signature · 1 line
2.25.1
Quoted 5 lines · Christian König
That hunk somehow got missing while solving the conflict between the TTM and AMDGPU changes for drm-next.
Signed-off-by Christian König <[email protected]>
Acked-by Alex Deucher <[email protected]>
Quoted 26 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +5
-2@@ -631,9 +631,13 @@ static void amdgpu_vm_pt_free(struct amdgpu_vm_bo_base *entry)if (!entry->bo)return ; shadow =amdgpu_bo_shadowed (entry->bo); +if (shadow) { +ttm_bo_set_bulk_move (&shadow->tbo,NULL ); +amdgpu_bo_unref (&shadow); + } +ttm_bo_set_bulk_move (&entry->bo->tbo,NULL ); entry->bo->vm_bo =NULL ;list_del (&entry->vm_status); -amdgpu_bo_unref (&shadow);amdgpu_bo_unref (&entry->bo); } --2.25.1
Dave Airlie
maintainerQuoted 11 lines · Alex Deucher
Quoted 5 lines · Christian König
That hunk somehow got missing while solving the conflict between the TTM and AMDGPU changes for drm-next.
Signed-off-by Christian König <[email protected]>Acked-by Alex Deucher <[email protected]>
I'll pick this directly into drm-next.
Dave.
Quoted 26 lines
Quoted 26 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c +5
-2@@ -631,9 +631,13 @@ static void amdgpu_vm_pt_free(struct amdgpu_vm_bo_base *entry)if (!entry->bo)return ; shadow =amdgpu_bo_shadowed (entry->bo); +if (shadow) { +ttm_bo_set_bulk_move (&shadow->tbo,NULL ); +amdgpu_bo_unref (&shadow); + } +ttm_bo_set_bulk_move (&entry->bo->tbo,NULL ); entry->bo->vm_bo =NULL ;list_del (&entry->vm_status); -amdgpu_bo_unref (&shadow);amdgpu_bo_unref (&entry->bo); } --2.25.1