Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/gpu/drm/amd/amdkfd/
A 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()
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()
143 cu_info.cu_bitmap[se % 4][sh + (se / 4) * cu_bitmap_sh_mul]); in mqd_symmetrically_map_cu_mask()
168 for (i = 0; i < cu_info.num_shader_engines; i++) in mqd_symmetrically_map_cu_mask()
[all …]
A Dkfd_crat.c2091 struct kfd_cu_info cu_info; in kfd_create_vcrat_image_gpu() local
2135 amdgpu_amdkfd_get_cu_info(kdev->adev, &cu_info); in kfd_create_vcrat_image_gpu()
2136 cu->num_simd_per_cu = cu_info.simd_per_cu; in kfd_create_vcrat_image_gpu()
2137 cu->num_simd_cores = cu_info.simd_per_cu * cu_info.cu_active_number; in kfd_create_vcrat_image_gpu()
2138 cu->max_waves_simd = cu_info.max_waves_per_simd; in kfd_create_vcrat_image_gpu()
2140 cu->wave_front_size = cu_info.wave_front_size; in kfd_create_vcrat_image_gpu()
2141 cu->array_count = cu_info.num_shader_arrays_per_engine * in kfd_create_vcrat_image_gpu()
2142 cu_info.num_shader_engines; in kfd_create_vcrat_image_gpu()
2145 cu->num_cu_per_array = cu_info.num_cu_per_sh; in kfd_create_vcrat_image_gpu()
2147 cu->num_banks = cu_info.num_shader_engines; in kfd_create_vcrat_image_gpu()
[all …]
A Dkfd_topology.c1597 struct kfd_cu_info *cu_info, in fill_in_l1_pcache() argument
1659 struct kfd_cu_info *cu_info, in fill_in_l2_l3_pcache() argument
1667 cu_sibling_map_mask = cu_info->cu_bitmap[0][0]; in fill_in_l2_l3_pcache()
1702 for (i = 0; i < cu_info->num_shader_engines; i++) { in fill_in_l2_l3_pcache()
1734 struct kfd_cu_info cu_info; in kfd_fill_cache_non_crat_info() local
1742 amdgpu_amdkfd_get_cu_info(kdev->adev, &cu_info); in kfd_fill_cache_non_crat_info()
1743 pcu_info = &cu_info; in kfd_fill_cache_non_crat_info()
1872 struct kfd_cu_info cu_info; in kfd_topology_add_device() local
1907 amdgpu_amdkfd_get_cu_info(dev->gpu->adev, &cu_info); in kfd_topology_add_device()
1917 cu_info.num_shader_arrays_per_engine; in kfd_topology_add_device()
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_amdkfd.c476 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()
488 cu_info->num_cu_per_sh = adev->gfx.config.max_cu_per_sh; in amdgpu_amdkfd_get_cu_info()
489 cu_info->simd_per_cu = acu_info.simd_per_cu; in amdgpu_amdkfd_get_cu_info()
490 cu_info->max_waves_per_simd = acu_info.max_waves_per_simd; in amdgpu_amdkfd_get_cu_info()
491 cu_info->wave_front_size = acu_info.wave_front_size; in amdgpu_amdkfd_get_cu_info()
[all …]
A Damdgpu_atomfirmware.c767 adev->gfx.cu_info.wave_front_size = le16_to_cpu(gfx_info->v24.gc_wave_size); in amdgpu_atomfirmware_get_gfx_info()
768 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()
769 adev->gfx.cu_info.max_scratch_slots_per_cu = gfx_info->v24.gc_max_scratch_slots_per_cu; in amdgpu_atomfirmware_get_gfx_info()
770 adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v24.gc_lds_size); in amdgpu_atomfirmware_get_gfx_info()
783 adev->gfx.cu_info.wave_front_size = le16_to_cpu(gfx_info->v27.gc_wave_size); in amdgpu_atomfirmware_get_gfx_info()
784 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()
785 adev->gfx.cu_info.max_scratch_slots_per_cu = gfx_info->v27.gc_max_scratch_slots_per_cu; in amdgpu_atomfirmware_get_gfx_info()
786 adev->gfx.cu_info.lds_size = le16_to_cpu(gfx_info->v27.gc_lds_size); in amdgpu_atomfirmware_get_gfx_info()
A 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 …]
A Damdgpu_kms.c833 dev_info->cu_active_number = adev->gfx.cu_info.number; in amdgpu_info_ioctl()
834 dev_info->cu_ao_mask = adev->gfx.cu_info.ao_cu_mask; in amdgpu_info_ioctl()
836 memcpy(&dev_info->cu_ao_bitmap[0], &adev->gfx.cu_info.ao_cu_bitmap[0], in amdgpu_info_ioctl()
837 sizeof(adev->gfx.cu_info.ao_cu_bitmap)); in amdgpu_info_ioctl()
838 memcpy(&dev_info->cu_bitmap[0], &adev->gfx.cu_info.bitmap[0], in amdgpu_info_ioctl()
839 sizeof(adev->gfx.cu_info.bitmap)); in amdgpu_info_ioctl()
845 dev_info->wave_front_size = adev->gfx.cu_info.wave_front_size; in amdgpu_info_ioctl()
A Dgfx_v7_0.c5098 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v7_0_get_cu_info() local
5107 memset(cu_info, 0, sizeof(*cu_info)); in gfx_v7_0_get_cu_info()
5122 cu_info->bitmap[i][j] = bitmap; in gfx_v7_0_get_cu_info()
5135 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v7_0_get_cu_info()
5141 cu_info->number = active_cu_number; in gfx_v7_0_get_cu_info()
5142 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v7_0_get_cu_info()
5143 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v7_0_get_cu_info()
5144 cu_info->max_waves_per_simd = 10; in gfx_v7_0_get_cu_info()
5145 cu_info->max_scratch_slots_per_cu = 32; in gfx_v7_0_get_cu_info()
5146 cu_info->wave_front_size = 64; in gfx_v7_0_get_cu_info()
[all …]
A Damdgpu_discovery.c1334 adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->v1.gc_wave_size); in amdgpu_discovery_get_gfx_info()
1335 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()
1336 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()
1337 adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->v1.gc_lds_size); in amdgpu_discovery_get_gfx_info()
1368 adev->gfx.cu_info.wave_front_size = le32_to_cpu(gc_info->v2.gc_wave_size); in amdgpu_discovery_get_gfx_info()
1369 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()
1370 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()
1371 adev->gfx.cu_info.lds_size = le32_to_cpu(gc_info->v2.gc_lds_size); in amdgpu_discovery_get_gfx_info()
A Dgfx_v6_0.c2747 WREG32(mmRLC_PG_ALWAYS_ON_CU_MASK, adev->gfx.cu_info.ao_cu_mask); in gfx_v6_0_init_ao_cu_mask()
2751 tmp |= (adev->gfx.cu_info.number << RLC_MAX_PG_CU__MAX_POWERED_UP_CU__SHIFT); in gfx_v6_0_init_ao_cu_mask()
3555 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v6_0_get_cu_info() local
3564 memset(cu_info, 0, sizeof(*cu_info)); in gfx_v6_0_get_cu_info()
3579 cu_info->bitmap[i][j] = bitmap; in gfx_v6_0_get_cu_info()
3592 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v6_0_get_cu_info()
3599 cu_info->number = active_cu_number; in gfx_v6_0_get_cu_info()
3600 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v6_0_get_cu_info()
A 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()
A Damdgpu_amdkfd.h232 struct kfd_cu_info *cu_info);
A Damdgpu_gfx.h340 struct amdgpu_cu_info cu_info; member
A Dgfx_v8_0.c7100 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v8_0_get_cu_info() local
7104 memset(cu_info, 0, sizeof(*cu_info)); in gfx_v8_0_get_cu_info()
7124 cu_info->bitmap[i][j] = bitmap; in gfx_v8_0_get_cu_info()
7137 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v8_0_get_cu_info()
7143 cu_info->number = active_cu_number; in gfx_v8_0_get_cu_info()
7144 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v8_0_get_cu_info()
7145 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v8_0_get_cu_info()
7146 cu_info->max_waves_per_simd = 10; in gfx_v8_0_get_cu_info()
7147 cu_info->max_scratch_slots_per_cu = 32; in gfx_v8_0_get_cu_info()
7148 cu_info->wave_front_size = 64; in gfx_v8_0_get_cu_info()
[all …]
A Dgfx_v9_0.c756 struct amdgpu_cu_info *cu_info);
1478 struct amdgpu_cu_info *cu_info = &adev->gfx.cu_info; in gfx_v9_0_init_always_on_cu_mask() local
1500 if (cu_info->bitmap[i][j] & mask) { in gfx_v9_0_init_always_on_cu_mask()
1513 cu_info->ao_cu_bitmap[i][j] = cu_bitmap; in gfx_v9_0_init_always_on_cu_mask()
2376 gfx_v9_0_get_cu_info(adev, &adev->gfx.cu_info); in gfx_v9_0_constants_init()
7083 struct amdgpu_cu_info *cu_info) in gfx_v9_0_get_cu_info() argument
7089 if (!adev || !cu_info) in gfx_v9_0_get_cu_info()
7126 cu_info->bitmap[i % 4][j + i / 4] = bitmap; in gfx_v9_0_get_cu_info()
7145 cu_info->number = active_cu_number; in gfx_v9_0_get_cu_info()
7146 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v9_0_get_cu_info()
[all …]
A Damdgpu_device.c2025 adev->gfx.cu_info.wave_front_size = le32_to_cpu(gpu_info_fw->gc_wave_size); in amdgpu_device_parse_gpu_info_fw()
2026 adev->gfx.cu_info.max_waves_per_simd = in amdgpu_device_parse_gpu_info_fw()
2028 adev->gfx.cu_info.max_scratch_slots_per_cu = in amdgpu_device_parse_gpu_info_fw()
2030 adev->gfx.cu_info.lds_size = le32_to_cpu(gpu_info_fw->gc_lds_size); in amdgpu_device_parse_gpu_info_fw()
3852 adev->gfx.cu_info.number); in amdgpu_device_init()
A Dgfx_v11_0.c112 struct amdgpu_cu_info *cu_info);
1658 gfx_v11_0_get_cu_info(adev, &adev->gfx.cu_info); in gfx_v11_0_constants_init()
6435 struct amdgpu_cu_info *cu_info) in gfx_v11_0_get_cu_info() argument
6441 if (!adev || !cu_info) in gfx_v11_0_get_cu_info()
6472 cu_info->bitmap[i % 4][j + (i / 4) * 2] = bitmap; in gfx_v11_0_get_cu_info()
6486 cu_info->number = active_cu_number; in gfx_v11_0_get_cu_info()
6487 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v11_0_get_cu_info()
A Dgfx_v10_0.c3490 struct amdgpu_cu_info *cu_info);
4971 gfx_v10_0_get_cu_info(adev, &adev->gfx.cu_info); in gfx_v10_0_constants_init()
9530 struct amdgpu_cu_info *cu_info) in gfx_v10_0_get_cu_info() argument
9536 if (!adev || !cu_info) in gfx_v10_0_get_cu_info()
9559 cu_info->bitmap[i][j] = bitmap; in gfx_v10_0_get_cu_info()
9572 cu_info->ao_cu_bitmap[i][j] = ao_bitmap; in gfx_v10_0_get_cu_info()
9578 cu_info->number = active_cu_number; in gfx_v10_0_get_cu_info()
9579 cu_info->ao_cu_mask = ao_cu_mask; in gfx_v10_0_get_cu_info()
9580 cu_info->simd_per_cu = NUM_SIMD_PER_CU; in gfx_v10_0_get_cu_info()
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_main.c1110 struct netdev_notifier_changeupper_info *cu_info; in prestera_netdev_port_event() local
1116 cu_info = container_of(info, in prestera_netdev_port_event()
1122 upper = cu_info->upper_dev; in prestera_netdev_port_event()
1129 if (!cu_info->linking) in prestera_netdev_port_event()
1138 !prestera_lag_master_check(upper, cu_info->upper_info, extack)) in prestera_netdev_port_event()
1154 upper = cu_info->upper_dev; in prestera_netdev_port_event()
1156 if (cu_info->linking) in prestera_netdev_port_event()
1162 if (cu_info->linking) in prestera_netdev_port_event()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
A Dsmu7_clockpowergating.c431 adev->gfx.cu_info.number, in smu7_powergate_gfx()
A Dvega12_hwmgr.c430 data->total_active_cus = adev->gfx.cu_info.number; in vega12_hwmgr_backend_init()
A Dvega20_hwmgr.c472 data->total_active_cus = adev->gfx.cu_info.number; in vega20_hwmgr_backend_init()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/swsmu/smu11/
A 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-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A Dspectrum.c5044 struct netdev_notifier_changeupper_info *cu_info; in mlxsw_sp_netdevice_vxlan_event() local
5053 cu_info = container_of(info, in mlxsw_sp_netdevice_vxlan_event()
5056 upper_dev = cu_info->upper_dev; in mlxsw_sp_netdevice_vxlan_event()
5063 if (cu_info->linking) { in mlxsw_sp_netdevice_vxlan_event()
/linux-6.3-rc2/drivers/gpu/drm/amd/pm/powerplay/smumgr/
A Dvegam_smumgr.c1912 adev->gfx.cu_info.number, in vegam_enable_reconfig_cus()

Completed in 155 milliseconds

12