Commit 13a94f3f authored by James Zhu's avatar James Zhu Committed by Alex Deucher

drm/amdgpu: add num_xcps return

Add num_xcps return.
Signed-off-by: default avatarJames Zhu <James.Zhu@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1bd99ca2
......@@ -318,6 +318,8 @@ static int aqua_vanjaram_switch_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr,
adev->nbio.funcs->set_compute_partition_mode(adev, mode);
ret = __aqua_vanjaram_post_partition_switch(xcp_mgr, flags);
*num_xcps = num_xcc / num_xcc_per_xcp;
unlock:
if (flags & AMDGPU_XCP_OPS_KFD)
amdgpu_amdkfd_unlock_kfd(adev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment