Skip to content

Commit e7afa85

Browse files
ZhenGuo Yinalexdeucher
authored andcommitted
drm/amdgpu: fix warning of drm_mm_clean
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
1 parent 1657793 commit e7afa85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3510,6 +3510,7 @@ static int amdgpu_device_ip_fini(struct amdgpu_device *adev)
35103510
amdgpu_device_mem_scratch_fini(adev);
35113511
amdgpu_ib_pool_fini(adev);
35123512
amdgpu_seq64_fini(adev);
3513+
amdgpu_doorbell_fini(adev);
35133514
}
35143515
if (adev->ip_blocks[i].version->funcs->sw_fini) {
35153516
r = adev->ip_blocks[i].version->funcs->sw_fini(&adev->ip_blocks[i]);
@@ -4858,7 +4859,6 @@ void amdgpu_device_fini_sw(struct amdgpu_device *adev)
48584859

48594860
iounmap(adev->rmmio);
48604861
adev->rmmio = NULL;
4861-
amdgpu_doorbell_fini(adev);
48624862
drm_dev_exit(idx);
48634863
}
48644864

0 commit comments

Comments
 (0)