Lines Matching refs:pdd
315 static void kfd_init_apertures_vi(struct kfd_process_device *pdd, uint8_t id) in kfd_init_apertures_vi() argument
321 pdd->lds_base = MAKE_LDS_APP_BASE_VI(); in kfd_init_apertures_vi()
322 pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); in kfd_init_apertures_vi()
324 if (!pdd->dev->use_iommu_v2) { in kfd_init_apertures_vi()
329 pdd->gpuvm_base = SVM_USER_BASE; in kfd_init_apertures_vi()
330 pdd->gpuvm_limit = in kfd_init_apertures_vi()
331 pdd->dev->shared_resources.gpuvm_size - 1; in kfd_init_apertures_vi()
336 pdd->gpuvm_base = MAKE_GPUVM_APP_BASE_VI(id + 1); in kfd_init_apertures_vi()
337 pdd->gpuvm_limit = MAKE_GPUVM_APP_LIMIT(pdd->gpuvm_base, in kfd_init_apertures_vi()
338 pdd->dev->shared_resources.gpuvm_size); in kfd_init_apertures_vi()
341 pdd->scratch_base = MAKE_SCRATCH_APP_BASE_VI(); in kfd_init_apertures_vi()
342 pdd->scratch_limit = MAKE_SCRATCH_APP_LIMIT(pdd->scratch_base); in kfd_init_apertures_vi()
345 static void kfd_init_apertures_v9(struct kfd_process_device *pdd, uint8_t id) in kfd_init_apertures_v9() argument
347 pdd->lds_base = MAKE_LDS_APP_BASE_V9(); in kfd_init_apertures_v9()
348 pdd->lds_limit = MAKE_LDS_APP_LIMIT(pdd->lds_base); in kfd_init_apertures_v9()
356 pdd->gpuvm_base = SVM_USER_BASE; in kfd_init_apertures_v9()
357 pdd->gpuvm_limit = in kfd_init_apertures_v9()
358 pdd->dev->shared_resources.gpuvm_size - 1; in kfd_init_apertures_v9()
360 pdd->scratch_base = MAKE_SCRATCH_APP_BASE_V9(); in kfd_init_apertures_v9()
361 pdd->scratch_limit = MAKE_SCRATCH_APP_LIMIT(pdd->scratch_base); in kfd_init_apertures_v9()
368 struct kfd_process_device *pdd; in kfd_init_apertures() local
382 pdd = kfd_create_process_device_data(dev, process); in kfd_init_apertures()
383 if (!pdd) { in kfd_init_apertures()
393 pdd->lds_base = pdd->lds_limit = 0; in kfd_init_apertures()
394 pdd->gpuvm_base = pdd->gpuvm_limit = 0; in kfd_init_apertures()
395 pdd->scratch_base = pdd->scratch_limit = 0; in kfd_init_apertures()
407 kfd_init_apertures_vi(pdd, id); in kfd_init_apertures()
426 kfd_init_apertures_v9(pdd, id); in kfd_init_apertures()
438 pdd->qpd.cwsr_base = SVM_CWSR_BASE; in kfd_init_apertures()
439 pdd->qpd.ib_base = SVM_IB_BASE; in kfd_init_apertures()
444 dev_dbg(kfd_device, "gpu id %u\n", pdd->dev->id); in kfd_init_apertures()
445 dev_dbg(kfd_device, "lds_base %llX\n", pdd->lds_base); in kfd_init_apertures()
446 dev_dbg(kfd_device, "lds_limit %llX\n", pdd->lds_limit); in kfd_init_apertures()
447 dev_dbg(kfd_device, "gpuvm_base %llX\n", pdd->gpuvm_base); in kfd_init_apertures()
448 dev_dbg(kfd_device, "gpuvm_limit %llX\n", pdd->gpuvm_limit); in kfd_init_apertures()
449 dev_dbg(kfd_device, "scratch_base %llX\n", pdd->scratch_base); in kfd_init_apertures()
450 dev_dbg(kfd_device, "scratch_limit %llX\n", pdd->scratch_limit); in kfd_init_apertures()