aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
diff options
context:
space:
mode:
authorChristian König <[email protected]>2020-09-11 14:01:21 +0000
committerChristian König <[email protected]>2020-09-15 14:05:19 +0000
commit9c3006a4cc1b165652a07727caf7926054f9aa9f (patch)
treee299050baec7afe6fef9269a0c4b005b37ff8cb6 /drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
parentdrm/nouveau: explicitly specify caching to use (diff)
downloadkernel-9c3006a4cc1b165652a07727caf7926054f9aa9f.tar.gz
kernel-9c3006a4cc1b165652a07727caf7926054f9aa9f.zip
drm/ttm: remove available_caching
Instead of letting TTM make an educated guess based on some mask all drivers should just specify what caching they want for their CPU mappings. Signed-off-by: Christian König <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/390207/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c1
1 files changed, 0 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 12d6a018e60b..f203e4a6a3f2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
@@ -95,7 +95,6 @@ int amdgpu_gtt_mgr_init(struct amdgpu_device *adev, uint64_t gtt_size)
man->use_tt = true;
man->func = &amdgpu_gtt_mgr_func;
- man->available_caching = TTM_PL_MASK_CACHING;
ttm_resource_manager_init(man, gtt_size >> PAGE_SHIFT);