Skip to content

Commit

Permalink
drm/amdgpu: add num_xcps return
Browse files Browse the repository at this point in the history
Add num_xcps return.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
James Zhu authored and Alex Deucher committed Jun 9, 2023
1 parent 1bd99ca commit 13a94f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13a94f3

Please sign in to comment.