Home
last modified time | relevance | path

Searched refs:xcp_mgr (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gfx.c1526 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in amdgpu_gfx_get_current_compute_partition()
1573 ret = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, mode); in amdgpu_gfx_set_compute_partition()
1589 int mode = adev->xcp_mgr->mem_alloc_mode; in compute_partition_mem_alloc_mode_show()
1604 adev->xcp_mgr->mem_alloc_mode = AMDGPU_PARTITION_MEM_CAPPING_EVEN; in compute_partition_mem_alloc_mode_store()
1606 adev->xcp_mgr->mem_alloc_mode = AMDGPU_PARTITION_MEM_ALLOC_ALL; in compute_partition_mem_alloc_mode_store()
1627 struct amdgpu_xcp_mgr *xcp_mgr = adev->xcp_mgr; in amdgpu_gfx_get_available_compute_partition() local
1631 if (!xcp_mgr || !xcp_mgr->avail_xcp_modes) in amdgpu_gfx_get_available_compute_partition()
1634 for_each_inst(mode, xcp_mgr->avail_xcp_modes) { in amdgpu_gfx_get_available_compute_partition()
1777 if (adev->xcp_mgr) { in amdgpu_gfx_set_run_cleaner_shader()
1778 if (value >= adev->xcp_mgr->num_xcps) in amdgpu_gfx_set_run_cleaner_shader()
[all …]
H A Damdgpu_amdkfd.c809 if (adev->xcp_mgr->mem_alloc_mode == AMDGPU_PARTITION_MEM_CAPPING_EVEN) in amdgpu_amdkfd_xcp_memory_size()
810 do_div(tmp, adev->xcp_mgr->num_xcp_per_mem_partition); in amdgpu_amdkfd_xcp_memory_size()
H A Damdgpu_kms.c711 if (adev->xcp_mgr && adev->xcp_mgr->num_xcps > 0 && in amdgpu_info_ioctl()
712 fpriv->xcp_id < adev->xcp_mgr->num_xcps) { in amdgpu_info_ioctl()
713 xcp = &adev->xcp_mgr->xcp[fpriv->xcp_id]; in amdgpu_info_ioctl()
H A Dgfx_v12_1.c2537 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v12_1_cp_resume()
2549 r = amdgpu_xcp_init(adev->xcp_mgr, num_xcp, mode); in gfx_v12_1_cp_resume()
2552 if (amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v12_1_cp_resume()
2555 r = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, in gfx_v12_1_cp_resume()
H A Damdgpu_device.c2281 if (adev->xcp_mgr) in amdgpu_device_init_schedulers()
4272 kfree(adev->xcp_mgr); in amdgpu_device_fini_sw()
4273 adev->xcp_mgr = NULL; in amdgpu_device_fini_sw()
5224 tmp_adev->xcp_mgr); in amdgpu_device_reinit_after_reset()
H A Dmes_v12_1.c1782 switch (adev->xcp_mgr->mode) { in mes_v12_1_setup_coop_mode()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_mqd_manager.c307 if (node->adev->xcp_mgr && node->adev->xcp_mgr->num_xcps > 0) in kfd_check_hiq_mqd_doorbell_id()
H A Dkfd_device.c747 kfd->num_nodes = amdgpu_xcp_get_num_xcp(kfd->adev->xcp_mgr); in kgd2kfd_device_init()
786 if (kfd->adev->xcp_mgr && (KFD_GC_VERSION(kfd) != IP_VERSION(12, 1, 0))) { in kgd2kfd_device_init()
787 partition_mode = amdgpu_xcp_query_partition_mode(kfd->adev->xcp_mgr, in kgd2kfd_device_init()
876 node->xcp = amdgpu_get_next_xcp(kfd->adev->xcp_mgr, &xcp_idx); in kgd2kfd_device_init()
923 if (kfd->adev->xcp_mgr) in kgd2kfd_device_init()
H A Dkfd_topology.c538 (dev->gpu->xcp->xcp_mgr->mode != in node_show()
/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0_6_ppt.c2673 for_each_xcp(adev->xcp_mgr, xcp, i) { in smu_v13_0_6_get_xcp_metrics()
2677 if (i == adev->xcp_mgr->num_xcps) in smu_v13_0_6_get_xcp_metrics()