RE: [PATCH] drm/amdgpu: Free PDB0 bo before bo_fini

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

 



[AMD Public Use]

 

Reviewed-by: Hawking Zhang <Hawking.Zhang@xxxxxxx>

 

Regards,
Hawking

From: Lazar, Lijo <Lijo.Lazar@xxxxxxx>
Sent: Wednesday, March 10, 2021 18:40
To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx
Cc: Zhang, Hawking <Hawking.Zhang@xxxxxxx>; Zeng, Oak <Oak.Zeng@xxxxxxx>; Koenig, Christian <Christian.Koenig@xxxxxxx>; Kasiviswanathan, Harish <Harish.Kasiviswanathan@xxxxxxx>
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@xxxxxxx

---

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

_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

  Powered by Linux