[PATCH] drm/amdkfd: enable cooperative launch for gfx10.3

Felix Kuehling felix.kuehling at amd.com
Thu Nov 17 15:50:12 UTC 2022


Am 2022-10-12 um 15:07 schrieb Jonathan Kim:
> FW fix available to enable cooperative launch for GFX10.3.
>
> Signed-off-by: Jonathan Kim <jonathan.kim at amd.com>

Reviewed-by: Felix Kuehling <Felix.Kuehling 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 be7a0b5a2dbc..66296cccbadd 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device.c
> @@ -498,7 +498,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(11, 0, 0)
> +			&& kfd->mec2_fw_version >= 0x6b))))
>   		ret = amdgpu_amdkfd_alloc_gws(kfd->adev,
>   				kfd->adev->gds.gws_size, &kfd->gws);
>   


More information about the amd-gfx mailing list