Searched refs:xcp_mgr (Results 1 – 13 of 13) sorted by relevance
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_gfx.c | 1637 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in amdgpu_gfx_get_current_compute_partition() 1684 ret = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, mode); in amdgpu_gfx_set_compute_partition() 1700 int mode = adev->xcp_mgr->mem_alloc_mode; in compute_partition_mem_alloc_mode_show() 1715 adev->xcp_mgr->mem_alloc_mode = AMDGPU_PARTITION_MEM_CAPPING_EVEN; in compute_partition_mem_alloc_mode_store() 1717 adev->xcp_mgr->mem_alloc_mode = AMDGPU_PARTITION_MEM_ALLOC_ALL; in compute_partition_mem_alloc_mode_store() 1738 struct amdgpu_xcp_mgr *xcp_mgr = adev->xcp_mgr; in amdgpu_gfx_get_available_compute_partition() local 1742 if (!xcp_mgr || !xcp_mgr->avail_xcp_modes) in amdgpu_gfx_get_available_compute_partition() 1745 for_each_inst(mode, xcp_mgr->avail_xcp_modes) { in amdgpu_gfx_get_available_compute_partition() 1889 if (adev->xcp_mgr) { in amdgpu_gfx_set_run_cleaner_shader() 1890 if (value >= adev->xcp_mgr->num_xcps) in amdgpu_gfx_set_run_cleaner_shader() [all …]
|
| H A D | amdgpu_amdkfd.h | 376 ((adev)->xcp_mgr && (xcp_id) >= 0 ?\ 377 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
|
| H A D | amdgpu_amdkfd.c | 855 if (adev->xcp_mgr->mem_alloc_mode == AMDGPU_PARTITION_MEM_CAPPING_EVEN) in amdgpu_amdkfd_xcp_memory_size() 856 do_div(tmp, adev->xcp_mgr->num_xcp_per_mem_partition); in amdgpu_amdkfd_xcp_memory_size()
|
| H A D | amdgpu_kms.c | 713 if (adev->xcp_mgr && adev->xcp_mgr->num_xcps > 0 && in amdgpu_info_ioctl() 714 fpriv->xcp_id < adev->xcp_mgr->num_xcps) { in amdgpu_info_ioctl() 715 xcp = &adev->xcp_mgr->xcp[fpriv->xcp_id]; in amdgpu_info_ioctl()
|
| H A D | amdgpu_mes.c | 917 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 | 228 if (!(adev)->xcp_mgr) { in amdgpu_ctx_init_entity()
|
| H A D | gfx_v9_4_3.c | 2223 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v9_4_3_cp_resume() 2230 r = amdgpu_xcp_init(adev->xcp_mgr, num_xcp, mode); in gfx_v9_4_3_cp_resume() 2234 amdgpu_xcp_restore_partition_mode(adev->xcp_mgr); in gfx_v9_4_3_cp_resume() 2235 else if (amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v9_4_3_cp_resume() 2239 adev->xcp_mgr, amdgpu_user_partt_mode); in gfx_v9_4_3_cp_resume()
|
| H A D | amdgpu_device.c | 2351 if (adev->xcp_mgr) in amdgpu_device_init_schedulers() 4366 kfree(adev->xcp_mgr); in amdgpu_device_fini_sw() 4367 adev->xcp_mgr = NULL; in amdgpu_device_fini_sw() 5173 tmp_adev->xcp_mgr); in amdgpu_device_reinit_after_reset()
|
| H A D | gfx_v12_1.c | 2869 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v12_1_cp_resume() 2881 r = amdgpu_xcp_init(adev->xcp_mgr, num_xcp, mode); in gfx_v12_1_cp_resume() 2884 if (amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v12_1_cp_resume() 2887 r = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, in gfx_v12_1_cp_resume()
|
| H A D | amdgpu.h | 633 struct amdgpu_xcp_mgr *xcp_mgr; member
|
| H A D | mes_v12_1.c | 1859 switch (adev->xcp_mgr->mode) { in mes_v12_1_setup_coop_mode()
|
| /linux/drivers/gpu/drm/amd/amdkfd/ |
| H A D | kfd_device.c | 763 kfd->num_nodes = amdgpu_xcp_get_num_xcp(kfd->adev->xcp_mgr); in kgd2kfd_device_init() 802 if (kfd->adev->xcp_mgr && (KFD_GC_VERSION(kfd) != IP_VERSION(12, 1, 0))) { in kgd2kfd_device_init() 803 partition_mode = amdgpu_xcp_query_partition_mode(kfd->adev->xcp_mgr, in kgd2kfd_device_init() 892 node->xcp = amdgpu_get_next_xcp(kfd->adev->xcp_mgr, &xcp_idx); in kgd2kfd_device_init() 939 if (kfd->adev->xcp_mgr) in kgd2kfd_device_init()
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/smu15/ |
| H A D | smu_v15_0_8_ppt.c | 1625 for_each_xcp(adev->xcp_mgr, xcp, i) { in smu_v15_0_8_get_xcp_metrics() 1629 if (i == adev->xcp_mgr->num_xcps) in smu_v15_0_8_get_xcp_metrics()
|