drm/amdgpu: implement amdgpu_gem_map_(attach/detach)
authorChristian König <christian.koenig@amd.com>
Fri, 16 Feb 2018 12:16:11 +0000 (13:16 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 20 Feb 2018 19:40:03 +0000 (14:40 -0500)
commit5a13761fa68306bc21ff91d9ca4d56d14793c889
tree9f8aca764e925cc17883c8f41cd8332e6ab69b67
parentd821792171a0457431dd57f0f2b8828c478b26ab
drm/amdgpu: implement amdgpu_gem_map_(attach/detach)

Instead of the pin/unpin callback implement the attach/detach ones.

Functional identical, but allows us access to the attachment.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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