<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255);" dir="auto">
Does the message need a mention about the newly added option to ignore threshold?</div>
<div id="ms-outlook-mobile-signature">
<div><br>
</div>
Thanks,<br>
Lijo</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Luben Tuikov <luben.tuikov@amd.com><br>
<b>Sent:</b> Monday, October 25, 2021 9:32:20 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Tuikov, Luben <Luben.Tuikov@amd.com>; Russell, Kent <Kent.Russell@amd.com>; Deucher, Alexander <Alexander.Deucher@amd.com><br>
<b>Subject:</b> [PATCH] drm/amdgpu: Restore information reporting in RAS</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">A recent patch took away the reporting of number of RAS records and<br>
the threshold due to the way it was edited/spliced on top of the code.<br>
This patch restores this reporting.<br>
<br>
Cc: Kent Russell <kent.russell@amd.com><br>
Cc: Alex Deucher <Alexander.Deucher@amd.com><br>
Fixes: 07df2fb092d09e ("drm/amdgpu: Add kernel parameter support for ignoring bad page threshold")<br>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com><br>
---<br>
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c | 5 ++++-<br>
 1 file changed, 4 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c<br>
index ae64ca02ccc4f8..05117eda105b55 100644<br>
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c<br>
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c<br>
@@ -1112,7 +1112,10 @@ int amdgpu_ras_eeprom_init(struct amdgpu_ras_eeprom_control *control,<br>
                                 res = 0;<br>
                         } else {<br>
                                 *exceed_err_limit = true;<br>
-                               dev_err(adev->dev, "GPU will not be initialized. Replace this GPU or increase the threshold.");<br>
+                               dev_err(adev->dev,<br>
+                                       "RAS records:%d exceed threshold:%d, "<br>
+                                       "GPU will not be initialized. Replace this GPU or increase the threshold",<br>
+                                       control->ras_num_recs, ras->bad_page_cnt_threshold);<br>
                         }<br>
                 }<br>
         } else {<br>
<br>
base-commit: b60bccb408c831c685b2a257eff575bcda2cbe9d<br>
-- <br>
2.33.1.558.g2bd2f258f4<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>