[PATCH] drm/amdgpu: update xgmi num links info post gc9.4.2
Joshi, Mukul
Mukul.Joshi at amd.com
Fri Nov 17 18:01:31 UTC 2023
[AMD Official Use Only - General]
Reviewed-by: Mukul Joshi <mukul.joshi at amd.com>
> -----Original Message-----
> From: Kim, Jonathan <Jonathan.Kim at amd.com>
> Sent: Friday, November 17, 2023 12:03 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Joshi, Mukul <Mukul.Joshi at amd.com>; Kim, Jonathan
> <Jonathan.Kim at amd.com>; Chander, Vignesh
> <Vignesh.Chander at amd.com>; Kim, Jonathan <Jonathan.Kim at amd.com>
> Subject: [PATCH] drm/amdgpu: update xgmi num links info post gc9.4.2
>
> GC IP 9.4.2 and up support TA reporting of the number of xGMI links between
> peers.
>
> Tested-by: Vignesh Chander <vignesh.chander at amd.com>
> Signed-off-by: Jonathan Kim <jonathan.kim at amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> index 6ab17330a6ed..2d22f7d45512 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
> @@ -547,7 +547,7 @@ int
> amdgpu_amdkfd_get_xgmi_bandwidth_mbytes(struct amdgpu_device *dst,
> struct amdgpu_device *adev = dst, *peer_adev;
> int num_links;
>
> - if (adev->asic_type != CHIP_ALDEBARAN)
> + if (amdgpu_ip_version(adev, GC_HWIP, 0) < IP_VERSION(9, 4, 2))
> return 0;
>
> if (src)
> --
> 2.34.1
More information about the amd-gfx
mailing list