drm/amdgpu: Only send RMA CPER when threshold is exceeded
Subsystems (2)
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")
Signed-off-by Kent Russell <[email protected]>
--- 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
@@ -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
[AMD Official Use Only - AMD Internal Distribution Only]
Reviewed-by Tao Zhou <[email protected]>
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 exceededAccording 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 ofRAS init")
Signed-off-by Kent Russell <[email protected]>--- 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@@ -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-bandRMA CPER");
else
--
2.43.0