Am 10.03.21 um 11:39 schrieb Lazar, Lijo:

[AMD Public Use]


Cleanup pdb0 bo before bo_fini gets called

Signed-off-by: Lijo Lazar [email protected] <mailto:[email protected]>


Reviewed-by: Christian König <[email protected]>

---

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
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to