Pass the compute partition mode to ASP.
v2: Squash fixes (Alex)
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
int ret;
if (adev->psp.funcs) {
- /*TODO: revisit asp interface once it's avaialble */
- ret = psp_spatial_partition(&adev->psp,
- NUM_XCC(adev->gfx.xcc_mask) /
- num_xccs_per_xcp);
+ ret = psp_spatial_partition(&adev->psp, compute_partition_mode);
if (ret)
return ret;
}
adev->gfx.num_xcc_per_xcp = num_xccs_per_xcp;
-
return 0;
}