drm/amdgpu: add psp command to get num xgmi links between direct peers
authorJonathan Kim <jonathan.kim@amd.com>
Wed, 12 May 2021 16:26:20 +0000 (12:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 23 Jul 2021 14:07:59 +0000 (10:07 -0400)
commit331e78187f3a477145819912114b48219f9fa19a
treefe992f427cacc4a63b4bb0909a31d40f792566e7
parentd8c33180c01fe66c2f808c80401383182673fce1
drm/amdgpu: add psp command to get num xgmi links between direct peers

The TA can now be invoked to provide the number of xgmi links connecting
a direct source and destination peer.
Non-direct peers will report zero links.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@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_psp.h
drivers/gpu/drm/amd/amdgpu/ta_xgmi_if.h