[PATCH] Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices"

Xu, Feifei Feifei.Xu at amd.com
Mon May 27 03:10:59 UTC 2024


[AMD Official Use Only - AMD Internal Distribution Only]

Reviewed-by: Feifei Xu <Feifei.Xu at amd.com>

-----Original Message-----
From: Alex Deucher <alexdeucher at gmail.com>
Sent: Friday, May 24, 2024 2:44 AM
To: Deucher, Alexander <Alexander.Deucher at amd.com>
Cc: amd-gfx at lists.freedesktop.org; Xu, Feifei <Feifei.Xu at amd.com>
Subject: Re: [PATCH] Revert "drm/amdkfd: fix gfx_target_version for certain 11.0.3 devices"

Ping?

On Mon, May 20, 2024 at 2:52 PM Alex Deucher <alexander.deucher at amd.com> wrote:
>
> This reverts commit 28ebbb4981cb1fad12e0b1227dbecc88810b1ee8.
>
> Revert this commit as apparently the LLVM code to take advantage of
> this never landed.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Cc: Feifei Xu <feifei.xu at amd.com>
> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_device.c | 11 ++---------
>  1 file changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> index 6b15e55811b69..fba9b9a258a50 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> @@ -426,15 +426,8 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf)
>                         f2g = &gfx_v11_kfd2kgd;
>                         break;
>                 case IP_VERSION(11, 0, 3):
> -                       if ((adev->pdev->device == 0x7460 &&
> -                            adev->pdev->revision == 0x00) ||
> -                           (adev->pdev->device == 0x7461 &&
> -                            adev->pdev->revision == 0x00))
> -                               /* Note: Compiler version is 11.0.5 while HW version is 11.0.3 */
> -                               gfx_target_version = 110005;
> -                       else
> -                               /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */
> -                               gfx_target_version = 110001;
> +                       /* Note: Compiler version is 11.0.1 while HW version is 11.0.3 */
> +                       gfx_target_version = 110001;
>                         f2g = &gfx_v11_kfd2kgd;
>                         break;
>                 case IP_VERSION(11, 5, 0):
> --
> 2.45.1
>


More information about the amd-gfx mailing list