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)
commitbe072b06c7397004e6464b4225e13c31ed0b9ca3
tree9f86d898637e457e578fb2dab03d460a1db8e602
parentbef153b70c6e3594b849d44a23f806328b9c68d4
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