Re: [PATCH] MIPS: mm: Fix the cache error vector jump for XKPHYS kernels

From: Thomas Bogendoerfer

Date: Thu Nov 05 2026 - 10:55:28 EST


On Wed, Oct 21, 2026 at 08:57:09PM +0200, Imre Kaloz wrote:
> except_vec2_generic jumps to cache_parity_error with a j, which cannot
> leave the vector's 256MB region. An XKPHYS kernel such as IP30's, linked
> at 512MB, is outside it, so the j targets an unbacked address and its
> speculative fetch raises bus errors on unrelated fetches. Jump to the
> handler's uncached XKPHYS address instead.
>
> Fixes: 7505576d1c1a ("MIPS: add support for SGI Octane (IP30)")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Imre Kaloz <kaloz@xxxxxxxxxx>
> ---
> arch/mips/mm/cex-gen.S | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)

applied to mips-fixes

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]