hi, On 11/12/2019 09:41, Anand Moon wrote: > Below changes enable cryto module on Amlogic GXBB SoC. > > I was realy happy to get this feature working on Odroid C2 SBC. > I will try on other SBC in the future. > > Tested with loading tcrypt module. > # sudo modprobe tcrypt sec=1 mode=200 > [sudo] password for alarm: > [ 903.867059] tcrypt: > [ 903.867059] testing speed of async ecb(aes) (ecb(aes-arm64)) encryption > [ 903.870265] tcrypt: test 0 (128 bit key, 16 byte blocks): 1922107 operations in 1 seconds (30753712 bytes) > [ 904.872802] tcrypt: test 1 (128 bit key, 64 byte blocks): 679032 operations in 1 seconds (43458048 bytes) > [ 905.872717] tcrypt: test 2 (128 bit key, 256 byte blocks): 190190 operations in 1 seconds (48688640 bytes) > [ 906.872793] tcrypt: test 3 (128 bit key, 1024 byte blocks): 49014 operations in 1 seconds (50190336 bytes) > [ 907.872808] tcrypt: test 4 (128 bit key, 1472 byte blocks): 34342 operations in 1 seconds (50551424 bytes) > [ 908.876828] tcrypt: test 5 (128 bit key, 8192 byte blocks): 6199 operations in 1 seconds (50782208 bytes) > > -Anand > > Anand Moon (3): > arm64: dts: amlogic: adds crypto hardware node for GXBB SoCs > dt-bindings: crypto: Add compatible string for amlogic GXBB SoC > crypto: amlogic: Add new compatible string for amlogic GXBB SoC > > .../devicetree/bindings/crypto/amlogic,gxl-crypto.yaml | 1 + > arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 10 ++++++++++ > drivers/crypto/amlogic/amlogic-gxl-core.c | 1 + > 3 files changed, 12 insertions(+) > Wow, I'm surprised it works on GXBB, Amlogic completely removed HW crypto for GXBB in all their vendor BSPs, in Linux, U-Boot and ATF chain. Could you run more tests to be sure it's really functional ? Neil