Skip to contentSkip to conversation

drm/amdgpu: disable xgmi feature support in sriov mode

PATCH New Yang Wang 1 participant 1 message Feb 10, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amdgpu: disable xgmi feature support in sriov mode

the xgmi feature is not supported in sriov mode.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +3 -1
index 07623634fdc2..b19e36487789 100644
@@ -1271,7 +1271,9 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)
 		break;
 	}
 
-	if (adev->ip_versions[XGMI_HWIP][0] == IP_VERSION(4, 8, 0))
+	if (amdgpu_sriov_vf(adev))
+		adev->gmc.xgmi.supported = false;
+	else if (adev->ip_versions[XGMI_HWIP][0] == IP_VERSION(4, 8, 0))
 		adev->gmc.xgmi.supported = true;
 
 	/* set NBIO version */
Signature · 1 line
2.25.1