Lines Matching refs:cu

932 		struct crat_subtype_computeunit *cu)  in kfd_populated_cu_info_cpu()  argument
934 dev->node_props.cpu_cores_count = cu->num_cpu_cores; in kfd_populated_cu_info_cpu()
935 dev->node_props.cpu_core_id_base = cu->processor_id_low; in kfd_populated_cu_info_cpu()
936 if (cu->hsa_capability & CRAT_CU_FLAGS_IOMMU_PRESENT) in kfd_populated_cu_info_cpu()
939 pr_debug("CU CPU: cores=%d id_base=%d\n", cu->num_cpu_cores, in kfd_populated_cu_info_cpu()
940 cu->processor_id_low); in kfd_populated_cu_info_cpu()
944 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_gpu() argument
946 dev->node_props.simd_id_base = cu->processor_id_low; in kfd_populated_cu_info_gpu()
947 dev->node_props.simd_count = cu->num_simd_cores; in kfd_populated_cu_info_gpu()
948 dev->node_props.lds_size_in_kb = cu->lds_size_in_kb; in kfd_populated_cu_info_gpu()
949 dev->node_props.max_waves_per_simd = cu->max_waves_simd; in kfd_populated_cu_info_gpu()
950 dev->node_props.wave_front_size = cu->wave_front_size; in kfd_populated_cu_info_gpu()
951 dev->node_props.array_count = cu->array_count; in kfd_populated_cu_info_gpu()
952 dev->node_props.cu_per_simd_array = cu->num_cu_per_array; in kfd_populated_cu_info_gpu()
953 dev->node_props.simd_per_cu = cu->num_simd_per_cu; in kfd_populated_cu_info_gpu()
954 dev->node_props.max_slots_scratch_cu = cu->max_slots_scatch_cu; in kfd_populated_cu_info_gpu()
955 if (cu->hsa_capability & CRAT_CU_FLAGS_HOT_PLUGGABLE) in kfd_populated_cu_info_gpu()
957 pr_debug("CU GPU: id_base=%d\n", cu->processor_id_low); in kfd_populated_cu_info_gpu()
963 static int kfd_parse_subtype_cu(struct crat_subtype_computeunit *cu, in kfd_parse_subtype_cu() argument
969 cu->proximity_domain, cu->hsa_capability); in kfd_parse_subtype_cu()
971 if (cu->proximity_domain == dev->proximity_domain) { in kfd_parse_subtype_cu()
972 if (cu->flags & CRAT_CU_FLAGS_CPU_PRESENT) in kfd_parse_subtype_cu()
973 kfd_populated_cu_info_cpu(dev, cu); in kfd_parse_subtype_cu()
975 if (cu->flags & CRAT_CU_FLAGS_GPU_PRESENT) in kfd_parse_subtype_cu()
976 kfd_populated_cu_info_gpu(dev, cu); in kfd_parse_subtype_cu()
1220 struct crat_subtype_computeunit *cu; in kfd_parse_subtype() local
1228 cu = (struct crat_subtype_computeunit *)sub_type_hdr; in kfd_parse_subtype()
1229 ret = kfd_parse_subtype_cu(cu, device_list); in kfd_parse_subtype()
2043 struct crat_subtype_computeunit *cu; in kfd_create_vcrat_image_gpu() local
2084 cu = (struct crat_subtype_computeunit *)sub_type_hdr; in kfd_create_vcrat_image_gpu()
2085 cu->flags |= CRAT_CU_FLAGS_GPU_PRESENT; in kfd_create_vcrat_image_gpu()
2086 cu->proximity_domain = proximity_domain; in kfd_create_vcrat_image_gpu()
2089 cu->num_simd_per_cu = cu_info.simd_per_cu; in kfd_create_vcrat_image_gpu()
2090 cu->num_simd_cores = cu_info.simd_per_cu * in kfd_create_vcrat_image_gpu()
2092 cu->max_waves_simd = cu_info.max_waves_per_simd; in kfd_create_vcrat_image_gpu()
2094 cu->wave_front_size = cu_info.wave_front_size; in kfd_create_vcrat_image_gpu()
2095 cu->array_count = cu_info.num_shader_arrays_per_engine * in kfd_create_vcrat_image_gpu()
2097 total_num_of_cu = (cu->array_count * cu_info.num_cu_per_sh); in kfd_create_vcrat_image_gpu()
2098 cu->processor_id_low = get_and_inc_gpu_processor_id(total_num_of_cu); in kfd_create_vcrat_image_gpu()
2099 cu->num_cu_per_array = cu_info.num_cu_per_sh; in kfd_create_vcrat_image_gpu()
2100 cu->max_slots_scatch_cu = cu_info.max_scratch_slots_per_cu; in kfd_create_vcrat_image_gpu()
2101 cu->num_banks = cu_info.num_shader_engines; in kfd_create_vcrat_image_gpu()
2102 cu->lds_size_in_kb = cu_info.lds_size; in kfd_create_vcrat_image_gpu()
2104 cu->hsa_capability = 0; in kfd_create_vcrat_image_gpu()