[PATCH] mvebu: armada 370: dts: fix the crypto engine

Hauke Mehrtens hauke at hauke-m.de
Mon Apr 5 13:55:17 BST 2021


On 4/4/21 11:06 PM, Daniel González Cabanelas wrote:
> The crypto engine in Armada 370 SoCs is currently broken. It can be
> checked installing the required packages for testing openssl with hw
> acceleration:
> 
>    opkg install openssl-util
>    opkg install kmod-cryptodev
>    opkg install libopenssl-devcrypto
> 
> After configuring /etc/ssl/openssl.cnf to let openssl use the crypto
> engine for digest operations, and performing some checksums..
> 
>    md5sum 10M-file.bin
>    openssl md5 10M-file.bin
> 
> ...we can see they don't match.
> 
> There might be an alignment or size constraint issue caused by the
> idle-sram area.
> 
> Use the whole crypto sram and disable the idle-sram area to fix it. Also
> disable the idle support by adding the broken-idle property to prevent
> accessing the disabled idle-sram.
> 
> We don't care about disabling the idle support since it is already broken
> in Armada 370 causing a huge performance loss because it disables
> permanently the L2 cache. This was reported in the Openwrt forum and
> elsewhere by Debian users with different board models.

Is the L2 cache disabled without or with this patch?

> 
> Signed-off-by: Daniel González Cabanelas <dgcbueu at gmail.com>

Could you send this also to the upstream Linux maintainers, I would like 
to get their opinion on this and if this is correct it should also go 
into upstream Linux.

Hauke



More information about the openwrt-devel mailing list