]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: CRIU implement gpu_id remapping
authorDavid Yat Sin <david.yatsin@amd.com>
Fri, 9 Apr 2021 16:30:43 +0000 (12:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 22:59:52 +0000 (17:59 -0500)
commita3c216b27aeabe719eed4961251b583900f71c00
treebd4c471638c399d6bd889c8579253d750c1b92d6
parent6e06d85cbabe31f6b617f92e91f4823271a6eef5
drm/amdkfd: CRIU implement gpu_id remapping

When doing a restore on a different node, the gpu_id's on the restore
node may be different. But the user space application will still refer
use the original gpu_id's in the ioctl calls. Adding code to create a
gpu id mapping so that kfd can determine actual gpu_id during the user
ioctl's.

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
drivers/gpu/drm/amd/amdkfd/kfd_events.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c