diff options
author | Christian König <christian.koenig@amd.com> | 2018-02-16 07:16:11 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-20 14:40:03 -0500 |
commit | 5a13761fa68306bc21ff91d9ca4d56d14793c889 (patch) | |
tree | 9f8aca764e925cc17883c8f41cd8332e6ab69b67 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |
parent | d821792171a0457431dd57f0f2b8828c478b26ab (diff) |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index 6c8ae59d4d94..88ec9280a67a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | |||
@@ -885,8 +885,6 @@ static struct drm_driver kms_driver = { | |||
885 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle, | 885 | .prime_fd_to_handle = drm_gem_prime_fd_to_handle, |
886 | .gem_prime_export = amdgpu_gem_prime_export, | 886 | .gem_prime_export = amdgpu_gem_prime_export, |
887 | .gem_prime_import = amdgpu_gem_prime_import, | 887 | .gem_prime_import = amdgpu_gem_prime_import, |
888 | .gem_prime_pin = amdgpu_gem_prime_pin, | ||
889 | .gem_prime_unpin = amdgpu_gem_prime_unpin, | ||
890 | .gem_prime_res_obj = amdgpu_gem_prime_res_obj, | 888 | .gem_prime_res_obj = amdgpu_gem_prime_res_obj, |
891 | .gem_prime_get_sg_table = amdgpu_gem_prime_get_sg_table, | 889 | .gem_prime_get_sg_table = amdgpu_gem_prime_get_sg_table, |
892 | .gem_prime_import_sg_table = amdgpu_gem_prime_import_sg_table, | 890 | .gem_prime_import_sg_table = amdgpu_gem_prime_import_sg_table, |