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

Christian König christian.koenig at amd.com
Wed Mar 10 10:56:57 UTC 2021


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 lijo.lazar at amd.com <mailto:lijo.lazar at amd.com>
>

Reviewed-by: Christian König <christian.koenig 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/1c36a839/attachment.htm>


More information about the amd-gfx mailing list