Skip to contentSkip to conversation

configs: imx8m: Enable CONFIG_ARMV8_CRYPTO support

PATCH In review Loic Poulain 3 participants 3 messages Sep 22, 2022 – Nov 8, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configs: imx8m: Enable CONFIG_ARMV8_CRYPTO support

This enables armv8 crypto extension usage for SHA1/SHA256.

Which speed up sha1/sha256 operations, about 10x faster with a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms).

---
v2: Select ARMV8_CRYPTO in the imx8m common Kconfig

 arch/arm/mach-imx/imx8m/Kconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-imx/imx8m/Kconfig +1 -0
index 3470160..fe7ef0b 100644
@@ -4,6 +4,7 @@ config IMX8M
 	bool
 	select HAS_CAAM
 	select ROM_UNIFIED_SECTIONS
+	select ARMV8_CRYPTO
 
 config IMX8MQ
 	bool
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 1/1 configs: imx8m: Enable CONFIG_ARMV8_CRYPTO support

In reply to Loic Poulain
Quoted 5 lines

This enables armv8 crypto extension usage for SHA1/SHA256. Which speed up sha1/sha256 operations, about 10x faster with a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms).

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================