[PATCH] drm/amdkfd: add Navi2x to GWS init conditions

Kim, Jonathan Jonathan.Kim at amd.com
Thu Dec 9 19:03:02 UTC 2021


[AMD Official Use Only]

> -----Original Message-----
> From: Sider, Graham <Graham.Sider at amd.com>
> Sent: December 9, 2021 1:33 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Kim, Jonathan <Jonathan.Kim at amd.com>; Kuehling, Felix
> <Felix.Kuehling at amd.com>; Sider, Graham <Graham.Sider at amd.com>
> Subject: [PATCH] drm/amdkfd: add Navi2x to GWS init conditions
>
> Initalize GWS on Navi2x with mec2_fw_version >= 0x42.
>
> Signed-off-by: Graham Sider <Graham.Sider at amd.com>

Reviewed-and-tested-by: Jonathan Kim <jonathan.kim at amd.com>

> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_device.c | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> index facc28f58c1f..67dd94b0b9a7 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> @@ -368,7 +368,10 @@ static int kfd_gws_init(struct kfd_dev *kfd)
>               (KFD_GC_VERSION(kfd) == IP_VERSION(9, 4, 1)
>                       && kfd->mec2_fw_version >= 0x30)   ||
>               (KFD_GC_VERSION(kfd) == IP_VERSION(9, 4, 2)
> -                     && kfd->mec2_fw_version >= 0x28))))
> +                     && kfd->mec2_fw_version >= 0x28)   ||
> +             (KFD_GC_VERSION(kfd) >= IP_VERSION(10, 3, 0)
> +                     && KFD_GC_VERSION(kfd) <= IP_VERSION(10, 3, 5)
> +                     && kfd->mec2_fw_version >= 0x42))))
>               ret = amdgpu_amdkfd_alloc_gws(kfd->adev,
>                               kfd->adev->gds.gws_size, &kfd->gws);
>
> --
> 2.25.1



More information about the amd-gfx mailing list