Searched refs:xcp_mgr (Results 1 – 8 of 8) 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 | 851 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 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 | 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 | 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()
|