]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4824b6b41d495c2e37ebb5a2ddc3fef83d4fc3b2
tree70264cf8a344ea63c82ec7a88bac5b58204461ee
parentd0de3b5d4260f53cca949e6e2ab217d03ed3f4e3
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