drm/amdgpu: disable xgmi feature support in sriov mode
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable xgmi feature support in sriov mode
the xgmi feature is not supported in sriov mode.
Signed-off-by Yang Wang <[email protected]>
--- 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
@@ -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