drm/amdgpu: Refactor amdgpu_move_blit
authorHarish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Tue, 3 Oct 2017 19:41:56 +0000 (15:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:07 +0000 (15:27 -0400)
commit1eca5a530dc3ac0a2fadd21da1c9e6c729a4a2a1
tree70264cf8a344ea63c82ec7a88bac5b58204461ee
parent26eedf6daec4e7937c8f0f1dde5e9b8e3dcebfd3
drm/amdgpu: Refactor amdgpu_move_blit

Add more generic function amdgpu_copy_ttm_mem_to_mem() that supports
arbitrary copy size, offsets and two BOs (source & dest.).

This is useful for KFD Cross Memory Attach feature where data needs to
be copied from BOs from different processes

v2: Add struct amdgpu_copy_mem and changed amdgpu_copy_ttm_mem_to_mem()
function parameters to use the struct

v3: Minor function name change

Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@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_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h