From patchwork Tue Sep 20 15:32:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 607628 Delivered-To: patch@linaro.org Received: by 2002:ab3:1c02:0:b0:1e7:4ce8:c350 with SMTP id u2csp2204236lth; Tue, 20 Sep 2022 08:32:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PvZFkXXOT4yH+riBYHUgPeO7OR+UPan+0oRGI0cuLuShlb2XfoyN2Wk53XH8h/blCa+7N X-Received: by 2002:a17:907:9495:b0:780:6ace:7a97 with SMTP id dm21-20020a170907949500b007806ace7a97mr18076215ejc.123.1663687955929; Tue, 20 Sep 2022 08:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663687955; cv=none; d=google.com; s=arc-20160816; b=CW7u9FGThOakckmaviiffI1hSt4NXfGXR8omI0yMfCMwSfHXtE3YxaXl3gKQEcDYtU gp67AHzkBRZ3ldcM4s6jp5oEy7PdjQrYT3Gm3xonsuZ8jlIV8rL7TRe7YasOEwPYUHbh p47pQtMJ9vmJpker3ExqD6fJ91BG2177yTb8r2ftvI8NraOW1TDMe9GN8+bUeUGB73qU ciI9Wi0OOByIp1QMr60JwvUeSz8D+X4w/1Fqi+1+1Q4DHSZTNw47NwQcq8vCsRV+Oc5b MUeAyWRk8uzCb1FCABOkl/VNH/w1yl3bMAFVnNa8qis7hUesB52YBFw0hON/msdWvIhI GLqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=3RtXJ8bJpBfAJGzLxLqc5WF0WFHtYbbiWuRzfIfoH8g=; b=Yee9w8jrDbez4VJvotE6NfW83N0tTnFiWJZAKAepqLIzdOtuvdOM+710UgqY5Ovv+j hBY8pV2rksQeQkGPg4ksCKU9sIDDYT5S7OXEcGX9zKoBZIOSGqYxc0xHlSPWjbzDWZW7 Es0EvprHJ54UIGLOiEVihGuoE8/TVuk15LbiPT2sjxBJezJp1+EyrI1tHTKs6ttEThnd MEr9P2yScVD1wcLoY+soI/K9IzQ7llhi62fpQRn43D/BMBcZMAVJftbwjtdDtwxQp/80 67y8uBnzOJc/5Qj80WtEhGQytGCUwi8RjBkw+gVoQkkvB5xvmwvv3EdDQ4B2yom50gdq Xqkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jUNjHF/i"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id he9-20020a1709073d8900b00734b2821879si1668873ejc.898.2022.09.20.08.32.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 08:32:35 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jUNjHF/i"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7734484C83; Tue, 20 Sep 2022 17:32:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="jUNjHF/i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3F3B684C8A; Tue, 20 Sep 2022 17:32:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C5E3B84C83 for ; Tue, 20 Sep 2022 17:32:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=loic.poulain@linaro.org Received: by mail-wr1-x434.google.com with SMTP id n12so4875833wrx.9 for ; Tue, 20 Sep 2022 08:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=3RtXJ8bJpBfAJGzLxLqc5WF0WFHtYbbiWuRzfIfoH8g=; b=jUNjHF/iHKMOlbHjVbacGKHRyT49yNG3dQdOhWX/o/ypj6Wr+qfEEt1CkpzOuoMili GQ2b/wGKAspq8BDYN77gr09uYIDIgTg19yGp2lgNrnf3A7x6AdsVtHGf9fWhxLXLKGGW W6delM97RuB0gQysIpFLnjU0opwE59YmkYGMjYTDMHGnPbVNzRpLSe9ggn5EkIA7IV0h FKnLWBnP+aEVXiudhPGYEjdjVJFIhrNL3y0PEhtSNygzdfmBMWVy7CGPH3scT+mXUoAw 2i9kDcuDPzqu5TzPjnMA1lW9v1VGO/SKJsK441O+gwn4FhA8HFFXiKuLH7yiLayAnY+E 9nfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=3RtXJ8bJpBfAJGzLxLqc5WF0WFHtYbbiWuRzfIfoH8g=; b=cDL+fJtR+EevGemZ19InsyvF0t2Pt0rW2/YO51e28IBRrKAkah4SqiIZEwoawj5jmC JCsLqxLJ/kyCCcLcdjykuhSlsCdAbQInxekzAMWqLB93KOsZFQaqbBZeWoyjvVf4ebLq EAqHVPFjRW2P/w848NzC0XvUXnbVTWj93Hc+JgtwtnjlV864K8xnnQGFsGAZizpHrw60 2dUYzZx/Wa5d1rzt1i6p9bsGwKQioe8JJc953l9CYnED/Mq+GCOtFC5hpmOHcKpSQFGD D4w2isjDeZeeuY3NZtMG34g2RYCJli+tle+hcLwsZVqQDxsYnlZCkR58FRCIkoZhVylO KIqA== X-Gm-Message-State: ACrzQf0B6Tz3G/PEBA3MT+N0FfWfmgVFbqlQxVBXsqfPJzr9EpDYNNzH jRRtO3dFUBtbxIhixDJ2aAOmCQ== X-Received: by 2002:a5d:6da1:0:b0:22b:774:52c3 with SMTP id u1-20020a5d6da1000000b0022b077452c3mr5384064wrs.172.1663687948177; Tue, 20 Sep 2022 08:32:28 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:82c:5f0:6d60:ab92:7b43:b649]) by smtp.gmail.com with ESMTPSA id bj1-20020a0560001e0100b0022b0214cfa6sm109819wrb.45.2022.09.20.08.32.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Sep 2022 08:32:27 -0700 (PDT) From: Loic Poulain To: peng.fan@nxp.com Cc: u-boot@lists.denx.de, paul.liu@linaro.org, marex@denx.de, tharvey@gateworks.com, Loic Poulain Subject: [PATCH] configs: imx8mm*: Enable CONFIG_ARMV8_CRYPTO support Date: Tue, 20 Sep 2022 17:32:25 +0200 Message-Id: <1663687945-28215-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 2.7.4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 --- 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(+) 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