[PATCH 2/2] drm/amdgpu: add noretry=1 for gc 10.3.6

Christian König ckoenig.leichtzumerken at gmail.com
Tue Mar 1 13:15:42 UTC 2022


Am 01.03.22 um 14:05 schrieb Yifan Zhang:
> From: Aaron Liu <aaron.liu at amd.com>
>
> By default, set noretry=1 for kfd exception test.
>
> Signed-off-by: Aaron Liu <aaron.liu at amd.com>
> Signed-off-by: Yifan Zhang <yifan1.zhang at amd.com>
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index ab75e189bc0b..4bbd8501c6c1 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> @@ -595,6 +595,13 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
>   			gmc->noretry = amdgpu_noretry;
>   		break;
>   	}
> +
> +	if (adev->ip_versions[GC_HWIP][0] == IP_VERSION(10, 3, 6)) {
> +		if (amdgpu_noretry == -1)
> +			gmc->noretry = 1;
> +		else
> +			gmc->noretry = amdgpu_noretry;
> +	}

You should probably move the whole switch case to version checks instead.

Christian.

>   }
>   
>   void amdgpu_gmc_set_vm_fault_masks(struct amdgpu_device *adev, int hub_type,



More information about the amd-gfx mailing list