diff options
| author | Christian König <[email protected]> | 2023-12-04 14:51:50 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-12-13 21:33:02 +0000 |
| commit | 65d2765d6291a49d5cdfc0fd88ba5689ed27dbe2 (patch) | |
| tree | 195d6038d5a22cab24f1f7020265c323d619de6e | |
| parent | drm/radeon: Prevent multiple debug error lines on suspend (diff) | |
| download | kernel-65d2765d6291a49d5cdfc0fd88ba5689ed27dbe2.tar.gz kernel-65d2765d6291a49d5cdfc0fd88ba5689ed27dbe2.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 <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
| -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); |
