Searched refs:pasid_limit (Results 1 – 2 of 2) sorted by relevance
/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_pasid.c | 28 static unsigned int pasid_limit; variable 33 pasid_limit = KFD_MAX_NUM_OF_PROCESSES; in kfd_pasid_init() 35 pasid_bitmap = kcalloc(BITS_TO_LONGS(pasid_limit), sizeof(long), GFP_KERNEL); in kfd_pasid_init() 51 if (new_limit < pasid_limit) { in kfd_set_pasid_limit() 57 ok = (find_next_bit(pasid_bitmap, pasid_limit, new_limit) == in kfd_set_pasid_limit() 58 pasid_limit); in kfd_set_pasid_limit() 60 pasid_limit = new_limit; in kfd_set_pasid_limit() 72 return pasid_limit; in kfd_get_pasid_limit() 81 found = find_first_zero_bit(pasid_bitmap, pasid_limit); in kfd_pasid_alloc() 82 if (found == pasid_limit) in kfd_pasid_alloc() [all …]
|
D | kfd_device.c | 144 unsigned int pasid_limit; in device_iommu_pasid_init() local 162 pasid_limit = min_t(unsigned int, in device_iommu_pasid_init() 169 pasid_limit = min_t(unsigned int, in device_iommu_pasid_init() 170 pasid_limit, in device_iommu_pasid_init() 173 err = amd_iommu_init_device(kfd->pdev, pasid_limit); in device_iommu_pasid_init() 179 if (!kfd_set_pasid_limit(pasid_limit)) { in device_iommu_pasid_init() 366 unsigned int pasid_limit; in kgd2kfd_resume() local 371 pasid_limit = kfd_get_pasid_limit(); in kgd2kfd_resume() 374 err = amd_iommu_init_device(kfd->pdev, pasid_limit); in kgd2kfd_resume()
|