Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gfx.c1637 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 Damdgpu_amdkfd.h376 ((adev)->xcp_mgr && (xcp_id) >= 0 ?\
377 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
H A Damdgpu_amdkfd.c851 if (adev->xcp_mgr->mem_alloc_mode == AMDGPU_PARTITION_MEM_CAPPING_EVEN) in amdgpu_amdkfd_xcp_memory_size()
852 do_div(tmp, adev->xcp_mgr->num_xcp_per_mem_partition); in amdgpu_amdkfd_xcp_memory_size()
H A Damdgpu_ctx.c228 if (!(adev)->xcp_mgr) { in amdgpu_ctx_init_entity()
H A Dgfx_v9_4_3.c2223 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 Dgfx_v12_1.c2869 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 Dmes_v12_1.c1859 switch (adev->xcp_mgr->mode) { in mes_v12_1_setup_coop_mode()
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_device.c763 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()