aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-08-04 02:56:28 +0000
committerDave Airlie <[email protected]>2020-08-06 03:12:40 +0000
commit90a0489a718b87bc0674792f9eafac007e0ea3d6 (patch)
treea4ae53e808b1b49c329b9d8f7ec1b55223df74db /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
parentdrm/ttm: drop list of memory managers from device. (v2) (diff)
downloadkernel-90a0489a718b87bc0674792f9eafac007e0ea3d6.tar.gz
kernel-90a0489a718b87bc0674792f9eafac007e0ea3d6.zip
drm/ttm: drop type manager has_type
under driver control, this flag isn't needed anymore, remove the API that used to access it, and consoldiate with the used api. Reviewed-by: Christian König <[email protected]> Reviewed-by: Ben Skeggs <[email protected]> Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
index a6a99e66b871..e9de6f9538c0 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
@@ -146,7 +146,7 @@ void amdgpu_gtt_mgr_fini(struct amdgpu_device *adev)
struct amdgpu_gtt_mgr *mgr = to_gtt_mgr(man);
int ret;
- ttm_mem_type_manager_disable(man);
+ ttm_mem_type_manager_set_used(man, false);
ret = ttm_mem_type_manager_force_list_clean(&adev->mman.bdev, man);
if (ret)