Skip to contentSkip to conversation

drm/amdgpu: use mode-2 reset for RAS poison consumption

PATCH In review Tao Zhou 2 participants 2 messages Oct 27, 2023

Subsystems (2)
lore
Share & tools
lore

Tao Zhou

author
#0 lore raw

PATCH 1/1 drm/amdgpu: use mode-2 reset for RAS poison consumption

Switch from mode-1 reset to mode-2 for poison consumption.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +5 -1
index f74347cc087a..d65e21914d8c 100644
@@ -166,8 +166,12 @@ static int amdgpu_umc_do_page_retirement(struct amdgpu_device *adev,
 			}
 		}
 
-		if (reset)
+		if (reset) {
+			/* use mode-2 reset for poison consumption */
+			if (!entry)
+				con->gpu_reset_flags |= AMDGPU_RAS_GPU_RESET_MODE2_RESET;
 			amdgpu_ras_reset_gpu(adev);
+		}
 	}
 
 	kfree(err_data->err_addr);
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - General]

Regards,
Stanley

Quoted 39 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Tao Zhou
Sent: Friday, October 27, 2023 12:04 PM
To: [email protected]
Cc: Zhou1, Tao <[email protected]>
Subject: [PATCH] drm/amdgpu: use mode-2 reset for RAS poison consumption

Switch from mode-1 reset to mode-2 for poison consumption.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_umc.c +5 -1
index f74347cc087a..d65e21914d8c 100644
@@ -166,8 +166,12 @@ static int amdgpu_umc_do_page_retirement(struct
 amdgpu_device *adev,
                      }
              }
 
-             if (reset)
+             if (reset) {
+                     /* use mode-2 reset for poison consumption */
+                     if (!entry)
+                             con->gpu_reset_flags |=
 AMDGPU_RAS_GPU_RESET_MODE2_RESET;
                      amdgpu_ras_reset_gpu(adev);
+             }
      }
      kfree(err_data->err_addr);

--
2.35.1