]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: CRIU export BOs as prime dmabuf objects
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Tue, 29 Jun 2021 22:30:36 +0000 (18:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 22:59:52 +0000 (17:59 -0500)
commit7ff0cf4b461ee67abe47d21e0498088b5acbb842
tree9f86d898637e457e578fb2dab03d460a1db8e602
parenta3c216b27aeabe719eed4961251b583900f71c00
drm/amdkfd: CRIU export BOs as prime dmabuf objects

KFD buffer objects do not associate a GEM handle with them so cannot
directly be used with libdrm to initiate a system dma (sDMA) operation
to speedup the checkpoint and restore operation so export them as dmabuf
objects and use with libdrm helper (amdgpu_bo_import) to further process
the sdma command submissions.

With sDMA, we see huge improvement in checkpoint and restore operations
compared to the generic pci based access via host data path.

Suggested-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Signed-off-by: David Yat Sin <david.yatsin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c