[PATCH] drm/amdgpu: Free PDB0 bo before bo_fini
Zhang, Hawking
Hawking.Zhang at amd.com
Wed Mar 10 11:33:38 UTC 2021
[AMD Public Use]
Reviewed-by: Hawking Zhang <Hawking.Zhang at amd.com>
Regards,
Hawking
From: Lazar, Lijo <Lijo.Lazar at amd.com>
Sent: Wednesday, March 10, 2021 18:40
To: amd-gfx at lists.freedesktop.org
Cc: Zhang, Hawking <Hawking.Zhang at amd.com>; Zeng, Oak <Oak.Zeng at amd.com>; Koenig, Christian <Christian.Koenig at amd.com>; Kasiviswanathan, Harish <Harish.Kasiviswanathan at amd.com>
Subject: [PATCH] drm/amdgpu: Free PDB0 bo before bo_fini
[AMD Public Use]
Cleanup pdb0 bo before bo_fini gets called
Signed-off-by: Lijo Lazar lijo.lazar at amd.com<mailto:lijo.lazar at amd.com>
---
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index 45ba3819bb8f..e8de5145339b 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -1577,10 +1577,9 @@ static int gmc_v9_0_sw_fini(void *handle)
amdgpu_gem_force_release(adev);
amdgpu_vm_manager_fini(adev);
amdgpu_gart_table_vram_free(adev);
+ amdgpu_bo_unref(&adev->gmc.pdb0_bo);
amdgpu_bo_fini(adev);
amdgpu_gart_fini(adev);
- if (adev->gmc.pdb0_bo)
- amdgpu_bo_unref(&adev->gmc.pdb0_bo);
return 0;
}
--
2.17.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20210310/8ed78ef7/attachment.htm>
More information about the amd-gfx
mailing list