[PATCH] configs: imx8mm*: Enable CONFIG_ARMV8_CRYPTO support
Peng Fan
peng.fan at oss.nxp.com
Wed Sep 21 02:25:49 CEST 2022
Hi Loic,
On 9/20/2022 11:32 PM, Loic Poulain wrote:
> Which speed up sha1/sha256 operations, about 10x faster with
> a imx8mm evk for a 20MiB kernel hash verification (12ms vs 165ms).
>
wow! this looks great.
> Signed-off-by: Loic Poulain <loic.poulain at linaro.org>
> ---
> configs/imx8mm-cl-iot-gate-optee_defconfig | 1 +
> configs/imx8mm-cl-iot-gate_defconfig | 1 +
> configs/imx8mm-icore-mx8mm-ctouch2_defconfig | 1 +
> configs/imx8mm-icore-mx8mm-edimm2.2_defconfig | 1 +
> configs/imx8mm-mx8menlo_defconfig | 1 +
> configs/imx8mm_beacon_defconfig | 1 +
> configs/imx8mm_data_modul_edm_sbc_defconfig | 1 +
> configs/imx8mm_evk_defconfig | 1 +
> configs/imx8mm_evk_fspi_defconfig | 1 +
> configs/imx8mm_venice_defconfig | 1 +
> 10 files changed, 10 insertions(+)
I would suggest select ARMV8_CRYPTO in arch/arm/mach-imx/imx8m/Kconfig
for IMX8MM. Or even enable this option for i.MX8M* family.
Thanks,
Peng.
>
> diff --git a/configs/imx8mm-cl-iot-gate-optee_defconfig b/configs/imx8mm-cl-iot-gate-optee_defconfig
> index 9ab2173..b222756 100644
> --- a/configs/imx8mm-cl-iot-gate-optee_defconfig
> +++ b/configs/imx8mm-cl-iot-gate-optee_defconfig
> @@ -15,6 +15,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_FIT=y
> diff --git a/configs/imx8mm-cl-iot-gate_defconfig b/configs/imx8mm-cl-iot-gate_defconfig
> index 73d9388..6186cad 100644
> --- a/configs/imx8mm-cl-iot-gate_defconfig
> +++ b/configs/imx8mm-cl-iot-gate_defconfig
> @@ -16,6 +16,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_ENV_OFFSET_REDUND=0x204000
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_DISTRO_DEFAULTS=y
> diff --git a/configs/imx8mm-icore-mx8mm-ctouch2_defconfig b/configs/imx8mm-icore-mx8mm-ctouch2_defconfig
> index d3e0b05..6dfe027 100644
> --- a/configs/imx8mm-icore-mx8mm-ctouch2_defconfig
> +++ b/configs/imx8mm-icore-mx8mm-ctouch2_defconfig
> @@ -16,6 +16,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_FIT=y
> diff --git a/configs/imx8mm-icore-mx8mm-edimm2.2_defconfig b/configs/imx8mm-icore-mx8mm-edimm2.2_defconfig
> index 29addb5..b47773f 100644
> --- a/configs/imx8mm-icore-mx8mm-edimm2.2_defconfig
> +++ b/configs/imx8mm-icore-mx8mm-edimm2.2_defconfig
> @@ -16,6 +16,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_FIT=y
> diff --git a/configs/imx8mm-mx8menlo_defconfig b/configs/imx8mm-mx8menlo_defconfig
> index 702162f..e3b94dc 100644
> --- a/configs/imx8mm-mx8menlo_defconfig
> +++ b/configs/imx8mm-mx8menlo_defconfig
> @@ -18,6 +18,7 @@ CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_BOOTCOUNT_BOOTLIMIT=3
> CONFIG_SYS_BOOTCOUNT_ADDR=0x30370090
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
> CONFIG_ENV_OFFSET_REDUND=0xFFFFDE00
> CONFIG_SYS_LOAD_ADDR=0x40480000
> diff --git a/configs/imx8mm_beacon_defconfig b/configs/imx8mm_beacon_defconfig
> index e37ce01..467e7d2 100644
> --- a/configs/imx8mm_beacon_defconfig
> +++ b/configs/imx8mm_beacon_defconfig
> @@ -16,6 +16,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_LTO=y
> CONFIG_FIT=y
> diff --git a/configs/imx8mm_data_modul_edm_sbc_defconfig b/configs/imx8mm_data_modul_edm_sbc_defconfig
> index b246fbd..deca8f6 100644
> --- a/configs/imx8mm_data_modul_edm_sbc_defconfig
> +++ b/configs/imx8mm_data_modul_edm_sbc_defconfig
> @@ -20,6 +20,7 @@ CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_BOOTCOUNT_BOOTLIMIT=3
> CONFIG_SYS_BOOTCOUNT_ADDR=0x30370090
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
> CONFIG_ENV_OFFSET_REDUND=0xFFFC0000
> CONFIG_IMX_BOOTAUX=y
> diff --git a/configs/imx8mm_evk_defconfig b/configs/imx8mm_evk_defconfig
> index 7bcedcd..1f30467 100644
> --- a/configs/imx8mm_evk_defconfig
> +++ b/configs/imx8mm_evk_defconfig
> @@ -16,6 +16,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_FIT=y
> diff --git a/configs/imx8mm_evk_fspi_defconfig b/configs/imx8mm_evk_fspi_defconfig
> index 21fd7e0..3331c1a 100644
> --- a/configs/imx8mm_evk_fspi_defconfig
> +++ b/configs/imx8mm_evk_fspi_defconfig
> @@ -17,6 +17,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_SYS_LOAD_ADDR=0x40480000
> CONFIG_DISTRO_DEFAULTS=y
> CONFIG_FIT=y
> diff --git a/configs/imx8mm_venice_defconfig b/configs/imx8mm_venice_defconfig
> index 2a44bf6..7bf805f 100644
> --- a/configs/imx8mm_venice_defconfig
> +++ b/configs/imx8mm_venice_defconfig
> @@ -16,6 +16,7 @@ CONFIG_SPL_MMC=y
> CONFIG_SPL_SERIAL=y
> CONFIG_SPL_DRIVERS_MISC=y
> CONFIG_SPL=y
> +CONFIG_ARMV8_CRYPTO=y
> CONFIG_ENV_OFFSET_REDUND=0xff8000
> CONFIG_SYS_LOAD_ADDR=0x48200000
> CONFIG_SYS_MEMTEST_START=0x40000000
More information about the U-Boot
mailing list