Re: [PATCH] irqchip/jcore-aic: Fix lost IPIs on SMP

From: John Paul Adrian Glaubitz

Date: Mon Sep 28 2026 - 02:45:15 EST


Hi Karl,

On Mon, 2026-09-28 at 08:07 +0200, Karl Mehltretter wrote:
> On Mon, Sep 28, 2026 at 07:57:27AM +0100, John Paul Adrian Glaubitz wrote:
> > Can you tell me what toolchain you used to build the kernel for J2?
> >
> > Last time I tried to use the one provided by Rob Landley, the build
> > failed due to an internal compiler error so I couldn't actually build
> > a kernel to test it on my J2 Turtleboard.
> >
>
> musl.cc's sh2eb-linux-muslfdpic toolchain (GCC 11.2.1, binutils 2.37):
>
> https://musl.cc/sh2eb-linux-muslfdpic-cross.tgz
>
> Your ICE is probably the one in kernel/nstree.c. Since listns() went in
> (v6.19), every GCC I tried ICEs there with j2_defconfig. The 64-bit
> put_user() asm prints %T (address + 4) of an "m" operand, and GCC can
> pick an indexed address that cannot be offset. The asm needs "o".
> GCC should still error out instead of crashing, so I filed a GCC bug
> too:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127639
>
> Fix below, formal patch follows. With it, j2_defconfig with SMP=y
> builds fine with the musl.cc toolchain.

Oh, I think Florian (CC'ed) already sent a patch for that. I will
look into that one today and pick it up for 7.4 if it fixes the
problem.

Adrian

--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913