[PATCH 21/49] drm/radeon/ttm: use new takedown paths
Christian König
christian.koenig at amd.com
Fri Jul 31 13:10:26 UTC 2020
Am 31.07.20 um 06:04 schrieb Dave Airlie:
> From: Dave Airlie <airlied at redhat.com>
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> drivers/gpu/drm/radeon/radeon_ttm.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
> index a5043a5b7d89..e65297b4b678 100644
> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
> @@ -826,8 +826,8 @@ void radeon_ttm_fini(struct radeon_device *rdev)
> }
> radeon_bo_unref(&rdev->stolen_vga_memory);
> }
> - ttm_bo_clean_mm(&rdev->mman.bdev, TTM_PL_VRAM);
> - ttm_bo_clean_mm(&rdev->mman.bdev, TTM_PL_TT);
> + ttm_bo_man_takedown(&rdev->mman.bdev, &rdev->mman.bdev.man[TTM_PL_VRAM]);
> + ttm_bo_man_takedown(&rdev->mman.bdev, &rdev->mman.bdev.man[TTM_PL_TT]);
> ttm_bo_device_release(&rdev->mman.bdev);
> radeon_gart_fini(rdev);
> rdev->mman.initialized = false;
More information about the dri-devel
mailing list