Lines Matching refs:kdev
1320 static int kfd_fill_gpu_cache_info_from_gfx_config(struct kfd_dev *kdev, in kfd_fill_gpu_cache_info_from_gfx_config() argument
1323 struct amdgpu_device *adev = kdev->adev; in kfd_fill_gpu_cache_info_from_gfx_config()
1404 static int kfd_fill_gpu_cache_info(struct kfd_dev *kdev, in kfd_fill_gpu_cache_info() argument
1422 switch (kdev->adev->asic_type) { in kfd_fill_gpu_cache_info()
1460 switch (KFD_GC_VERSION(kdev)) { in kfd_fill_gpu_cache_info()
1529 kfd_fill_gpu_cache_info_from_gfx_config(kdev, pcache_info); in kfd_fill_gpu_cache_info()
1931 struct kfd_dev *kdev, uint8_t type, uint64_t size, in kfd_fill_gpu_memory_affinity() argument
1960 static void kfd_find_numa_node_in_srat(struct kfd_dev *kdev) in kfd_find_numa_node_in_srat() argument
1965 u32 pci_id = pci_domain_nr(kdev->pdev->bus) << 16 | in kfd_find_numa_node_in_srat()
1966 pci_dev_id(kdev->pdev); in kfd_find_numa_node_in_srat()
2041 set_dev_node(&kdev->pdev->dev, numa_node); in kfd_find_numa_node_in_srat()
2055 struct kfd_dev *kdev, in kfd_fill_gpu_direct_io_link_to_cpu() argument
2069 if (kfd_dev_is_large_bar(kdev)) in kfd_fill_gpu_direct_io_link_to_cpu()
2075 if (kdev->adev->gmc.xgmi.connected_to_cpu) { in kfd_fill_gpu_direct_io_link_to_cpu()
2084 if (KFD_GC_VERSION(kdev) == IP_VERSION(9, 4, 2)) { in kfd_fill_gpu_direct_io_link_to_cpu()
2087 kdev->adev, NULL, true); in kfd_fill_gpu_direct_io_link_to_cpu()
2094 amdgpu_amdkfd_get_pcie_bandwidth_mbytes(kdev->adev, true); in kfd_fill_gpu_direct_io_link_to_cpu()
2096 amdgpu_amdkfd_get_pcie_bandwidth_mbytes(kdev->adev, false); in kfd_fill_gpu_direct_io_link_to_cpu()
2102 if (kdev->pdev->dev.numa_node == NUMA_NO_NODE) in kfd_fill_gpu_direct_io_link_to_cpu()
2103 kfd_find_numa_node_in_srat(kdev); in kfd_fill_gpu_direct_io_link_to_cpu()
2106 if (kdev->pdev->dev.numa_node == NUMA_NO_NODE) in kfd_fill_gpu_direct_io_link_to_cpu()
2109 sub_type_hdr->proximity_domain_to = kdev->pdev->dev.numa_node; in kfd_fill_gpu_direct_io_link_to_cpu()
2117 struct kfd_dev *kdev, in kfd_fill_gpu_xgmi_link_to_gpu() argument
2138 amdgpu_amdkfd_get_xgmi_hops_count(kdev->adev, peer_kdev->adev); in kfd_fill_gpu_xgmi_link_to_gpu()
2140 amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(kdev->adev, peer_kdev->adev, false); in kfd_fill_gpu_xgmi_link_to_gpu()
2142 amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(kdev->adev, NULL, true) : 0; in kfd_fill_gpu_xgmi_link_to_gpu()
2154 size_t *size, struct kfd_dev *kdev, in kfd_create_vcrat_image_gpu() argument
2208 amdgpu_amdkfd_get_cu_info(kdev->adev, &cu_info); in kfd_create_vcrat_image_gpu()
2228 if (!kfd_iommu_check_device(kdev)) in kfd_create_vcrat_image_gpu()
2239 local_mem_info = kdev->local_mem_info; in kfd_create_vcrat_image_gpu()
2248 kdev, HSA_MEM_HEAP_TYPE_FB_PUBLIC, in kfd_create_vcrat_image_gpu()
2255 kdev, HSA_MEM_HEAP_TYPE_FB_PRIVATE, in kfd_create_vcrat_image_gpu()
2272 ret = kfd_fill_gpu_cache_info(kdev, cu->processor_id_low, in kfd_create_vcrat_image_gpu()
2292 ret = kfd_fill_gpu_direct_io_link_to_cpu(&avail_size, kdev, in kfd_create_vcrat_image_gpu()
2310 if (kdev->hive_id) { in kfd_create_vcrat_image_gpu()
2315 if (peer_dev->gpu->hive_id != kdev->hive_id) in kfd_create_vcrat_image_gpu()
2321 &avail_size, kdev, peer_dev->gpu, in kfd_create_vcrat_image_gpu()
2354 int flags, struct kfd_dev *kdev, in kfd_create_crat_image_virtual() argument
2386 if (!kdev) in kfd_create_crat_image_virtual()
2392 ret = kfd_create_vcrat_image_gpu(pcrat_image, size, kdev, in kfd_create_crat_image_virtual()