drm/amdgpu: preserve the num_links in case of reflection
authorShiwu Zhang <shiwu.zhang@amd.com>
Mon, 13 Feb 2023 07:45:42 +0000 (15:45 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:55:54 +0000 (09:55 -0400)
commit5ae0ec8b8045d72467d4e7417b34a5ab2fa72138
tree0d647623f2cb51640f3e5719a1faceb842ffca0d
parentf2b8447b1f309901c3fdd4045febfe5cab545d87
drm/amdgpu: preserve the num_links in case of reflection

For topology reflection, each socket to every other socket has the
exactly same topology info as the other way around. So it is safe
to keep the reflected num_links value otherwise it will be overriden
by the link info output of GET_PEER_LINKS command.

Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com>
Reviewed-by: Le Ma <le.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c