PSP programs the NBIO partition status register. In the absence of PSP,
read the current compute partition from the GFX IMU register instead of
NBIO.
Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Michael Chen <michael.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
mode = AMDGPU_UNKNOWN_COMPUTE_PARTITION_MODE;
derv_mode = __soc_v1_0_calc_xcp_mode(xcp_mgr);
- if (amdgpu_sriov_vf(adev))
+ if (amdgpu_sriov_vf(adev) || !adev->psp.funcs)
return derv_mode;
if (adev->nbio.funcs &&