drm/amdgpu: enforce AMDGPU_GEM_CREATE_NO_CPU_ACCESS
authorChristian König <christian.koenig@amd.com>
Wed, 13 May 2015 12:30:53 +0000 (14:30 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:43 +0000 (21:03 -0400)
commit271c81256612b162a9ae0f8c0f0a055a7523cea5
tree344441e66f38b751741730a6c761f3a102527897
parent25a595e48261e8d44970b6a5cfafc283f9a9fbc5
drm/amdgpu: enforce AMDGPU_GEM_CREATE_NO_CPU_ACCESS

Deny user and kernel mapping if we said we never want to do so.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c