Query the host–GPU interface in gmc early init
phase and set xgmi.connected_to_cpu accordingly
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
if (adev->smuio.funcs &&
adev->smuio.funcs->is_host_gpu_xgmi_supported)
- adev->smuio.funcs->is_host_gpu_xgmi_supported(adev);
+ adev->gmc.xgmi.connected_to_cpu =
+ adev->smuio.funcs->is_host_gpu_xgmi_supported(adev);
switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
case IP_VERSION(12, 1, 0):