/kernel/linux/linux-6.6/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_i in amdgpu_xcp_suspend() 94 amdgpu_xcp_prepare_resume(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id) amdgpu_xcp_prepare_resume() argument 100 amdgpu_xcp_resume(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id) amdgpu_xcp_resume() argument 105 __amdgpu_xcp_add_block(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, struct amdgpu_xcp_ip *ip) __amdgpu_xcp_add_block() argument 120 amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode) amdgpu_xcp_init() argument 166 amdgpu_xcp_switch_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, int mode) amdgpu_xcp_switch_partition_mode() argument 204 amdgpu_xcp_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, u32 flags) amdgpu_xcp_query_partition_mode() argument 269 struct amdgpu_xcp_mgr *xcp_mgr; amdgpu_xcp_mgr_init() local 293 amdgpu_xcp_get_partition(struct amdgpu_xcp_mgr *xcp_mgr, enum AMDGPU_XCP_IP_BLOCK ip, int instance) amdgpu_xcp_get_partition() argument [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, in 157 amdgpu_xcp_get_num_xcp(struct amdgpu_xcp_mgr *xcp_mgr) amdgpu_xcp_get_num_xcp() argument 166 amdgpu_get_next_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int *from) amdgpu_get_next_xcp() argument [all...] |
H A D | aqua_vanjaram.c | 72 if (adev->xcp_mgr->mode == AMDGPU_XCP_MODE_NONE) in aqua_vanjaram_set_xcp_id() 89 if (adev->xcp_mgr->mode == AMDGPU_CPX_PARTITION_MODE) in aqua_vanjaram_set_xcp_id() 97 for (xcp_id = 0; xcp_id < adev->xcp_mgr->num_xcps; xcp_id++) { in aqua_vanjaram_set_xcp_id() 98 if (adev->xcp_mgr->xcp[xcp_id].ip[ip_blk].inst_mask & inst_mask) { in aqua_vanjaram_set_xcp_id() 112 num_gpu_sched = &adev->xcp_mgr->xcp[sel_xcp_id] in aqua_vanjaram_xcp_gpu_sched_update() 114 adev->xcp_mgr->xcp[sel_xcp_id].gpu_sched[ring->funcs->type][ring->hw_prio] in aqua_vanjaram_xcp_gpu_sched_update() 128 atomic_set(&adev->xcp_mgr->xcp[i].ref_cnt, 0); in aqua_vanjaram_xcp_sched_list_update() 129 memset(adev->xcp_mgr->xcp[i].gpu_sched, 0, sizeof(adev->xcp_mgr->xcp->gpu_sched)); in aqua_vanjaram_xcp_sched_list_update() 132 if (adev->xcp_mgr in aqua_vanjaram_xcp_sched_list_update() 299 aqua_vanjaram_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr) aqua_vanjaram_query_partition_mode() argument 310 __aqua_vanjaram_get_xcc_per_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int mode) __aqua_vanjaram_get_xcc_per_xcp() argument 337 __aqua_vanjaram_get_xcp_ip_info(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, enum AMDGPU_XCP_IP_BLOCK ip_id, struct amdgpu_xcp_ip *ip) __aqua_vanjaram_get_xcp_ip_info() argument 402 __aqua_vanjaram_get_auto_mode(struct amdgpu_xcp_mgr *xcp_mgr) __aqua_vanjaram_get_auto_mode() argument 425 __aqua_vanjaram_is_valid_mode(struct amdgpu_xcp_mgr *xcp_mgr, enum amdgpu_gfx_partition mode) __aqua_vanjaram_is_valid_mode() argument 457 __aqua_vanjaram_pre_partition_switch(struct amdgpu_xcp_mgr *xcp_mgr, u32 flags) __aqua_vanjaram_pre_partition_switch() argument 469 __aqua_vanjaram_post_partition_switch(struct amdgpu_xcp_mgr *xcp_mgr, u32 flags) __aqua_vanjaram_post_partition_switch() argument 484 aqua_vanjaram_switch_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, int mode, int *num_xcps) aqua_vanjaram_switch_partition_mode() argument 543 aqua_vanjaram_get_xcp_mem_id(struct amdgpu_xcp_mgr *xcp_mgr, struct amdgpu_xcp *xcp, uint8_t *mem_id) aqua_vanjaram_get_xcp_mem_id() argument 590 aqua_vanjaram_get_xcp_ip_details(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id, enum AMDGPU_XCP_IP_BLOCK ip_id, struct amdgpu_xcp_ip *ip) aqua_vanjaram_get_xcp_ip_details() argument [all...] |
H A D | amdgpu_amdkfd.h | 342 ((adev)->xcp_mgr && (xcp_id) >= 0 ?\ 343 (adev)->xcp_mgr->xcp[(xcp_id)].mem_id : -1)
|
H A D | amdgpu_gfx.c | 1212 mode = amdgpu_xcp_query_partition_mode(adev->xcp_mgr, in amdgpu_gfx_get_current_compute_partition() 1255 ret = amdgpu_xcp_switch_partition_mode(adev->xcp_mgr, mode); in amdgpu_gfx_set_compute_partition()
|
H A D | amdgpu_amdkfd.c | 813 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_device.c | 645 kfd->num_nodes = amdgpu_xcp_get_num_xcp(kfd->adev->xcp_mgr); in kgd2kfd_device_init() 684 if (kfd->adev->xcp_mgr) { in kgd2kfd_device_init() 685 partition_mode = amdgpu_xcp_query_partition_mode(kfd->adev->xcp_mgr, in kgd2kfd_device_init() 772 node->xcp = amdgpu_get_next_xcp(kfd->adev->xcp_mgr, &xcp_idx); in kgd2kfd_device_init()
|