Skip to content

Commit cc47305

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Allow NPS2-CPX combination for VFs
CPX partition mode is compatible with NPS2 on aquavanjaram VFs. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 67cc7f9 commit cc47305

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,8 @@ static int __aqua_vanjaram_get_px_mode_info(struct amdgpu_xcp_mgr *xcp_mgr,
481481
*num_xcp = NUM_XCC(adev->gfx.xcc_mask);
482482
*nps_modes = BIT(AMDGPU_NPS1_PARTITION_MODE) |
483483
BIT(AMDGPU_NPS4_PARTITION_MODE);
484+
if (amdgpu_sriov_vf(adev))
485+
*nps_modes |= BIT(AMDGPU_NPS2_PARTITION_MODE);
484486
break;
485487
default:
486488
return -EINVAL;

0 commit comments

Comments
 (0)