[PATCH] amdgpu/amdgpu_discovery: increase timeout limit for IFWI init

Alex Deucher alexdeucher at gmail.com
Mon Aug 4 14:58:22 UTC 2025


On Thu, Jul 31, 2025 at 6:49 PM Xaver Hugl <xaver.hugl at kde.org> wrote:
>
> With a timeout of only 1 second, my rx 5700XT fails to initialize,
> so this increases the timeout to 2s.
>
> Closes https://gitlab.freedesktop.org/drm/amd/-/issues/3697
>
> Signed-off-by: Xaver Hugl <xaver.hugl at kde.org>
> Cc: stable at vger.kernel.org

Applied.  Thanks!

Alex

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> index 6d34eac0539d..ae6908b57d78 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c
> @@ -275,7 +275,7 @@ static int amdgpu_discovery_read_binary_from_mem(struct amdgpu_device *adev,
>         int i, ret = 0;
>
>         if (!amdgpu_sriov_vf(adev)) {
> -               /* It can take up to a second for IFWI init to complete on some dGPUs,
> +               /* It can take up to two seconds for IFWI init to complete on some dGPUs,
>                  * but generally it should be in the 60-100ms range.  Normally this starts
>                  * as soon as the device gets power so by the time the OS loads this has long
>                  * completed.  However, when a card is hotplugged via e.g., USB4, we need to
> @@ -283,7 +283,7 @@ static int amdgpu_discovery_read_binary_from_mem(struct amdgpu_device *adev,
>                  * continue.
>                  */
>
> -               for (i = 0; i < 1000; i++) {
> +               for (i = 0; i < 2000; i++) {
>                         msg = RREG32(mmMP0_SMN_C2PMSG_33);
>                         if (msg & 0x80000000)
>                                 break;
> --
> 2.50.1
>


More information about the amd-gfx mailing list