Skip to contentSkip to conversation

drm/amdgpu: Only send RMA CPER when threshold is exceeded

PATCH In review Kent Russell 2 participants 2 messages Apr 22 – Apr 23

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

PATCH 1/1 drm/amdgpu: Only send RMA CPER when threshold is exceeded

According to our documentation, the RMA should only occur when the threshold has been exceeded, not met.

Fixes 6c470a9bb431 ("drm/amdgpu: Send applicable RMA CPERs at end of RAS init")
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +1 -1
index cdf4909592d2..0c57fe259894 100644
@@ -1950,7 +1950,7 @@ void amdgpu_ras_check_bad_page_status(struct amdgpu_device *adev)
 	if (!control || amdgpu_bad_page_threshold == 0)
 		return;
 
-	if (control->ras_num_bad_pages >= ras->bad_page_cnt_threshold) {
+	if (control->ras_num_bad_pages > ras->bad_page_cnt_threshold) {
 		if (amdgpu_dpm_send_rma_reason(adev))
 			dev_warn(adev->dev, "Unable to send out-of-band RMA CPER");
 		else
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - AMD Internal Distribution Only]

Quoted 37 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Kent Russell
Sent: Wednesday, April 22, 2026 9:36 PM
To: [email protected]
Cc: Russell, Kent <[email protected]>
Subject: [PATCH] drm/amdgpu: Only send RMA CPER when threshold is exceeded

According to our documentation, the RMA should only occur when the threshold has been exceeded, not met.

Fixes 6c470a9bb431 ("drm/amdgpu: Send applicable RMA CPERs at end of

RAS init")

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c +1 -1
index cdf4909592d2..0c57fe259894 100644
@@ -1950,7 +1950,7 @@ void amdgpu_ras_check_bad_page_status(struct
 amdgpu_device *adev)
      if (!control || amdgpu_bad_page_threshold == 0)
              return;
 
-     if (control->ras_num_bad_pages >= ras->bad_page_cnt_threshold) {
+     if (control->ras_num_bad_pages > ras->bad_page_cnt_threshold) {
              if (amdgpu_dpm_send_rma_reason(adev))
                      dev_warn(adev->dev, "Unable to send out-of-band

RMA CPER");
else
--
2.43.0