summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorShiwu Zhang <shiwu.zhang@amd.com>2023-06-07 12:14:08 +0300
committerAlex Deucher <alexander.deucher@amd.com>2023-06-15 17:43:31 +0300
commit8d8ffe3740b6de4a8a84817cd85195c533ed52b9 (patch)
tree5e457299e73b764ec7a5105f47448f67fe30df81 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent188d3f80fc6d8451ab5e570becd6a7b2d3033023 (diff)
downloadlinux-8d8ffe3740b6de4a8a84817cd85195c533ed52b9.tar.xz
drm/amdgpu: expose num_hops and num_links xgmi info through dev attr
Add these two dev attrs for xgmi info details which is helpful for developers checking the xgmi topology by catting the sys file directly. Take 4 cards with xgmi connection as an example, get the num_hops for each device or node through xmig_hive_info dir like, cat /sys/bus/pci/devices/0000:41:00.0/xgmi_hive_info/node1/num_hops will return "00 41 41 41" where "00" stands for the hops to node1 itself and "41" is the hops in hex format to every other node in the same hive. There are node1/node2/node3/node4 representing 4 cards in the hive. The same for num_links dev attr. Signed-off-by: Shiwu Zhang <shiwu.zhang@amd.com> Acked-by: Le Ma <le.ma@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions