]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: CRIU Implement KFD restore ioctl
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Tue, 1 Dec 2020 17:36:46 +0000 (12:36 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 22:59:35 +0000 (17:59 -0500)
commit5001e4962bf090980f8728106b9465cac50a51f7
tree0fd9b1a1a93c639fd4e4655874d919d8eb7b2719
parent6a46a611e48ee8787c9421f77dff687ec28c745b
drm/amdkfd: CRIU Implement KFD restore ioctl

This implements the KFD CRIU Restore ioctl that lays the basic
foundation for the CRIU restore operation. It provides support to
create the buffer objects corresponding to the checkpointed image.
This ioctl creates various types of buffer objects such as VRAM,
MMIO, Doorbell, GTT based on the date sent from the userspace plugin.
The data mostly contains the previously checkpointed KFD images from
some KFD processs.

While restoring a criu process, attach old IDR values to newly
created BOs. This also adds the minimal gpu mapping support for a single
gpu checkpoint restore use case.

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