]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: DEC: Rate-limit memory errors for KN01 systems
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sat, 28 Mar 2026 15:50:01 +0000 (15:50 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 6 Apr 2026 12:02:19 +0000 (14:02 +0200)
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>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/dec/kn01-berr.c

index 76efed7bc9f3acf87cc634d6bd4d68ea8b8aff10..27addf7f31c784907a38c492991e42a82497264f 100644 (file)
@@ -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_regs *regs, int is_fixup, int invoker)
                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;
 }