drm/amdgpu: Add gem_prime_mmap support
authorSamuel Li <Samuel.Li@amd.com>
Tue, 22 Aug 2017 19:25:33 +0000 (15:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:37 +0000 (15:14 -0400)
commitdfced2e4bcbc8d6bd9bad11cc6b4643ba36ed35a
tree217d000e2043004a94b4972889126d2ea558e659
parentaec8d5cc28b32b02e09c92c422f4a4ed9f53ff74
drm/amdgpu: Add gem_prime_mmap support

v2: drop hdp invalidate/flush.
v3: honor pgoff during prime mmap. Add a barrier after cpu access.
v4: drop begin/end_cpu_access() for now, revisit later.

Signed-off-by: Samuel Li <Samuel.Li@amd.com>
Reviewed-by: Christian K├Ânig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c