aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-02-08 05:08:35 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-02-10 14:17:16 -0500
commitcc325d1913475655b81c0417ba04c84f168ac78c (patch)
tree6dcc586983e753988a4b2713678f78bbb49ded6e /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent04db4caf5c836c211977a54c9218f2cdee14897f (diff)
drm/amdgpu: check userptrs mm earlier
Instead of when we try to bind it check the usermm when we try to use it in the IOCTLs. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 4a6e87857875..a783c684b49b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -2364,7 +2364,7 @@ void amdgpu_ttm_placement_from_domain(struct amdgpu_bo *rbo, u32 domain);
2364bool amdgpu_ttm_bo_is_amdgpu_bo(struct ttm_buffer_object *bo); 2364bool amdgpu_ttm_bo_is_amdgpu_bo(struct ttm_buffer_object *bo);
2365int amdgpu_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr, 2365int amdgpu_ttm_tt_set_userptr(struct ttm_tt *ttm, uint64_t addr,
2366 uint32_t flags); 2366 uint32_t flags);
2367bool amdgpu_ttm_tt_has_userptr(struct ttm_tt *ttm); 2367struct mm_struct *amdgpu_ttm_tt_get_usermm(struct ttm_tt *ttm);
2368bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start, 2368bool amdgpu_ttm_tt_affect_userptr(struct ttm_tt *ttm, unsigned long start,
2369 unsigned long end); 2369 unsigned long end);
2370bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm); 2370bool amdgpu_ttm_tt_is_readonly(struct ttm_tt *ttm);