[lkml]   [2021]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 0/4] crypto: nintendo-aes - add a new AES driver
This engine implements AES in CBC mode, using 128-bit keys only.  It is
present on both the Wii and the Wii U, and is apparently identical in
both consoles.

The hardware is capable of firing an interrupt when the operation is
done, but this driver currently uses a busy loop, I’m not too sure
whether it would be preferable to switch, nor how to achieve that.

It also supports a mode where no operation is done, and thus could be
used as a DMA copy engine, but I don’t know how to expose that to the
kernel or whether it would even be useful.

In my testing, on a Wii U, this driver reaches 80.7 MiB/s, while the
aes-generic driver only reaches 30.9 MiB/s, so it is a quite welcome

This driver was written based on reversed documentation, see:

Emmanuel Gil Peyrot (4):
crypto: nintendo-aes - add a new AES driver
dt-bindings: nintendo-aes: Document the Wii and Wii U AES support
powerpc: wii.dts: Expose the AES engine on this platform
powerpc: wii_defconfig: Enable AES by default

.../bindings/crypto/nintendo-aes.yaml | 34 +++
arch/powerpc/boot/dts/wii.dts | 7 +
arch/powerpc/configs/wii_defconfig | 4 +-
drivers/crypto/Kconfig | 11 +
drivers/crypto/Makefile | 1 +
drivers/crypto/nintendo-aes.c | 273 ++++++++++++++++++
6 files changed, 329 insertions(+), 1 deletion(-)
create mode 100644 Documentation/devicetree/bindings/crypto/nintendo-aes.yaml
create mode 100644 drivers/crypto/nintendo-aes.c


 \ /
  Last update: 2021-09-21 23:40    [W:0.129 / U:2.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site