drm/amdgpu: Enable xgmi extended peer links for sriov guest
authorWill Aitken <wiaitken@amd.com>
Tue, 7 Oct 2025 14:49:15 +0000 (14:49 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Nov 2025 16:27:42 +0000 (11:27 -0500)
commitf8bdb559c01e8291f1862ee9ab4a7eb13d6d62ac
treea9250b2c9d9e88a64cba71fb58644e650d67c15d
parent4d0e55965c9c2f085a83f6a69acd7b5a44132de5
drm/amdgpu: Enable xgmi extended peer links for sriov guest

The amd-smi tool relies on extended peer link information to report xgmi
link metrics. The necessary xgmi ta command, GET_EXTEND_PEER_LINKS, has
been enabled in the host driver and this change is necessary for the
guest to make use of it. To handle the case where the host driver does
not have the latest xgmi ta, the guest driver checks for guest support
through a pf2vf feature flag before invoking psp.

Signed-off-by: Will Aitken <wiaitken@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c