Lines Matching refs:pdd

206 		struct kfd_process_device *pdd;  in svm_range_dma_map()  local
209 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_dma_map()
210 if (!pdd) { in svm_range_dma_map()
215 r = svm_range_dma_map_dev(pdd->dev->adev, prange, offset, npages, in svm_range_dma_map()
244 struct kfd_process_device *pdd; in svm_range_free_dma_mappings() local
257 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_free_dma_mappings()
258 if (!pdd) { in svm_range_free_dma_mappings()
262 dev = &pdd->dev->pdev->dev; in svm_range_free_dma_mappings()
622 struct kfd_process_device *pdd; in svm_range_get_adev_by_id() local
633 pdd = kfd_process_device_from_gpuidx(p, gpu_idx); in svm_range_get_adev_by_id()
634 if (!pdd) { in svm_range_get_adev_by_id()
639 return pdd->dev->adev; in svm_range_get_adev_by_id()
1237 struct kfd_process_device *pdd; in svm_range_unmap_from_gpus() local
1260 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_unmap_from_gpus()
1261 if (!pdd) { in svm_range_unmap_from_gpus()
1266 kfd_smi_event_unmap_from_gpu(pdd->dev, p->lead_thread->pid, in svm_range_unmap_from_gpus()
1269 r = svm_range_unmap_from_gpu(pdd->dev->adev, in svm_range_unmap_from_gpus()
1270 drm_priv_to_vm(pdd->drm_priv), in svm_range_unmap_from_gpus()
1282 kfd_flush_tlb(pdd, TLB_FLUSH_HEAVYWEIGHT); in svm_range_unmap_from_gpus()
1289 svm_range_map_to_gpu(struct kfd_process_device *pdd, struct svm_range *prange, in svm_range_map_to_gpu() argument
1294 struct amdgpu_device *adev = pdd->dev->adev; in svm_range_map_to_gpu()
1295 struct amdgpu_vm *vm = drm_priv_to_vm(pdd->drm_priv); in svm_range_map_to_gpu()
1366 struct kfd_process_device *pdd; in svm_range_map_to_gpus() local
1381 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_map_to_gpus()
1382 if (!pdd) { in svm_range_map_to_gpus()
1387 pdd = kfd_bind_process_to_device(pdd->dev, p); in svm_range_map_to_gpus()
1388 if (IS_ERR(pdd)) in svm_range_map_to_gpus()
1391 if (bo_adev && pdd->dev->adev != bo_adev && in svm_range_map_to_gpus()
1392 !amdgpu_xgmi_same_hive(pdd->dev->adev, bo_adev)) { in svm_range_map_to_gpus()
1397 r = svm_range_map_to_gpu(pdd, prange, offset, npages, readonly, in svm_range_map_to_gpus()
1414 kfd_flush_tlb(pdd, TLB_FLUSH_LEGACY); in svm_range_map_to_gpus()
1432 struct kfd_process_device *pdd; in svm_range_reserve_bos() local
1439 pdd = kfd_process_device_from_gpuidx(ctx->process, gpuidx); in svm_range_reserve_bos()
1440 if (!pdd) { in svm_range_reserve_bos()
1444 vm = drm_priv_to_vm(pdd->drm_priv); in svm_range_reserve_bos()
1459 pdd = kfd_process_device_from_gpuidx(ctx->process, gpuidx); in svm_range_reserve_bos()
1460 if (!pdd) { in svm_range_reserve_bos()
1466 r = amdgpu_vm_validate_pt_bos(pdd->dev->adev, in svm_range_reserve_bos()
1467 drm_priv_to_vm(pdd->drm_priv), in svm_range_reserve_bos()
1489 struct kfd_process_device *pdd; in kfd_svm_page_owner() local
1491 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in kfd_svm_page_owner()
1493 return SVM_ADEV_PGMAP_OWNER(pdd->dev->adev); in kfd_svm_page_owner()
2154 struct kfd_process_device *pdd; in svm_range_drain_retry_fault() local
2167 pdd = p->pdds[i]; in svm_range_drain_retry_fault()
2168 if (!pdd) in svm_range_drain_retry_fault()
2173 amdgpu_ih_wait_on_checkpoint_process_ts(pdd->dev->adev, in svm_range_drain_retry_fault()
2174 &pdd->dev->adev->irq.ih1); in svm_range_drain_retry_fault()
2745 struct kfd_process_device *pdd; in svm_range_count_fault() local
2763 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_count_fault()
2764 if (pdd) in svm_range_count_fault()
2765 WRITE_ONCE(pdd->faults, pdd->faults + 1); in svm_range_count_fault()
3206 struct kfd_process_device *pdd; in svm_range_best_prefetch_location() local
3230 pdd = kfd_process_device_from_gpuidx(p, gpuidx); in svm_range_best_prefetch_location()
3231 if (!pdd) { in svm_range_best_prefetch_location()
3236 if (pdd->dev->adev == bo_adev) in svm_range_best_prefetch_location()
3239 if (!amdgpu_xgmi_same_hive(pdd->dev->adev, bo_adev)) { in svm_range_best_prefetch_location()
3930 struct kfd_process_device *pdd = p->pdds[index]; in kfd_criu_checkpoint_svm() local
3934 query_attr[index + nattr_common].value = pdd->user_gpu_id; in kfd_criu_checkpoint_svm()