From: Hawking Zhang Date: Tue, 27 Jan 2026 08:07:19 +0000 (+0800) Subject: drm/amdgpu/gmc12: Update connected_to_cpu flag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d82ed35de622b90951434593a41abef7d98ae7;p=thirdparty%2Flinux.git drm/amdgpu/gmc12: Update connected_to_cpu flag Query the host–GPU interface in gmc early init phase and set xgmi.connected_to_cpu accordingly Signed-off-by: Hawking Zhang Reviewed-by: Likun Gao Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c index 75bff46ca5946..2b5f01f15fac3 100644 --- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c @@ -638,7 +638,8 @@ static int gmc_v12_0_early_init(struct amdgpu_ip_block *ip_block) 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):