Repository navigation
crypto: apple: SIO AES revision 5 (T6040, T8140) + J616s enable - #1622
Merged
Merged
Conversation
The revision 5 SIO AES engine on T6040 and T8140 takes DMA addresses up to 42 bits wide, and its SIO DART window starts above 4 GiB, so the 32-bit DMA mask the driver used could never be satisfied there and the upper address word of the crypt command has to be filled in. The upper address word carries bits 32 and up of the source address in its upper half and of the destination address in its lower half. Build it from the bounce buffer address once at probe and refuse a buffer the engine cannot reach. Each SoC entry now carries its DMA width: 42 bits on revision 5, and 32 bits on revision 3, which keeps that word at zero as before. The crypt length field is 24 bits wide; the 512 KiB bounce buffer stays well inside it. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The skcipher driver now binds the T6040 and T8140 AES nodes, the only ones this driver matched. Two drivers for one compatible would race for the device, and the skcipher driver already reports the engine readiness word at probe. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
The skcipher driver now drives the revision 5 engine. Enable the engine and its power state on the J616s. Assisted-by: LLM Signed-off-by: Ryan Murray <[email protected]>
This was referenced Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the revision 5 SIO AES engine (T6040, T8140) to the apple-aes skcipher driver and enables it on the J616s. The J700 node stays disabled in this PR.
Tests used integration c6c15ac plus these three commits. The J616s ran with its live DTB plus the two status changes, which is the same delta as this branch's j616s DTB.
checkpatch --strict is clean apart from the From/Signed-off-by address note.
🤖 Generated with Claude Code