drm/amdgpu: skip set_topology_info for VF
authorVignesh Chander <Vignesh.Chander@amd.com>
Tue, 16 Aug 2022 22:19:35 +0000 (18:19 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 25 Aug 2022 17:19:23 +0000 (13:19 -0400)
Skip set_topology_info as xgmi TA will now block it
and host needs to program it.

Signed-off-by: Vignesh Chander <Vignesh.Chander@amd.com>
Reviewed-By : Shaoyun Liu <Shaoyun.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c

index f2aebbf..d3b483a 100644 (file)
@@ -504,6 +504,9 @@ int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_dev
 {
        int ret;
 
+       if (amdgpu_sriov_vf(adev))
+               return 0;
+
        /* Each psp need to set the latest topology */
        ret = psp_xgmi_set_topology_info(&adev->psp,
                                         atomic_read(&hive->number_devices),