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)
commit73fa13b6a5112b59d09e58b8075973769a15814c
tree0fd9b1a1a93c639fd4e4655874d919d8eb7b2719
parent5ccbb057c0a1282b39192a346f963fa989ddbc92
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