]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu/gmc12: Query host-gpu interface
authorHawking Zhang <Hawking.Zhang@amd.com>
Sat, 17 Jan 2026 11:18:06 +0000 (19:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:32:44 +0000 (10:32 -0400)
Query host-gpu interconnect type for gmc v12 devices

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v12_0.c

index ac0536be0f90c8ef5d7e6641387e63cfa0042a97..0e47268100ff99ef3cb82e4a7b921a3434494139 100644 (file)
@@ -636,6 +636,10 @@ static int gmc_v12_0_early_init(struct amdgpu_ip_block *ip_block)
 {
        struct amdgpu_device *adev = ip_block->adev;
 
+       if (adev->smuio.funcs &&
+           adev->smuio.funcs->is_host_gpu_xgmi_supported)
+               adev->smuio.funcs->is_host_gpu_xgmi_supported(adev);
+
        switch (amdgpu_ip_version(adev, GC_HWIP, 0)) {
        case IP_VERSION(12, 1, 0):
                gmc_v12_1_set_gmc_funcs(adev);