Re: [PATCH] amdgpu: tear down ttm range manager for doorbell in amdgpu_ttm_fini()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[Public]


Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx>

From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> on behalf of Kent Russell <kent.russell@xxxxxxx>
Sent: Monday, December 23, 2024 9:29 AM
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx <amd-gfx@xxxxxxxxxxxxxxxxxxxxx>
Cc: Jiang Liu <gerry@xxxxxxxxxxxxxxxxx>; Russell, Kent <Kent.Russell@xxxxxxx>
Subject: [PATCH] amdgpu: tear down ttm range manager for doorbell in amdgpu_ttm_fini()
 
From: Jiang Liu <gerry@xxxxxxxxxxxxxxxxx>

Tear down ttm range manager for doorbell in function amdgpu_ttm_fini(),
to avoid memory leakage.

Signed-off-by: Jiang Liu <gerry@xxxxxxxxxxxxxxxxx>
Signed-off-by: Kent Russell <kent.russell@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 9ff6cfacfd34..e6fc89440210 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -2066,6 +2066,7 @@ void amdgpu_ttm_fini(struct amdgpu_device *adev)
         ttm_range_man_fini(&adev->mman.bdev, AMDGPU_PL_GDS);
         ttm_range_man_fini(&adev->mman.bdev, AMDGPU_PL_GWS);
         ttm_range_man_fini(&adev->mman.bdev, AMDGPU_PL_OA);
+       ttm_range_man_fini(&adev->mman.bdev, AMDGPU_PL_DOORBELL);
         ttm_device_fini(&adev->mman.bdev);
         adev->mman.initialized = false;
         DRM_INFO("amdgpu: ttm finalized\n");
--
2.43.0


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux