drm/amdgpu: xgmi_fill_topology_info
authorVignesh Chander <Vignesh.Chander@amd.com>
Fri, 8 Dec 2023 18:00:26 +0000 (12:00 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Dec 2023 20:09:55 +0000 (15:09 -0500)
commit4e95669ecb03d797355bc23871c5c43b9475d3dc
treece4552e7bae09dbd5388c0d442a7e006db4e8921
parenta9210714d23190b44eed32f8bcadbe3b18d51a1d
drm/amdgpu: xgmi_fill_topology_info

1. Use the mirrored topology info to fill links for VF.
The new solution is required to simplify and optimize host driver logic.
Only use the new solution for VFs that support full duplex and
extended_peer_link_info otherwise the info would be incomplete.

2. avoid calling extended_link_info on VF as its not supported

Signed-off-by: Vignesh Chander <Vignesh.Chander@amd.com>
Reviewed-by: Zhigang Luo <zhigang.luo@amd.com>
Reviewed-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c