Commit a4236c4b authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

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: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent ceb9a321
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);