cu_info 479 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c void amdgpu_amdkfd_get_cu_info(struct kgd_dev *kgd, struct kfd_cu_info *cu_info) cu_info 482 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c struct amdgpu_cu_info acu_info = adev->gfx.cu_info; cu_info 484 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c memset(cu_info, 0, sizeof(*cu_info)); cu_info 485 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c if (sizeof(cu_info->cu_bitmap) != sizeof(acu_info.bitmap)) cu_info 488 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->cu_active_number = acu_info.number; cu_info 489 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->cu_ao_mask = acu_info.ao_cu_mask; cu_info 490 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c memcpy(&cu_info->cu_bitmap[0], &acu_info.bitmap[0], cu_info 492 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->num_shader_engines = adev->gfx.config.max_shader_engines; cu_info 493 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->num_shader_arrays_per_engine = adev->gfx.config.max_sh_per_se; cu_info 494 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->num_cu_per_sh = adev->gfx.config.max_cu_per_sh; cu_info 495 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->simd_per_cu = acu_info.simd_per_cu; cu_info 496 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->max_waves_per_simd = acu_info.max_waves_per_simd; cu_info 497 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->wave_front_size = acu_info.wave_front_size; cu_info 498 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->max_scratch_slots_per_cu = acu_info.max_scratch_slots_per_cu; cu_info 499 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c cu_info->lds_size = acu_info.lds_size; cu_info 170 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h void amdgpu_amdkfd_get_cu_info(struct kgd_dev *kgd, struct kfd_cu_info *cu_info); cu_info 455 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c adev->gfx.cu_info.wave_front_size = le16_to_cpu(gfx_info->v24.gc_wave_size); cu_info 456 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c adev->gfx.cu_info.max_waves_per_simd = le16_to_cpu(gfx_info->v24.gc_max_waves_per_simd); cu_info 457 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c adev->gfx.cu_info.max_scratch_slots_per_cu = gfx_info->v24.gc_max_scratch_slots_per_cu; cu_info 458 drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v24.gc_lds_size); cu_info 1484 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->gfx.cu_info.wave_front_size = le32_to_cpu(gpu_info_fw->gc_wave_size); cu_info 1485 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->gfx.cu_info.max_waves_per_simd = cu_info 1487 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->gfx.cu_info.max_scratch_slots_per_cu = cu_info 1489 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->gfx.cu_info.lds_size = le32_to_cpu(gpu_info_fw->gc_lds_size); cu_info 406 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->gc_wave_size); cu_info 407 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c adev->gfx.cu_info.max_waves_per_simd = le32_to_cpu(gc_info->gc_max_waves_per_simd); cu_info 408 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c adev->gfx.cu_info.max_scratch_slots_per_cu = le32_to_cpu(gc_info->gc_max_scratch_slots_per_cu); cu_info 409 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->gc_lds_size); cu_info 308 drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h struct amdgpu_cu_info cu_info; cu_info 723 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c dev_info.cu_active_number = adev->gfx.cu_info.number; cu_info 724 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c dev_info.cu_ao_mask = adev->gfx.cu_info.ao_cu_mask; cu_info 726 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c memcpy(&dev_info.cu_ao_bitmap[0], &adev->gfx.cu_info.ao_cu_bitmap[0], cu_info 727 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c sizeof(adev->gfx.cu_info.ao_cu_bitmap)); cu_info 728 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c memcpy(&dev_info.cu_bitmap[0], &adev->gfx.cu_info.bitmap[0], cu_info 729 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c sizeof(adev->gfx.cu_info.bitmap)); cu_info 746 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c dev_info.wave_front_size = adev->gfx.cu_info.wave_front_size; cu_info 243 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c struct amdgpu_cu_info *cu_info); cu_info 1742 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c gfx_v10_0_get_cu_info(adev, &adev->gfx.cu_info); cu_info 5435 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c struct amdgpu_cu_info *cu_info) cu_info 5441 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c if (!adev || !cu_info) cu_info 5457 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->bitmap[i][j] = bitmap; cu_info 5470 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; cu_info 5476 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->number = active_cu_number; cu_info 5477 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->ao_cu_mask = ao_cu_mask; cu_info 5478 drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c cu_info->simd_per_cu = NUM_SIMD_PER_CU; cu_info 2788 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); cu_info 2792 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c tmp |= (adev->gfx.cu_info.number << RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT); cu_info 3577 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; cu_info 3586 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c memset(cu_info, 0, sizeof(*cu_info)); cu_info 3601 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c cu_info->bitmap[i][j] = bitmap; cu_info 3614 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; cu_info 3621 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c cu_info->number = active_cu_number; cu_info 3622 drivers/gpu/drm/amd/amdgpu/gfx_v6_0.c cu_info->ao_cu_mask = ao_cu_mask; cu_info 3841 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); cu_info 3845 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c tmp |= (adev->gfx.cu_info.number << RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT); cu_info 5110 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; cu_info 5119 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c memset(cu_info, 0, sizeof(*cu_info)); cu_info 5134 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->bitmap[i][j] = bitmap; cu_info 5147 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; cu_info 5153 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->number = active_cu_number; cu_info 5154 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->ao_cu_mask = ao_cu_mask; cu_info 5155 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->simd_per_cu = NUM_SIMD_PER_CU; cu_info 5156 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->max_waves_per_simd = 10; cu_info 5157 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->max_scratch_slots_per_cu = 32; cu_info 5158 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->wave_front_size = 64; cu_info 5159 drivers/gpu/drm/amd/amdgpu/gfx_v7_0.c cu_info->lds_size = 64; cu_info 4090 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); cu_info 7132 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; cu_info 7136 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c memset(cu_info, 0, sizeof(*cu_info)); cu_info 7156 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->bitmap[i][j] = bitmap; cu_info 7169 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->ao_cu_bitmap[i][j] = ao_bitmap; cu_info 7175 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->number = active_cu_number; cu_info 7176 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->ao_cu_mask = ao_cu_mask; cu_info 7177 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->simd_per_cu = NUM_SIMD_PER_CU; cu_info 7178 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->max_waves_per_simd = 10; cu_info 7179 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->max_scratch_slots_per_cu = 32; cu_info 7180 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->wave_front_size = 64; cu_info 7181 drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c cu_info->lds_size = 64; cu_info 730 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c struct amdgpu_cu_info *cu_info); cu_info 1490 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; cu_info 1512 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (cu_info->bitmap[i][j] & mask) { cu_info 1525 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->ao_cu_bitmap[i][j] = cu_bitmap; cu_info 2509 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c gfx_v9_0_get_cu_info(adev, &adev->gfx.cu_info); cu_info 6451 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c struct amdgpu_cu_info *cu_info) cu_info 6457 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c if (!adev || !cu_info) cu_info 6494 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->bitmap[i % 4][j + i / 4] = bitmap; cu_info 6507 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->ao_cu_bitmap[i % 4][j + i / 4] = ao_bitmap; cu_info 6513 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->number = active_cu_number; cu_info 6514 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->ao_cu_mask = ao_cu_mask; cu_info 6515 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c cu_info->simd_per_cu = NUM_SIMD_PER_CU; cu_info 32 drivers/gpu/drm/amd/amdgpu/gfx_v9_0.h int gfx_v9_0_get_cu_info(struct amdgpu_device *adev, struct amdgpu_cu_info *cu_info); cu_info 546 drivers/gpu/drm/amd/amdkfd/kfd_crat.c struct kfd_cu_info *cu_info, cu_info 612 drivers/gpu/drm/amd/amdkfd/kfd_crat.c struct kfd_cu_info *cu_info, cu_info 696 drivers/gpu/drm/amd/amdkfd/kfd_crat.c for (i = 0; i < cu_info->num_shader_engines; i++) { cu_info 697 drivers/gpu/drm/amd/amdkfd/kfd_crat.c for (j = 0; j < cu_info->num_shader_arrays_per_engine; cu_info 699 drivers/gpu/drm/amd/amdkfd/kfd_crat.c for (k = 0; k < cu_info->num_cu_per_sh; cu_info 704 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu_info, cu_info 706 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu_info->cu_bitmap[i][j], cu_info 1146 drivers/gpu/drm/amd/amdkfd/kfd_crat.c struct kfd_cu_info cu_info; cu_info 1192 drivers/gpu/drm/amd/amdkfd/kfd_crat.c amdgpu_amdkfd_get_cu_info(kdev->kgd, &cu_info); cu_info 1193 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->num_simd_per_cu = cu_info.simd_per_cu; cu_info 1194 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->num_simd_cores = cu_info.simd_per_cu * cu_info.cu_active_number; cu_info 1195 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->max_waves_simd = cu_info.max_waves_per_simd; cu_info 1197 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->wave_front_size = cu_info.wave_front_size; cu_info 1198 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->array_count = cu_info.num_shader_arrays_per_engine * cu_info 1199 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu_info.num_shader_engines; cu_info 1200 drivers/gpu/drm/amd/amdkfd/kfd_crat.c total_num_of_cu = (cu->array_count * cu_info.num_cu_per_sh); cu_info 1202 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->num_cu_per_array = cu_info.num_cu_per_sh; cu_info 1203 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->max_slots_scatch_cu = cu_info.max_scratch_slots_per_cu; cu_info 1204 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->num_banks = cu_info.num_shader_engines; cu_info 1205 drivers/gpu/drm/amd/amdkfd/kfd_crat.c cu->lds_size_in_kb = cu_info.lds_size; cu_info 1258 drivers/gpu/drm/amd/amdkfd/kfd_crat.c &cu_info, cu_info 100 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c struct kfd_cu_info cu_info; cu_info 104 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c amdgpu_amdkfd_get_cu_info(mm->dev->kgd, &cu_info); cu_info 106 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c if (cu_mask_count > cu_info.cu_active_number) cu_info 107 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c cu_mask_count = cu_info.cu_active_number; cu_info 109 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c for (se = 0; se < cu_info.num_shader_engines; se++) cu_info 110 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c for (sh = 0; sh < cu_info.num_shader_arrays_per_engine; sh++) cu_info 111 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c cu_per_se[se] += hweight32(cu_info.cu_bitmap[se % 4][sh + (se / 4)]); cu_info 127 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c if (se == cu_info.num_shader_engines) { cu_info 1194 drivers/gpu/drm/amd/amdkfd/kfd_topology.c struct kfd_cu_info cu_info; cu_info 1268 drivers/gpu/drm/amd/amdkfd/kfd_topology.c amdgpu_amdkfd_get_cu_info(dev->gpu->kgd, &cu_info); cu_info 1274 drivers/gpu/drm/amd/amdkfd/kfd_topology.c cu_info.num_shader_arrays_per_engine; cu_info 1347 drivers/gpu/drm/amd/amdkfd/kfd_topology.c cu_info.simd_per_cu * cu_info.cu_active_number; cu_info 426 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c adev->gfx.cu_info.number); cu_info 916 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c data->total_active_cus = adev->gfx.cu_info.number; cu_info 425 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c data->total_active_cus = adev->gfx.cu_info.number; cu_info 467 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c data->total_active_cus = adev->gfx.cu_info.number; cu_info 1918 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c adev->gfx.cu_info.number); cu_info 6373 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct netdev_notifier_changeupper_info *cu_info; cu_info 6382 drivers/net/ethernet/mellanox/mlxsw/spectrum.c cu_info = container_of(info, cu_info 6385 drivers/net/ethernet/mellanox/mlxsw/spectrum.c upper_dev = cu_info->upper_dev; cu_info 6392 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (cu_info->linking) {