mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
drm/amdkfd: kfd_bo_mapped_dev support partition
Change amdgpu_amdkfd_bo_mapped_to_dev to use drm_priv as parameter instead of adev, to support spatial partition. This is only used by CRIU checkpoint restore now. No functional change. Signed-off-by: Philip Yang <Philip.Yang@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
caaf576292
commit
f9e292cbba
@@ -1963,7 +1963,7 @@ static int criu_checkpoint_bos(struct kfd_process *p,
|
||||
bo_bucket->offset = amdgpu_bo_mmap_offset(dumper_bo);
|
||||
|
||||
for (i = 0; i < p->n_pdds; i++) {
|
||||
if (amdgpu_amdkfd_bo_mapped_to_dev(p->pdds[i]->dev->adev, kgd_mem))
|
||||
if (amdgpu_amdkfd_bo_mapped_to_dev(p->pdds[i]->drm_priv, kgd_mem))
|
||||
bo_priv->mapped_gpuids[dev_idx++] = p->pdds[i]->user_gpu_id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user