]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Refactor sriov xgmi topology filling to common code
authorWill Aitken <wiaitken@amd.com>
Tue, 30 Sep 2025 16:24:07 +0000 (16:24 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Nov 2025 16:27:29 +0000 (11:27 -0500)
commitf1a2cd427d0401c1888c04613fb18d272825a5c2
tree4d43759952182712f43408fa81b27ff25b2cc3d7
parentb84bc92607144f04c5d140177fe45faec0ec9b9b
drm/amdgpu: Refactor sriov xgmi topology filling to common code

amdgpu_xgmi_fill_topology_info and psp_xgmi_reflect_topology_info
perform the same logic of copying topology info of one node to every
other node in the hive. Instead of having two functions that purport to
do the same thing, this refactoring moves the logic of the fill function
to the reflect function and adds reflecting port number info as well for
complete functionality.

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
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c