drm/amdkfd: use user_gpu_id for svm ranges
authorRajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Wed, 1 Dec 2021 15:26:42 +0000 (10:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 22:59:53 +0000 (17:59 -0500)
commitd763d8030f440441177d9638ffb0be39cba32a03
treeaac6d8d2f84cdf9e444148e5d78ba9bcccfbf191
parentd1289b41ec4db347794abfed7525e33dd2d9503b
drm/amdkfd: use user_gpu_id for svm ranges

Currently the SVM ranges use actual_gpu_id but with Checkpoint Restore
support its possible that the SVM ranges can be resumed on another node
where the actual_gpu_id may not be same as the original (user_gpu_id)
gpu id. So modify svm code to use user_gpu_id.

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_process.c