Searched refs:xcp_mgr (Results 1 – 10 of 10) sorted by relevance
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_xcp.c | 30 static int __amdgpu_xcp_run(struct amdgpu_xcp_mgr *xcp_mgr, in __amdgpu_xcp_run() argument 57 ret = run_func(xcp_mgr->adev, xcp_ip->inst_mask); in __amdgpu_xcp_run() 62 static int amdgpu_xcp_run_transition(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, in amdgpu_xcp_run_transition() argument 69 if (xcp_id >= MAX_XCP || !xcp_mgr->xcp[xcp_id].valid) in amdgpu_xcp_run_transition() 72 xcp = &xcp_mgr->xcp[xcp_id]; in amdgpu_xcp_run_transition() 75 ret = __amdgpu_xcp_run(xcp_mgr, xcp_ip, state); in amdgpu_xcp_run_transition() 83 int amdgpu_xcp_prepare_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id) in amdgpu_xcp_prepare_suspend() argument 85 return amdgpu_xcp_run_transition(xcp_mgr, xcp_id, in amdgpu_xcp_prepare_suspend() 89 int amdgpu_xcp_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id) in amdgpu_xcp_suspend() argument 91 return amdgpu_xcp_run_transition(xcp_mgr, xcp_id, AMDGPU_XCP_SUSPEND); in amdgpu_xcp_suspend() [all …]
|
H A D | amdgpu_xcp.h | 103 int (*switch_partition_mode)(struct amdgpu_xcp_mgr *xcp_mgr, int mode, 105 int (*query_partition_mode)(struct amdgpu_xcp_mgr *xcp_mgr); 106 int (*get_ip_details)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, 109 int (*get_xcp_mem_id)(struct amdgpu_xcp_mgr *xcp_mgr, 112 int (*prepare_suspend)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id); 113 int (*suspend)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id); 114 int (*prepare_resume)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id); 115 int (*resume)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id); 122 int amdgpu_xcp_prepare_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id); 123 int amdgpu_xcp_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id); [all …]
|
H A D | aqua_vanjaram.c | 66 return (adev->xcp_mgr->num_xcps > adev->vcn.num_vcn_inst); in aqua_vanjaram_xcp_vcn_shared() 77 if (adev->xcp_mgr->mode == AMDGPU_XCP_MODE_NONE) in aqua_vanjaram_set_xcp_id() 102 for (xcp_id = 0; xcp_id < adev->xcp_mgr->num_xcps; xcp_id++) { in aqua_vanjaram_set_xcp_id() 103 if (adev->xcp_mgr->xcp[xcp_id].ip[ip_blk].inst_mask & inst_mask) { in aqua_vanjaram_set_xcp_id() 117 num_gpu_sched = &adev->xcp_mgr->xcp[sel_xcp_id] in aqua_vanjaram_xcp_gpu_sched_update() 119 adev->xcp_mgr->xcp[sel_xcp_id].gpu_sched[ring->funcs->type][ring->hw_prio] in aqua_vanjaram_xcp_gpu_sched_update() 133 atomic_set(&adev->xcp_mgr->xcp[i].ref_cnt, 0); in aqua_vanjaram_xcp_sched_list_update() 134 memset(adev->xcp_mgr->xcp[i].gpu_sched, 0, sizeof(adev->xcp_mgr->xcp->gpu_sched)); in aqua_vanjaram_xcp_sched_list_update() 137 if (adev->xcp_mgr->mode == AMDGPU_XCP_MODE_NONE) in aqua_vanjaram_xcp_sched_list_update() 191 for (i = 0; i < adev->xcp_mgr->num_xcps; i++) { in aqua_vanjaram_select_scheds() [all …]
|
H A D | amdgpu_amdkfd.h | 341 ((adev)->xcp_mgr && (xcp_id) >= 0 ?\ 342 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
|
H A D | amdgpu_gfx.c | 1223 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in amdgpu_gfx_get_current_compute_partition() 1266 ret = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, mode); in amdgpu_gfx_set_compute_partition()
|
H A D | amdgpu_amdkfd.c | 791 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 | amdgpu.h | 777 struct amdgpu_xcp_mgr *xcp_mgr; member
|
H A D | gfx_v9_4_3.c | 1951 if (amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in gfx_v9_4_3_cp_resume() 1954 r = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, in gfx_v9_4_3_cp_resume()
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 638 kfd->num_nodes = amdgpu_xcp_get_num_xcp(kfd->adev->xcp_mgr); in kgd2kfd_device_init() 677 if (kfd->adev->xcp_mgr) { in kgd2kfd_device_init() 678 partition_mode = amdgpu_xcp_query_partition_mode(kfd->adev->xcp_mgr, in kgd2kfd_device_init() 765 node->xcp = amdgpu_get_next_xcp(kfd->adev->xcp_mgr, &xcp_idx); in kgd2kfd_device_init()
|