Skip to content

arm64: dts: apple: t8140-j700: enable the SIO AES engine - #1736

Merged
RyanTheTide merged 1 commit into
integration/aurorafrom
neoaes/t8140-j700-aes
Nov 12, 2026
Merged

RyanTheTide merged 1 commit into
integration/aurorafrom
neoaes/t8140-j700-aes

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Enable the SIO AES engine on the J700 (T8140). #1622 added revision 5 support to apple-aes (42-bit DMA and the upper address word) and enabled the engine on the J616s; this enables it on the J700.

Only &aes changes. On T8140, ps_aes is already enabled in t8140-pmgr.dtsi (parent ps_sio, not always-on), and the board enables sio_dart. The loader gives sio_dart an apple,dma-range of 0x100_0001c000 to 0x400_0000_0000, so the bounce buffer sits above 4 GiB, inside the 42-bit mask.

The compiled DTB differs from the base only in status = "okay" on /soc/crypto@38500c000.

Tested on a J700 with this DTB on an aura trial Stage 2 and an integration/aurora 53857e6 kernel (+ #1735), apple-aes as a module:

  • Probe: AES engine rev 5 ready (readiness 0x01023f80, 42-bit DMA, ECB/CBC/CTR, priority 150). The aes power domain is off when idle.
  • testmgr: ecb, cbc and ctr-aes-apple-sio selftests pass at boot. ecb/cbc/ctr(aes) still resolve to aes-ce (priority 300).
  • dm-crypt cross-check, apple-sio against aes-ce: 6/6 round trips (ecb, cbc, ctr at 512 and 4096 byte sectors, 128 MiB each).
  • 2,433,558,774 bytes in 2,673,792 requests through the engine with 0 errors. Bounce IOVA 0x3ff_fff80000, upper address word 0x03ff03ff.
  • s2r 3/3 and s2idle 2/2, with a dm-crypt apple-sio write and aes-ce read checked after every wake. A zero-sample DisplayPort audio stream was held through each s2r and resumed after it.
  • 0 DART faults, 0 AVC denials, 0 failed units.

Speed at 4 KiB sectors: 53 to 55 MB/s through the engine (cbc encrypt 14 MB/s), against 0.86 to 2.8 GB/s for aes-ce. At 512 byte sectors the engine does 8 to 16 MB/s.

🤖 Generated with Claude Code

The skcipher driver drives the revision 5 engine on T8140. Enable the
engine on the J700. Its power state is already enabled in t8140-pmgr,
and the SIO DART that maps it is enabled by the board.

Assisted-by: LLM
Signed-off-by: Ryan Murray <ryan@aurorasilicon.org>
@RyanTheTide
RyanTheTide marked this pull request as ready for review November 12, 2026 23:10
@RyanTheTide
RyanTheTide merged commit e15ef13 into integration/aurora Nov 12, 2026
2 checks passed
@RyanTheTide
RyanTheTide deleted the neoaes/t8140-j700-aes branch November 12, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant