Change-Id: Ie5a6ba045bde07ccd35b27690709ad1670139447 Signed-off-by: Alex Xie <AlexBin.Xie at amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 79b5fda..7e43f63 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -356,6 +356,9 @@ static void amdgpu_vram_scratch_fini(struct amdgpu_device *adev) amdgpu_bo_unpin(adev->vram_scratch.robj); amdgpu_bo_unreserve(adev->vram_scratch.robj); amdgpu_bo_unref(&adev->vram_scratch.robj); + } else { + DRM_DEBUG("amdgpu_vram_scratch_fini failed. " + "BO is still referenced.\n"); } } -- 1.9.1