Lines Matching refs:pdd
316 static void kfd_init_apertures_vi(struct kfd_process_device *pdd, uint8_t id) in kfd_init_apertures_vi() argument
322 pdd->lds_base = MAKE_LDS_APP_BASE_VI(); in kfd_init_apertures_vi()
323 pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); in kfd_init_apertures_vi()
325 if (!pdd->dev->use_iommu_v2) { in kfd_init_apertures_vi()
330 pdd->gpuvm_base = SVM_USER_BASE; in kfd_init_apertures_vi()
331 pdd->gpuvm_limit = in kfd_init_apertures_vi()
332 pdd->dev->shared_resources.gpuvm_size - 1; in kfd_init_apertures_vi()
337 pdd->gpuvm_base = MAKE_GPUVM_APP_BASE_VI(id + 1); in kfd_init_apertures_vi()
338 pdd->gpuvm_limit = MAKE_GPUVM_APP_LIMIT(pdd->gpuvm_base, in kfd_init_apertures_vi()
339 pdd->dev->shared_resources.gpuvm_size); in kfd_init_apertures_vi()
342 pdd->scratch_base = MAKE_SCRATCH_APP_BASE_VI(); in kfd_init_apertures_vi()
343 pdd->scratch_limit = MAKE_SCRATCH_APP_LIMIT(pdd->scratch_base); in kfd_init_apertures_vi()
346 static void kfd_init_apertures_v9(struct kfd_process_device *pdd, uint8_t id) in kfd_init_apertures_v9() argument
348 pdd->lds_base = MAKE_LDS_APP_BASE_V9(); in kfd_init_apertures_v9()
349 pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); in kfd_init_apertures_v9()
357 pdd->gpuvm_base = SVM_USER_BASE; in kfd_init_apertures_v9()
358 pdd->gpuvm_limit = in kfd_init_apertures_v9()
359 pdd->dev->shared_resources.gpuvm_size - 1; in kfd_init_apertures_v9()
361 pdd->scratch_base = MAKE_SCRATCH_APP_BASE_V9(); in kfd_init_apertures_v9()
362 pdd->scratch_limit = MAKE_SCRATCH_APP_LIMIT(pdd->scratch_base); in kfd_init_apertures_v9()
369 struct kfd_process_device *pdd; in kfd_init_apertures() local
383 pdd = kfd_create_process_device_data(dev, process); in kfd_init_apertures()
384 if (!pdd) { in kfd_init_apertures()
394 pdd->lds_base = pdd->lds_limit = 0; in kfd_init_apertures()
395 pdd->gpuvm_base = pdd->gpuvm_limit = 0; in kfd_init_apertures()
396 pdd->scratch_base = pdd->scratch_limit = 0; in kfd_init_apertures()
408 kfd_init_apertures_vi(pdd, id); in kfd_init_apertures()
412 kfd_init_apertures_v9(pdd, id); in kfd_init_apertures()
424 pdd->qpd.cwsr_base = SVM_CWSR_BASE; in kfd_init_apertures()
425 pdd->qpd.ib_base = SVM_IB_BASE; in kfd_init_apertures()
430 dev_dbg(kfd_device, "gpu id %u\n", pdd->dev->id); in kfd_init_apertures()
431 dev_dbg(kfd_device, "lds_base %llX\n", pdd->lds_base); in kfd_init_apertures()
432 dev_dbg(kfd_device, "lds_limit %llX\n", pdd->lds_limit); in kfd_init_apertures()
433 dev_dbg(kfd_device, "gpuvm_base %llX\n", pdd->gpuvm_base); in kfd_init_apertures()
434 dev_dbg(kfd_device, "gpuvm_limit %llX\n", pdd->gpuvm_limit); in kfd_init_apertures()
435 dev_dbg(kfd_device, "scratch_base %llX\n", pdd->scratch_base); in kfd_init_apertures()
436 dev_dbg(kfd_device, "scratch_limit %llX\n", pdd->scratch_limit); in kfd_init_apertures()