[PATCH 2/3] MIPS: DEC: Rate-limit memory errors for KN01 systems

Maciej W. Rozycki posted 3 patches 4 days, 20 hours ago
[PATCH 2/3] MIPS: DEC: Rate-limit memory errors for KN01 systems
Posted by Maciej W. Rozycki 4 days, 20 hours ago
Similarly to memory errors in ECC systems also rate-limit memory parity 
errors for KN01 DECstation and DECsystem models.  Unlike with ECC these 
events are always fatal and are less likely to cause a message flood, 
but handle them the same way for consistency.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
---
 arch/mips/dec/kn01-berr.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

linux-mips-dec-berr-ratelimit-kn01.diff
Index: linux-macro/arch/mips/dec/kn01-berr.c
===================================================================
--- linux-macro.orig/arch/mips/dec/kn01-berr.c
+++ linux-macro/arch/mips/dec/kn01-berr.c
@@ -4,7 +4,7 @@
  *	and 2100 (KN01) systems equipped with parity error detection
  *	logic.
  *
- *	Copyright (c) 2005  Maciej W. Rozycki
+ *	Copyright (c) 2005, 2026  Maciej W. Rozycki
  */
 
 #include <linux/init.h>
@@ -134,8 +134,8 @@ static int dec_kn01_be_backend(struct pt
 		action = MIPS_BE_FIXUP;
 
 	if (action != MIPS_BE_FIXUP)
-		printk(KERN_ALERT "Bus error %s: %s %s %s at %#010lx\n",
-			kind, agent, cycle, event, address);
+		pr_alert_ratelimited("Bus error %s: %s %s %s at %#010lx\n",
+				     kind, agent, cycle, event, address);
 
 	return action;
 }