Re: [PATCH] MIPS: mm: Add an R10000 family cache error handler
From: Thomas Bogendoerfer
Date: Tue Nov 17 2026 - 12:03:21 EST
On Mon, Oct 26, 2026 at 02:26:12PM +0100, Imre Kaloz wrote:
> cache_parity_error() does not decode the R10000 family's CacheErr
> layout, and panics with ERL set on every error.
>
> Recover I-cache errors by rewriting both ways of the set, as
> invalidating leaves the bad word in the data array, and panic on
> others with ERL clear. The handler is built with CONFIG_CPU_R10000.
>
> Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
> ---
> arch/mips/include/asm/traps.h | 2 +
> arch/mips/mm/Makefile | 1 +
> arch/mips/mm/c-r4k.c | 9 +++
> arch/mips/mm/cerr-r10k.c | 141 ++++++++++++++++++++++++++++++++++
> arch/mips/mm/cex-r10k.S | 125 ++++++++++++++++++++++++++++++
> 5 files changed, 278 insertions(+)
> create mode 100644 arch/mips/mm/cerr-r10k.c
> create mode 100644 arch/mips/mm/cex-r10k.S
applied to mips-next
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]