| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_xcp.c | 140 ret = xcp_mgr->funcs->get_ip_details(xcp_mgr, i, j, in amdgpu_xcp_init() 152 xcp_mgr, &xcp_mgr->xcp[i], &mem_id); in amdgpu_xcp_init() 212 if (!xcp_mgr || xcp_mgr->mode == AMDGPU_XCP_MODE_NONE) in amdgpu_xcp_restore_partition_mode() 231 mode = xcp_mgr->funcs->query_partition_mode(xcp_mgr); in amdgpu_xcp_query_partition_mode() 295 xcp_mgr = kzalloc(sizeof(*xcp_mgr), GFP_KERNEL); in amdgpu_xcp_mgr_init() 297 if (!xcp_mgr) in amdgpu_xcp_mgr_init() 308 adev->xcp_mgr = xcp_mgr; in amdgpu_xcp_mgr_init() 525 if (xcp_mgr->funcs && xcp_mgr->funcs->get_xcp_res_info) in amdgpu_xcp_get_res_info() 536 struct amdgpu_xcp_mgr *xcp_mgr = xcp_cfg->xcp_mgr; in supported_xcp_configs_show() local 540 if (!xcp_mgr || !xcp_mgr->supp_xcp_modes) in supported_xcp_configs_show() [all …]
|
| H A D | amdgpu_xcp.h | 78 struct amdgpu_xcp_mgr *xcp_mgr; member 136 int (*get_xcp_mem_id)(struct amdgpu_xcp_mgr *xcp_mgr, 182 ((adev)->xcp_mgr && (adev)->xcp_mgr->funcs && \ 183 (adev)->xcp_mgr->funcs->select_scheds ? \ 186 ((adev)->xcp_mgr && (adev)->xcp_mgr->funcs && \ 192 if (!xcp_mgr) in amdgpu_xcp_get_num_xcp() 195 return xcp_mgr->num_xcps; in amdgpu_xcp_get_num_xcp() 201 if (!xcp_mgr) in amdgpu_get_next_xcp() 205 if (xcp_mgr->xcp[*from].valid) in amdgpu_get_next_xcp() 206 return &xcp_mgr->xcp[*from]; in amdgpu_get_next_xcp() [all …]
|
| H A D | aqua_vanjaram.c | 140 memset(adev->xcp_mgr->xcp[i].gpu_sched, 0, sizeof(adev->xcp_mgr->xcp->gpu_sched)); in aqua_vanjaram_xcp_sched_list_update() 315 struct amdgpu_device *adev = xcp_mgr->adev; in __aqua_vanjaram_calc_xcp_mode() 347 struct amdgpu_device *adev = xcp_mgr->adev; in aqua_vanjaram_query_partition_mode() 408 switch (xcp_mgr->mode) { in __aqua_vanjaram_get_xcp_ip_info() 595 amdgpu_amdkfd_device_init(xcp_mgr->adev); in __aqua_vanjaram_post_partition_switch() 597 if (!xcp_mgr->adev->kfd.init_complete) in __aqua_vanjaram_post_partition_switch() 609 xcp_mgr->supp_xcp_modes = 0; in __aqua_vanjaram_update_supported_modes() 647 xcp_mgr->avail_xcp_modes = 0; in __aqua_vanjaram_update_available_partition_mode() 651 xcp_mgr->avail_xcp_modes |= BIT(mode); in __aqua_vanjaram_update_available_partition_mode() 662 adev = xcp_mgr->adev; in aqua_vanjaram_switch_partition_mode() [all …]
|
| H A D | amdgpu_gfx.c | 1419 struct amdgpu_xcp_mgr *xcp_mgr = adev->xcp_mgr; in amdgpu_gfx_get_available_compute_partition() local 1423 if (!xcp_mgr || !xcp_mgr->avail_xcp_modes) in amdgpu_gfx_get_available_compute_partition() 1563 if (adev->xcp_mgr) { in amdgpu_gfx_set_run_cleaner_shader() 1648 for (i = 0; i < (adev->xcp_mgr ? adev->xcp_mgr->num_xcps : 1); i++) { in amdgpu_gfx_set_enforce_isolation() 1664 if (adev->xcp_mgr && num_partitions != adev->xcp_mgr->num_xcps) in amdgpu_gfx_set_enforce_isolation() 1732 struct amdgpu_xcp_mgr *xcp_mgr = adev->xcp_mgr; in amdgpu_gfx_sysfs_xcp_init() local 1736 if (!xcp_mgr) in amdgpu_gfx_sysfs_xcp_init() 1740 (xcp_mgr->funcs && xcp_mgr->funcs->switch_partition_mode); in amdgpu_gfx_sysfs_xcp_init() 1759 struct amdgpu_xcp_mgr *xcp_mgr = adev->xcp_mgr; in amdgpu_gfx_sysfs_xcp_fini() local 1762 if (!xcp_mgr) in amdgpu_gfx_sysfs_xcp_fini() [all …]
|
| H A D | amdgpu_amdkfd.h | 356 ((adev)->xcp_mgr && (xcp_id) >= 0 ?\ 357 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
|
| H A D | amdgpu_ids.c | 590 for (i = 0; i < (adev->xcp_mgr ? adev->xcp_mgr->num_xcps : 1); i++) { in amdgpu_vmid_mgr_init()
|
| H A D | amdgpu_kms.c | 621 if (adev->xcp_mgr && adev->xcp_mgr->num_xcps > 0 && in amdgpu_info_ioctl() 622 fpriv->xcp_id < adev->xcp_mgr->num_xcps) { in amdgpu_info_ioctl() 623 xcp = &adev->xcp_mgr->xcp[fpriv->xcp_id]; in amdgpu_info_ioctl()
|
| H A D | amdgpu_amdkfd.c | 777 do_div(tmp, adev->xcp_mgr->num_xcp_per_mem_partition); in amdgpu_amdkfd_xcp_memory_size()
|
| H A D | amdgpu_mes.c | 1707 for (i = 0; i < (adev->xcp_mgr ? adev->xcp_mgr->num_xcps : 1); i++) { in amdgpu_mes_update_enforce_isolation()
|
| H A D | amdgpu_ctx.c | 229 if (!(adev)->xcp_mgr) { in amdgpu_ctx_init_entity()
|
| H A D | gfx_v9_4_3.c | 2239 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v9_4_3_cp_resume() 2246 r = amdgpu_xcp_init(adev->xcp_mgr, num_xcp, mode); in gfx_v9_4_3_cp_resume() 2249 if (amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v9_4_3_cp_resume() 2253 adev->xcp_mgr, amdgpu_user_partt_mode); in gfx_v9_4_3_cp_resume()
|
| H A D | amdgpu.h | 870 struct amdgpu_xcp_mgr *xcp_mgr; member
|
| H A D | amdgpu_device.c | 4843 kfree(adev->xcp_mgr); in amdgpu_device_fini_sw() 4844 adev->xcp_mgr = NULL; in amdgpu_device_fini_sw() 5643 tmp_adev->xcp_mgr); in amdgpu_device_reinit_after_reset()
|
| /linux-6.15/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_mqd_manager.c | 302 if (node->adev->xcp_mgr && node->adev->xcp_mgr->num_xcps > 0) in kfd_check_hiq_mqd_doorbell_id()
|
| H A D | kfd_device.c | 736 kfd->num_nodes = amdgpu_xcp_get_num_xcp(kfd->adev->xcp_mgr); in kgd2kfd_device_init() 775 if (kfd->adev->xcp_mgr) { in kgd2kfd_device_init() 776 partition_mode = amdgpu_xcp_query_partition_mode(kfd->adev->xcp_mgr, in kgd2kfd_device_init() 864 node->xcp = amdgpu_get_next_xcp(kfd->adev->xcp_mgr, &xcp_idx); in kgd2kfd_device_init() 909 if (kfd->adev->xcp_mgr) in kgd2kfd_device_init()
|
| /linux-6.15/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
| H A D | smu_v13_0_12_ppt.c | 448 gpu_metrics->num_partition = adev->xcp_mgr->num_xcps; in smu_v13_0_12_get_gpu_metrics() 451 for_each_xcp(adev->xcp_mgr, xcp, i) { in smu_v13_0_12_get_gpu_metrics()
|
| H A D | smu_v13_0_6_ppt.c | 2635 gpu_metrics->num_partition = adev->xcp_mgr->num_xcps; in smu_v13_0_6_get_gpu_metrics() 2640 for_each_xcp(adev->xcp_mgr, xcp, i) { in smu_v13_0_6_get_gpu_metrics()
|