Crash in __do_IRQ with gcc 15

2025-05-10 Thread Paul Mackerras
Running Linux on Microwatt with a kernel compiled on an x86-64 system running Fedora 42 (using the packaged cross-compiler, i.e. the gcc-powerpcle64-linux-gnu package), I'm seeing a crash like this: [0.141591] smp: Bringing up secondary CPUs ... [0.167628] BUG: Unable to handle kernel data

Re: [PATCH v4 1/4] tpm: add buf_size parameter in the .send callback

2025-05-10 Thread Jarkko Sakkinen
On Fri, May 09, 2025 at 10:57:10AM +0200, Stefano Garzarella wrote: > From: Stefano Garzarella > > Add a new `buf_size` parameter to the `.send` callback in `tpm_class_ops`. > This parameter will allow drivers to differentiate between the actual > command length to send and the total buffer size.

Re: [v2 PATCH] crypto: powerpc/poly1305 - Add poly1305_emit_arch wrapper

2025-05-10 Thread Segher Boessenkool
Hi! On Fri, May 09, 2025 at 10:33:08PM -0700, Eric Biggers wrote: > On Sat, May 10, 2025 at 01:10:22PM +0800, Herbert Xu wrote: > > On Fri, May 09, 2025 at 09:44:50PM -0700, Eric Biggers wrote: > > > > > > This fixes "-cpu Power10", but older CPUs (e.g. "-cpu POWER9") are still > > > failing. > >

[PATCH] crypto: powerpc/poly1305 - Add SIMD fallback

2025-05-10 Thread Herbert Xu
On Fri, May 09, 2025 at 10:33:08PM -0700, Eric Biggers wrote: > > Yes, the PowerPC Poly1305 code incorrectly uses VSX without first checking > crypto_simd_usable(). And PowerPC also doesn't support VSX in softirqs, or at > least it doesn't claim to (it doesn't override may_use_simd(), so it gets t

[PATCH] powerpc/kernel: Fix ppc_save_regs inclusion in build

2025-05-10 Thread Madhavan Srinivasan
Recent patch fixed an old commit 'fc2a5a6161a2 ("powerpc/64s: ppc_save_regs is now needed for all 64s builds")' which is to include building of ppc_save_reg.c only when XMON and KEXEC_CORE and PPC_BOOK3S are enabled. This was valid, since ppc_save_regs was called only in replay_system_reset() of ol

Re: [v2 PATCH] crypto: powerpc/poly1305 - Add poly1305_emit_arch wrapper

2025-05-10 Thread Herbert Xu
On Sat, May 10, 2025 at 05:34:01PM -0500, Segher Boessenkool wrote: > > What doe "may_use_simd" even *mean*? At its declaration site it says > "whether it is allowable at this time to issue SIMD instructions or > access the SIMD register file", but that is 100% meaningless, you can do > SIMD in GP

Re: [v2 PATCH] crypto: powerpc/poly1305 - Add poly1305_emit_arch wrapper

2025-05-10 Thread Eric Biggers
On Sat, May 10, 2025 at 05:34:01PM -0500, Segher Boessenkool wrote: > Hi! > > On Fri, May 09, 2025 at 10:33:08PM -0700, Eric Biggers wrote: > > On Sat, May 10, 2025 at 01:10:22PM +0800, Herbert Xu wrote: > > > On Fri, May 09, 2025 at 09:44:50PM -0700, Eric Biggers wrote: > > > > > > > > This fixes