public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* Does the SPARC optimized crypto and CRC code actually work?
@ 2026-03-16 20:42 Eric Biggers
  2026-03-17  2:48 ` Nathaniel Roach
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Biggers @ 2026-03-16 20:42 UTC (permalink / raw)
  To: Andreas Larsson, David S. Miller, sparclinux; +Cc: linux-crypto

Hi,

The Linux kernel contains various SPARC crypto opcodes optimized
functions in lib/crypto/sparc/, lib/crc/sparc/, and arch/sparc/crypto/.

As the kernel's crypto and CRC code has been refactored over time, we've
been updating how the SPARC optimized code is integrated accordingly.
However, QEMU doesn't support the SPARC crypto opcodes, which means that
even though I (and maybe others) been running the tests on SPARC kernels
in QEMU, this doesn't actually execute the SPARC optimized code.

So I have to ask: is someone in the SPARC community actually testing
this code regularly?  That includes running all the KUnit tests for
crypto and CRC as well as the traditional crypto self-tests.

If not, then unless QEMU support is forthcoming I'd suggest we drop this
code to avoid issues on SPARC systems.  The generic code is much better
tested and we know that it works on any architecture, including SPARC.
Correctness is the first priority, especially for cryptography.

- Eric

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-03-23 18:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 20:42 Does the SPARC optimized crypto and CRC code actually work? Eric Biggers
2026-03-17  2:48 ` Nathaniel Roach
2026-03-17  3:45   ` Eric Biggers
2026-03-17  7:16     ` John Paul Adrian Glaubitz
2026-03-17 14:06       ` Theodore Tso
2026-03-17 14:14         ` John Paul Adrian Glaubitz
2026-03-22 14:59           ` Eric Biggers
2026-03-23  5:58             ` John Paul Adrian Glaubitz
2026-03-23 10:36       ` Nathaniel Roach
2026-03-23 18:20         ` Eric Biggers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox