]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Use iterator methods exposed by amdgpu_res_cursor.h in building SG_TABLE...
authorRamesh Errabolu <Ramesh.Errabolu@amd.com>
Mon, 12 Apr 2021 23:23:05 +0000 (18:23 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:44 +0000 (16:32 -0400)
commit223bb802cd08bb7d829aa51fe29a87abcbc2e147
treeef426b9c6f65d7944564b2ebc9a5a7cc4043ecf8
parente22b6ac419df386c1b3763acb6c51e58828a6541
drm/amdgpu: Use iterator methods exposed by amdgpu_res_cursor.h in building SG_TABLE's for a VRAM BO

Extend current implementation of SG_TABLE construction method to
allow exportation of sub-buffers of a VRAM BO. This capability will
enable logical partitioning of a VRAM BO into multiple non-overlapping
sub-buffers. One example of this use case is to partition a VRAM BO
into two sub-buffers, one for SRC and another for DST.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c