Re: [PATCH v2 7/9] MIPS: Ingenic: Expand Kconfig for X1600, X2000, and X2600 SoCs
From: Hunter Laux
Date: Sun Nov 15 2026 - 23:49:32 EST
On Thu, Nov 12, 2026 at 09:10:29AM +0100, H. Nikolaus Schaller wrote:
> +config MACH_X2600
> + bool
> + select MIPS_CPU_SCACHE
> + select GENERIC_CLOCKEVENTS_BROADCAST if SMP
> + select SYS_HAS_CPU_MIPS32_R5
With only R5 here, a kernel for just the X2600 is built for MIPS32r5,
and it dies at the first interrupt return:
Reserved instruction in kernel code[#1]:
epc : arch_local_irq_restore+0xc/0x18
PrId : 00132000 (Ingenic XBurst II)
RESTORE_SP_AND_RET uses eretnc on R5, which XBurst II doesn't have (it
predates R5.04). Zhou fixed this in 2020, using eretnc only on R6:
"MIPS: stackframe: Fix the problem caused by the eretnc instruction."
With it the same kernel boots. Since this patch makes an X2600 kernel
R5-only, I think Zhou's fix should come before it in the series.
Hunter