Message ID | 1663838326-4926-1-git-send-email-loic.poulain@linaro.org |
---|---|
State | Accepted |
Commit | a887f2ac3e6c2479476ff0ef82c1d2e23178b6f9 |
Delegated to: | Stefano Babic |
Headers | show |
Series | [v2] configs: imx8m: Enable CONFIG_ARMV8_CRYPTO support | expand |
Hi Loic, On Thu, Sep 22, 2022 at 6:19 AM Loic Poulain <loic.poulain@linaro.org> wrote: > > 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). > > Signed-off-by: Loic Poulain <loic.poulain@linaro.org> Great improvement, thanks: Reviewed-by: Fabio Estevam <festevam@denx.de>
> 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). > Signed-off-by: Loic Poulain <loic.poulain@linaro.org> > Reviewed-by: Fabio Estevam <festevam@denx.de> Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 3470160..fe7ef0b 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -4,6 +4,7 @@ config IMX8M bool select HAS_CAAM select ROM_UNIFIED_SECTIONS + select ARMV8_CRYPTO config IMX8MQ bool
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). Signed-off-by: Loic Poulain <loic.poulain@linaro.org> --- v2: Select ARMV8_CRYPTO in the imx8m common Kconfig arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)