Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: rk3588 crypto unaccelerated #7703

Closed
1 of 2 tasks
tlvince opened this issue Jan 14, 2025 · 3 comments
Closed
1 of 2 tasks

[Bug]: rk3588 crypto unaccelerated #7703

tlvince opened this issue Jan 14, 2025 · 3 comments
Labels
Bug Something isn't working as it should Good first issue Feel free to contribute :)

Comments

@tlvince
Copy link

tlvince commented Jan 14, 2025

What happened?

rk3588 based boards do not appear to have working crypto (aes, md5 etc.) acceleration.

On a cm3588, with 6.12.8, I get the following:

`❯ cryptsetup benchmark --cipher=aes-xts-plain64 --key-size 256`
# Algorithm |       Key |      Encryption |      Decryption
    aes-xts        256b      222.5 MiB/s      194.0 MiB/s

ARMv8 crypto extensions do not appear to be enabled:

❯ grep aes /proc/cpuinfo

rk35xx-montjoie-crypto-v2-rk35xx.patch has been carried over for a few releases, but does not appear to work (and the series has stalled):

[    1.123059] rk2-crypto fe370000.crypto: Fallback for xts-aes-rk2 is xts(ecb(aes-generic))

> cat /sys/kernel/debug/rk2_crypto/stats
rk2-crypto fe370000.crypto requests: 5333
ecb-aes-rk2 ecb(aes) reqs=133 fallback=1957
        fallback due to length: 293
        fallback due to alignment: 1662
        fallback due to SGs: 0
cbc-aes-rk2 cbc(aes) reqs=4831 fallback=2165
        fallback due to length: 304
        fallback due to alignment: 1846
        fallback due to SGs: 9
xts-aes-rk2 xts(aes) reqs=161 fallback=10989
        fallback due to length: 84
        fallback due to alignment: 793
        fallback due to SGs: 0
rk2-md5 md5 reqs=2 fallback=340
rk2-sha1 sha1 reqs=39 fallback=660
rk2-sha256 sha256 reqs=36 fallback=635
rk2-sha384 sha384 reqs=41 fallback=680
rk2-sha512 sha512 reqs=53 fallback=673
rk2-sm3 sm3 reqs=37 fallback=642

How to reproduce?

Per above

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tlvince tlvince added the Bug Something isn't working as it should label Jan 14, 2025
Copy link
Contributor

Hey @tlvince !

Looks like it's your first time interacting with Armbian here on GitHub.

Welcome and thank you for taking the time to report an issue ❤️.

Don't forget to star ⭐ the repo.

@github-actions github-actions bot added the Good first issue Feel free to contribute :) label Jan 14, 2025
Copy link
Contributor

github-actions bot commented Jan 14, 2025

Jira ticket: AR-2586

@EvilOlaf
Copy link
Member

EvilOlaf commented Jan 14, 2025

Hi,

this issue tracker is exclusively for problems with the build framework. building Armbian to say. Missing/non-functional hw feature is not a building issue.
Issues when running Armbian shall be reported in forum as suggested by the issue template and the bug wizard on our website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as it should Good first issue Feel free to contribute :)
Development

No branches or pull requests

2 participants