drm/amdgpu: check userptrs mm earlier
authorChristian König <christian.koenig@amd.com>
Mon, 8 Feb 2016 10:08:35 +0000 (11:08 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:17:16 +0000 (14:17 -0500)
commitcc325d1913475655b81c0417ba04c84f168ac78c
tree6dcc586983e753988a4b2713678f78bbb49ded6e
parent04db4caf5c836c211977a54c9218f2cdee14897f
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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c