Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_xcp.c30 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 Damdgpu_xcp.h103 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 Daqua_vanjaram.c66 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 Damdgpu_amdkfd.h341 ((adev)->xcp_mgr && (xcp_id) >= 0 ?\
342 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
H A Damdgpu_gfx.c1223 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 Damdgpu_amdkfd.c791 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 Damdgpu.h777 struct amdgpu_xcp_mgr *xcp_mgr; member
H A Dgfx_v9_4_3.c1951 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 Dkfd_device.c638 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()