drm/amdgpu: Add xgmi speed/width related info
authorLijo Lazar <lijo.lazar@amd.com>
Thu, 6 Feb 2025 11:54:51 +0000 (17:24 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Feb 2025 21:50:04 +0000 (16:50 -0500)
commit485993e2f1a6bf3d1e8fb5a38c82edd3ae697ad9
treee9d815afb47bc64233201a5c82a856aefad78e71
parent6f16d101dab5ec6e8fc9567769f73ae8baa3fe38
drm/amdgpu: Add xgmi speed/width related info

Add APIs to initialize XGMI speed, width details and get to max
bandwidth supported. It is assumed that a device only supports same
generation of XGMI links with uniform width.

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h