Home
last modified time | relevance | path

Searched refs:cu_info (Results 1 – 25 of 26) sorted by relevance

12

/Linux-v6.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager.c101 struct kfd_cu_info cu_info; in mqd_symmetrically_map_cu_mask() local
107 amdgpu_amdkfd_get_cu_info(mm->dev->adev, &cu_info); in mqd_symmetrically_map_cu_mask()
109 if (cu_mask_count > cu_info.cu_active_number) in mqd_symmetrically_map_cu_mask()
110 cu_mask_count = cu_info.cu_active_number; in mqd_symmetrically_map_cu_mask()
116 if (cu_info.num_shader_engines > KFD_MAX_NUM_SE) { in mqd_symmetrically_map_cu_mask()
117 pr_err("Exceeded KFD_MAX_NUM_SE, chip reports %d\n", cu_info.num_shader_engines); in mqd_symmetrically_map_cu_mask()
120 if (cu_info.num_shader_arrays_per_engine > KFD_MAX_NUM_SH_PER_SE) { in mqd_symmetrically_map_cu_mask()
122 cu_info.num_shader_arrays_per_engine * cu_info.num_shader_engines); in mqd_symmetrically_map_cu_mask()
140 for (se = 0; se < cu_info.num_shader_engines; se++) in mqd_symmetrically_map_cu_mask()
141 for (sh = 0; sh < cu_info.num_shader_arrays_per_engine; sh++) in mqd_symmetrically_map_cu_mask()
[all …]
Dkfd_crat.c1297 struct kfd_cu_info *cu_info, in fill_in_l1_pcache() argument
1351 struct kfd_cu_info *cu_info, in fill_in_l2_l3_pcache() argument
1363 cu_sibling_map_mask = cu_info->cu_bitmap[0][0]; in fill_in_l2_l3_pcache()
1388 for (i = 0; i < cu_info->num_shader_engines; i++) { in fill_in_l2_l3_pcache()
1389 for (j = 0; j < cu_info->num_shader_arrays_per_engine; in fill_in_l2_l3_pcache()
1401 cu_info->cu_bitmap[i % 4][j + i / 4]; in fill_in_l2_l3_pcache()
1501 struct kfd_cu_info *cu_info, in kfd_fill_gpu_cache_info() argument
1653 for (i = 0; i < cu_info->num_shader_engines; i++) { in kfd_fill_gpu_cache_info()
1654 for (j = 0; j < cu_info->num_shader_arrays_per_engine; j++) { in kfd_fill_gpu_cache_info()
1655 for (k = 0; k < cu_info->num_cu_per_sh; in kfd_fill_gpu_cache_info()
[all …]
Dkfd_topology.c1600 struct kfd_cu_info cu_info; in kfd_topology_add_device() local
1678 amdgpu_amdkfd_get_cu_info(dev->gpu->adev, &cu_info); in kfd_topology_add_device()
1688 cu_info.num_shader_arrays_per_engine; in kfd_topology_add_device()
1765 cu_info.simd_per_cu * cu_info.cu_active_number; in kfd_topology_add_device()
/Linux-v6.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.c474 void amdgpu_amdkfd_get_cu_info(struct amdgpu_device *adev, struct kfd_cu_info *cu_info) in amdgpu_amdkfd_get_cu_info() argument
476 struct amdgpu_cu_info acu_info = adev->gfx.cu_info; in amdgpu_amdkfd_get_cu_info()
478 memset(cu_info, 0, sizeof(*cu_info)); in amdgpu_amdkfd_get_cu_info()
479 if (sizeof(cu_info->cu_bitmap) != sizeof(acu_info.bitmap)) in amdgpu_amdkfd_get_cu_info()
482 cu_info->cu_active_number = acu_info.number; in amdgpu_amdkfd_get_cu_info()
483 cu_info->cu_ao_mask = acu_info.ao_cu_mask; in amdgpu_amdkfd_get_cu_info()
484 memcpy(&cu_info->cu_bitmap[0], &acu_info.bitmap[0], in amdgpu_amdkfd_get_cu_info()
486 cu_info->num_shader_engines = adev->gfx.config.max_shader_engines; in amdgpu_amdkfd_get_cu_info()
487 cu_info->num_shader_arrays_per_engine = adev->gfx.config.max_sh_per_se; in amdgpu_amdkfd_get_cu_info()
488 cu_info->num_cu_per_sh = adev->gfx.config.max_cu_per_sh; in amdgpu_amdkfd_get_cu_info()
[all …]
Damdgpu_atomfirmware.c705 adev->gfx.cu_info.wave_front_size = le16_to_cpu(gfx_info->v24.gc_wave_size); in amdgpu_atomfirmware_get_gfx_info()
706 adev->gfx.cu_info.max_waves_per_simd = le16_to_cpu(gfx_info->v24.gc_max_waves_per_simd); in amdgpu_atomfirmware_get_gfx_info()
707 adev->gfx.cu_info.max_scratch_slots_per_cu = gfx_info->v24.gc_max_scratch_slots_per_cu; in amdgpu_atomfirmware_get_gfx_info()
708 adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v24.gc_lds_size); in amdgpu_atomfirmware_get_gfx_info()
721 adev->gfx.cu_info.wave_front_size = le16_to_cpu(gfx_info->v27.gc_wave_size); in amdgpu_atomfirmware_get_gfx_info()
722 adev->gfx.cu_info.max_waves_per_simd = le16_to_cpu(gfx_info->v27.gc_max_waves_per_simd); in amdgpu_atomfirmware_get_gfx_info()
723 adev->gfx.cu_info.max_scratch_slots_per_cu = gfx_info->v27.gc_max_scratch_slots_per_cu; in amdgpu_atomfirmware_get_gfx_info()
724 adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v27.gc_lds_size); in amdgpu_atomfirmware_get_gfx_info()
Dgfx_v9_4_2.c522 adev->gfx.cu_info.number, in gfx_v9_4_2_do_sgprs_init()
532 adev->gfx.cu_info.number * SIMD_ID_MAX * 2, in gfx_v9_4_2_do_sgprs_init()
547 adev->gfx.cu_info.number * 2, in gfx_v9_4_2_do_sgprs_init()
556 pattern[1], adev->gfx.cu_info.number * SIMD_ID_MAX * 6, in gfx_v9_4_2_do_sgprs_init()
587 adev->gfx.cu_info.number, in gfx_v9_4_2_do_sgprs_init()
597 adev->gfx.cu_info.number * SIMD_ID_MAX * 4, in gfx_v9_4_2_do_sgprs_init()
665 adev->gfx.cu_info.number, in gfx_v9_4_2_do_vgprs_init()
682 adev->gfx.cu_info.number * SIMD_ID_MAX, in gfx_v9_4_2_do_vgprs_init()
1838 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v9_4_2_log_cu_timeout_status() local
1850 simd = i / cu_info->max_waves_per_simd; in gfx_v9_4_2_log_cu_timeout_status()
[all …]
Damdgpu_kms.c823 dev_info->cu_active_number = adev->gfx.cu_info.number; in amdgpu_info_ioctl()
824 dev_info->cu_ao_mask = adev->gfx.cu_info.ao_cu_mask; in amdgpu_info_ioctl()
826 memcpy(&dev_info->cu_ao_bitmap[0], &adev->gfx.cu_info.ao_cu_bitmap[0], in amdgpu_info_ioctl()
827 sizeof(adev->gfx.cu_info.ao_cu_bitmap)); in amdgpu_info_ioctl()
828 memcpy(&dev_info->cu_bitmap[0], &adev->gfx.cu_info.bitmap[0], in amdgpu_info_ioctl()
829 sizeof(adev->gfx.cu_info.bitmap)); in amdgpu_info_ioctl()
835 dev_info->wave_front_size = adev->gfx.cu_info.wave_front_size; in amdgpu_info_ioctl()
Dgfx_v7_0.c3822 WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); in gfx_v7_0_init_ao_cu_mask()
3826 tmp |= (adev->gfx.cu_info.number << RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT); in gfx_v7_0_init_ao_cu_mask()
5131 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v7_0_get_cu_info() local
5140 memset(cu_info, 0, sizeof(*cu_info)); in gfx_v7_0_get_cu_info()
5155 cu_info->bitmap[i][j] = bitmap; in gfx_v7_0_get_cu_info()
5168 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v7_0_get_cu_info()
5174 cu_info->number = active_cu_number; in gfx_v7_0_get_cu_info()
5175 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v7_0_get_cu_info()
5176 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v7_0_get_cu_info()
5177 cu_info->max_waves_per_simd = 10; in gfx_v7_0_get_cu_info()
[all …]
Damdgpu_discovery.c1320 adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->v1.gc_wave_size); in amdgpu_discovery_get_gfx_info()
1321 adev->gfx.cu_info.max_waves_per_simd = le32_to_cpu(gc_info->v1.gc_max_waves_per_simd); in amdgpu_discovery_get_gfx_info()
1322 adev->gfx.cu_info.max_scratch_slots_per_cu = le32_to_cpu(gc_info->v1.gc_max_scratch_slots_per_cu); in amdgpu_discovery_get_gfx_info()
1323 adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->v1.gc_lds_size); in amdgpu_discovery_get_gfx_info()
1354 adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->v2.gc_wave_size); in amdgpu_discovery_get_gfx_info()
1355 adev->gfx.cu_info.max_waves_per_simd = le32_to_cpu(gc_info->v2.gc_max_waves_per_simd); in amdgpu_discovery_get_gfx_info()
1356 adev->gfx.cu_info.max_scratch_slots_per_cu = le32_to_cpu(gc_info->v2.gc_max_scratch_slots_per_cu); in amdgpu_discovery_get_gfx_info()
1357 adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->v2.gc_lds_size); in amdgpu_discovery_get_gfx_info()
Dgfx_v6_0.c2760 WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); in gfx_v6_0_init_ao_cu_mask()
2764 tmp |= (adev->gfx.cu_info.number << RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT); in gfx_v6_0_init_ao_cu_mask()
3568 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v6_0_get_cu_info() local
3577 memset(cu_info, 0, sizeof(*cu_info)); in gfx_v6_0_get_cu_info()
3592 cu_info->bitmap[i][j] = bitmap; in gfx_v6_0_get_cu_info()
3605 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v6_0_get_cu_info()
3612 cu_info->number = active_cu_number; in gfx_v6_0_get_cu_info()
3613 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v6_0_get_cu_info()
Damdgpu_amdkfd_gfx_v9.c829 *max_waves_per_cu = adev->gfx.cu_info.simd_per_cu * in kgd_gfx_v9_get_cu_occupancy()
830 adev->gfx.cu_info.max_waves_per_simd; in kgd_gfx_v9_get_cu_occupancy()
Damdgpu_amdkfd.h227 struct kfd_cu_info *cu_info);
Dgfx_v9_0.c754 struct amdgpu_cu_info *cu_info);
1548 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v9_0_init_always_on_cu_mask() local
1570 if (cu_info->bitmap[i][j] & mask) { in gfx_v9_0_init_always_on_cu_mask()
1583 cu_info->ao_cu_bitmap[i][j] = cu_bitmap; in gfx_v9_0_init_always_on_cu_mask()
2424 gfx_v9_0_get_cu_info(adev, &adev->gfx.cu_info); in gfx_v9_0_constants_init()
6940 struct amdgpu_cu_info *cu_info) in gfx_v9_0_get_cu_info() argument
6946 if (!adev || !cu_info) in gfx_v9_0_get_cu_info()
6983 cu_info->bitmap[i % 4][j + i / 4] = bitmap; in gfx_v9_0_get_cu_info()
6996 cu_info->ao_cu_bitmap[i % 4][j + i / 4] = ao_bitmap; in gfx_v9_0_get_cu_info()
7002 cu_info->number = active_cu_number; in gfx_v9_0_get_cu_info()
[all …]
Damdgpu_gfx.h331 struct amdgpu_cu_info cu_info; member
Dgfx_v8_0.c4064 WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); in gfx_v8_0_init_pg()
7125 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v8_0_get_cu_info() local
7129 memset(cu_info, 0, sizeof(*cu_info)); in gfx_v8_0_get_cu_info()
7149 cu_info->bitmap[i][j] = bitmap; in gfx_v8_0_get_cu_info()
7162 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v8_0_get_cu_info()
7168 cu_info->number = active_cu_number; in gfx_v8_0_get_cu_info()
7169 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v8_0_get_cu_info()
7170 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v8_0_get_cu_info()
7171 cu_info->max_waves_per_simd = 10; in gfx_v8_0_get_cu_info()
7172 cu_info->max_scratch_slots_per_cu = 32; in gfx_v8_0_get_cu_info()
[all …]
Damdgpu_device.c2016 adev->gfx.cu_info.wave_front_size = le32_to_cpu(gpu_info_fw->gc_wave_size); in amdgpu_device_parse_gpu_info_fw()
2017 adev->gfx.cu_info.max_waves_per_simd = in amdgpu_device_parse_gpu_info_fw()
2019 adev->gfx.cu_info.max_scratch_slots_per_cu = in amdgpu_device_parse_gpu_info_fw()
2021 adev->gfx.cu_info.lds_size = le32_to_cpu(gpu_info_fw->gc_lds_size); in amdgpu_device_parse_gpu_info_fw()
3817 adev->gfx.cu_info.number); in amdgpu_device_init()
Dgfx_v11_0.c107 struct amdgpu_cu_info *cu_info);
1632 gfx_v11_0_get_cu_info(adev, &adev->gfx.cu_info); in gfx_v11_0_constants_init()
6302 struct amdgpu_cu_info *cu_info) in gfx_v11_0_get_cu_info() argument
6308 if (!adev || !cu_info) in gfx_v11_0_get_cu_info()
6339 cu_info->bitmap[i % 4][j + (i / 4) * 2] = bitmap; in gfx_v11_0_get_cu_info()
6353 cu_info->number = active_cu_number; in gfx_v11_0_get_cu_info()
6354 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v11_0_get_cu_info()
Dgfx_v10_0.c3490 struct amdgpu_cu_info *cu_info);
5052 gfx_v10_0_get_cu_info(adev, &adev->gfx.cu_info); in gfx_v10_0_constants_init()
9607 struct amdgpu_cu_info *cu_info) in gfx_v10_0_get_cu_info() argument
9613 if (!adev || !cu_info) in gfx_v10_0_get_cu_info()
9636 cu_info->bitmap[i][j] = bitmap; in gfx_v10_0_get_cu_info()
9649 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v10_0_get_cu_info()
9655 cu_info->number = active_cu_number; in gfx_v10_0_get_cu_info()
9656 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v10_0_get_cu_info()
9657 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v10_0_get_cu_info()
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c1121 struct netdev_notifier_changeupper_info *cu_info; in prestera_netdev_port_event() local
1127 cu_info = container_of(info, in prestera_netdev_port_event()
1133 upper = cu_info->upper_dev; in prestera_netdev_port_event()
1140 if (!cu_info->linking) in prestera_netdev_port_event()
1149 !prestera_lag_master_check(upper, cu_info->upper_info, extack)) in prestera_netdev_port_event()
1165 upper = cu_info->upper_dev; in prestera_netdev_port_event()
1167 if (cu_info->linking) in prestera_netdev_port_event()
1173 if (cu_info->linking) in prestera_netdev_port_event()
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dsmu7_clockpowergating.c431 adev->gfx.cu_info.number, in smu7_powergate_gfx()
Dvega12_hwmgr.c431 data->total_active_cus = adev->gfx.cu_info.number; in vega12_hwmgr_backend_init()
Dvega20_hwmgr.c473 data->total_active_cus = adev->gfx.cu_info.number; in vega20_hwmgr_backend_init()
/Linux-v6.1/drivers/gpu/drm/amd/pm/swsmu/smu11/
Dvangogh_ppt.c2135 uint32_t req_active_wgps = adev->gfx.cu_info.number/2; in vangogh_post_smu_init()
2153 if (total_cu == adev->gfx.cu_info.number) in vangogh_post_smu_init()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c5097 struct netdev_notifier_changeupper_info *cu_info; in mlxsw_sp_netdevice_vxlan_event() local
5106 cu_info = container_of(info, in mlxsw_sp_netdevice_vxlan_event()
5109 upper_dev = cu_info->upper_dev; in mlxsw_sp_netdevice_vxlan_event()
5116 if (cu_info->linking) { in mlxsw_sp_netdevice_vxlan_event()
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/smumgr/
Dvegam_smumgr.c1912 adev->gfx.cu_info.number, in vegam_enable_reconfig_cus()

12