drm/radeon/ttm: use new takedown paths
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:56:04 +0000 (12:56 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:32:03 +0000 (12:32 +1000)
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-32-airlied@gmail.com
drivers/gpu/drm/radeon/radeon_ttm.c

index 40959cea4476b7c16f49c716bf10a10db07f8270..18e6dca9b77eb24fb65da7d49857f302d884ed9a 100644 (file)
@@ -827,8 +827,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_range_man_fini(&rdev->mman.bdev, &rdev->mman.bdev.man[TTM_PL_VRAM]);
+       ttm_range_man_fini(&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;