]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: CRIU Discover svm ranges
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Wed, 3 Nov 2021 00:59:17 +0000 (20:59 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 22:59:53 +0000 (17:59 -0500)
commit1fd6474875807a0dc1b5b7db8ddd55e8f6f44219
tree534b55dd31df5bd2f18a1154deed6a095b4b7637
parent0fe1283efd6e270474b6e429f85c8a5ad0677d05
drm/amdkfd: CRIU Discover svm ranges

A KFD process may contain a number of virtual address ranges for shared
virtual memory management and each such range can have many SVM
attributes spanning across various nodes within the process boundary.
This change reports the total number of such SVM ranges and
their total private data size by extending the PROCESS_INFO op of the the
CRIU IOCTL to discover the svm ranges in the target process and a future
patches brings in the required support for checkpoint and restore for
SVM ranges.

Reviewed-by: Felix Kuehling <Felix.Kuehling@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
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.h