diff options
author | 2023-12-04 15:51:50 +0100 | |
---|---|---|
committer | 2023-12-13 16:50:46 -0500 | |
commit | a4236c4b410857a70647c410e886c8a0455ec4fb (patch) | |
tree | 3d31286f303c0e038ec8e10c0794919ea534ccbf /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | drm/amdgpu: fix tear down order in amdgpu_vm_pt_free (diff) | |
download | wireguard-linux-a4236c4b410857a70647c410e886c8a0455ec4fb.tar.xz wireguard-linux-a4236c4b410857a70647c410e886c8a0455ec4fb.zip |
drm/amdgpu: warn when there are still mappings when a BO is destroyed v2
This can only happen when there is a reference counting bug.
v2: fix typo
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index d79b4ca1ecfc..5ad03f2afdb4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -1343,6 +1343,8 @@ void amdgpu_bo_release_notify(struct ttm_buffer_object *bo) abo = ttm_to_amdgpu_bo(bo); + WARN_ON(abo->vm_bo); + if (abo->kfd_bo) amdgpu_amdkfd_release_notify(abo); |