(num_xcc % adev->gmc.num_mem_partitions) == 0 is not a requirement for CPX. It breaks NPS4/CPX support on APU. Signed-off-by: Amber Lin <Amber.Lin@xxxxxxx> --- drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c b/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c index 890976b7ce77..c60831a072fc 100644 --- a/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c +++ b/drivers/gpu/drm/amd/amdgpu/aqua_vanjaram.c @@ -549,8 +549,7 @@ static bool __aqua_vanjaram_is_valid_mode(struct amdgpu_xcp_mgr *xcp_mgr, (num_xccs_per_xcp >= 2); case AMDGPU_CPX_PARTITION_MODE: return ((num_xcc > 1) && - (adev->gmc.num_mem_partitions == 1 || adev->gmc.num_mem_partitions == 4) && - (num_xcc % adev->gmc.num_mem_partitions) == 0); + (adev->gmc.num_mem_partitions == 1 || adev->gmc.num_mem_partitions == 4)); default: return false; } -- 2.34.1