Skip to contentSkip to conversation

drm/amdgpu: update vf to pf message retry from 2 to 5

PATCH In review Zhigang Luo 2 participants 2 messages Apr 30, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: update vf to pf message retry from 2 to 5

increase retry times to wait host has enough time to complete reset.

---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +1 -1
index 89992c1c9a62..8b0ab075b728 100644
@@ -181,7 +181,7 @@ static int xgpu_nv_send_access_requests_with_param(struct amdgpu_device *adev,
 	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) {
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Regards,
Hawking
-----Original Message-----
From: Luo, Zhigang <[email protected]>
Sent: Tuesday, April 30, 2024 22:23
To: [email protected]
Cc: Zhang, Hawking <[email protected]>; Saye, Sashank <[email protected]>; Chan, Hing Pong <[email protected]>; Lazar, Lijo <[email protected]>; Luo, Zhigang <[email protected]>
Subject: [PATCH] drm/amdgpu: update vf to pf message retry from 2 to 5

increase retry times to wait host has enough time to complete reset.

---
 drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c +1 -1
index 89992c1c9a62..8b0ab075b728 100644
@@ -181,7 +181,7 @@ static int xgpu_nv_send_access_requests_with_param(struct amdgpu_device *adev,
        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) {

--
2.25.1