drm/amdgpu: update vf to pf message retry from 2 to 5
authorZhigang Luo <Zhigang.Luo@amd.com>
Thu, 11 Apr 2024 16:21:31 +0000 (12:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 May 2024 19:40:38 +0000 (15:40 -0400)
increase retry times to wait host has enough time to complete reset.

Signed-off-by: Zhigang Luo <Zhigang.Luo@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c

index aba00d9..1cb98e6 100644 (file)
@@ -181,7 +181,7 @@ send_request:
        if (event != -1) {
                r = xgpu_nv_poll_msg(adev, event);
                if (r) {
-                       if (retry++ < 2)
+                       if (retry++ < 5)
                                goto send_request;
 
                        if (req != IDH_REQ_GPU_INIT_DATA) {