Skip to content

Commit dbf230f

Browse files
ZhenGuo Yingregkh
authored andcommitted
drm/amdgpu: fix warning of drm_mm_clean
commit e7afa85 upstream. Kernel doorbell BOs needs to be freed before ttm_fini. Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4145 Fixes: 54c30d2 ("drm/amdgpu: create kernel doorbell pages") Acked-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: ZhenGuo Yin <zhenguo.yin@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 39938a8) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 29789e0 commit dbf230f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3442,6 +3442,7 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev)
34423442
amdgpu_device_mem_scratch_fini(adev);
34433443
amdgpu_ib_pool_fini(adev);
34443444
amdgpu_seq64_fini(adev);
3445+
amdgpu_doorbell_fini(adev);
34453446
}
34463447
if (adev->ip_blocks[i].version->funcs->sw_fini) {
34473448
r = adev->ip_blocks[i].version->funcs->sw_fini(&adev->ip_blocks[i]);
@@ -4770,7 +4771,6 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev)
47704771

47714772
iounmap(adev->rmmio);
47724773
adev->rmmio = NULL;
4773-
amdgpu_doorbell_fini(adev);
47744774
drm_dev_exit(idx);
47754775
}
47764776

0 commit comments

Comments
 (0)