Lines Matching refs:cu
109 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_cpu() argument
112 BUG_ON(!cu); in kfd_populated_cu_info_cpu()
114 dev->node_props.cpu_cores_count = cu->num_cpu_cores; in kfd_populated_cu_info_cpu()
115 dev->node_props.cpu_core_id_base = cu->processor_id_low; in kfd_populated_cu_info_cpu()
116 if (cu->hsa_capability & CRAT_CU_FLAGS_IOMMU_PRESENT) in kfd_populated_cu_info_cpu()
119 pr_info("CU CPU: cores=%d id_base=%d\n", cu->num_cpu_cores, in kfd_populated_cu_info_cpu()
120 cu->processor_id_low); in kfd_populated_cu_info_cpu()
124 struct crat_subtype_computeunit *cu) in kfd_populated_cu_info_gpu() argument
127 BUG_ON(!cu); in kfd_populated_cu_info_gpu()
129 dev->node_props.simd_id_base = cu->processor_id_low; in kfd_populated_cu_info_gpu()
130 dev->node_props.simd_count = cu->num_simd_cores; in kfd_populated_cu_info_gpu()
131 dev->node_props.lds_size_in_kb = cu->lds_size_in_kb; in kfd_populated_cu_info_gpu()
132 dev->node_props.max_waves_per_simd = cu->max_waves_simd; in kfd_populated_cu_info_gpu()
133 dev->node_props.wave_front_size = cu->wave_front_size; in kfd_populated_cu_info_gpu()
134 dev->node_props.mem_banks_count = cu->num_banks; in kfd_populated_cu_info_gpu()
135 dev->node_props.array_count = cu->num_arrays; in kfd_populated_cu_info_gpu()
136 dev->node_props.cu_per_simd_array = cu->num_cu_per_array; in kfd_populated_cu_info_gpu()
137 dev->node_props.simd_per_cu = cu->num_simd_per_cu; in kfd_populated_cu_info_gpu()
138 dev->node_props.max_slots_scratch_cu = cu->max_slots_scatch_cu; in kfd_populated_cu_info_gpu()
139 if (cu->hsa_capability & CRAT_CU_FLAGS_HOT_PLUGGABLE) in kfd_populated_cu_info_gpu()
141 pr_info("CU GPU: simds=%d id_base=%d\n", cu->num_simd_cores, in kfd_populated_cu_info_gpu()
142 cu->processor_id_low); in kfd_populated_cu_info_gpu()
146 static int kfd_parse_subtype_cu(struct crat_subtype_computeunit *cu) in kfd_parse_subtype_cu() argument
151 BUG_ON(!cu); in kfd_parse_subtype_cu()
154 cu->proximity_domain, cu->hsa_capability); in kfd_parse_subtype_cu()
156 if (cu->proximity_domain == i) { in kfd_parse_subtype_cu()
157 if (cu->flags & CRAT_CU_FLAGS_CPU_PRESENT) in kfd_parse_subtype_cu()
158 kfd_populated_cu_info_cpu(dev, cu); in kfd_parse_subtype_cu()
160 if (cu->flags & CRAT_CU_FLAGS_GPU_PRESENT) in kfd_parse_subtype_cu()
161 kfd_populated_cu_info_gpu(dev, cu); in kfd_parse_subtype_cu()
320 struct crat_subtype_computeunit *cu; in kfd_parse_subtype() local
330 cu = (struct crat_subtype_computeunit *)sub_type_hdr; in kfd_parse_subtype()
331 ret = kfd_parse_subtype_cu(cu); in kfd_parse_subtype()