drm/amdgpu: move amdgpu_cs_sysvm_access_required into find_mapping
authorChristian König <christian.koenig@amd.com>
Wed, 6 Sep 2017 14:15:28 +0000 (16:15 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Sep 2017 18:27:22 +0000 (14:27 -0400)
commit9cca0b8e5df0ac438c65eec5044bfa089d16fbbe
treede96700a32acb9d5844842a649fd5931a93f5278
parentf5683f8b3794f9496877fb9e20305433c6575b81
drm/amdgpu: move amdgpu_cs_sysvm_access_required into find_mapping

When we need to find the mapping we need sysvm access anyway.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c