From patchwork Thu Sep 22 09:18:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 608213 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp217454pvb; Thu, 22 Sep 2022 02:18:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wGPVc0CJbmXfsTxuQdbwogVHwExwNVFGuEEZKbY6+YPdt+unmotgzh6z+3Kqj1x/G3o9E X-Received: by 2002:a05:6402:2693:b0:450:a807:6c91 with SMTP id w19-20020a056402269300b00450a8076c91mr2302084edd.33.1663838336277; Thu, 22 Sep 2022 02:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663838336; cv=none; d=google.com; s=arc-20160816; b=yRpWARv8/lXWqTLE4krB/te7GjWwKpoIDu9UlkzlO84dec72bSvBlzal6ilZi7FYsK fnNjSsLRR8/admnl1HIohBN1PZ6h+s7Jf5I2H8YSYTSGkxiTr9w3LlKfsfDHgrR7aeoT pt8p6yR33V7xQ8UwuNCvqOTIK7nHZVRxa/RVFnHbh5WinAubkZiaOf1TjuQbUpt4ohUS CDdc3u+roPRi9OZm1G0HElk/0vEHXqD4zyp7seMYXKiUnpkE710Q5O7yn9ZDJF2HqPPM eGKvVatuJUIEcVAJBL37Un36LGkQESWUuOwApPRJkNOoErs66wA0Jfq5oXMlS8sjFD9Q z8rQ== 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=Zt82djoIlEKfEXqhjMx8u6RcORbvYrzAjYvMFQ+COng=; b=H/adsRNThcM1sWKRVQWVy6DbeXjdcPq4chqYxOdvz9YxFuCnZPWhQzlpOIbTY5PU50 +nNmM2XAwGPv5b6BccJZjgGCzszzhzNrEeuritvBkxBYltVEf1ZbbPOAYFaIT9z1fak5 Pd6kvur3rnmTNeusuLrRqqyCo0bIrDt8/3+raK0oL8Z61o0rqrGaIpp19x/Qctu6atvm SooumejrqfMLgE35zTqjdRqP1ZpOpVKEcv1/GuNxJRhVNykksxL7Ly7Fc4T9jzdtlosk +mIXM7/jZuO3ifYoYMM/RCAJQSlIxEMdu8IRKJSiF27FSRnDnsuKCbFsStfwNdBHgW8O lc0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m/zmyF7i"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id d25-20020a170906305900b0077ce17dac95si4295912ejd.120.2022.09.22.02.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Sep 2022 02:18:56 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="m/zmyF7i"; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 6C7A984CB9; Thu, 22 Sep 2022 11:18:54 +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="m/zmyF7i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E0E6984CBD; Thu, 22 Sep 2022 11:18:51 +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-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (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 791F584CB9 for ; Thu, 22 Sep 2022 11:18:49 +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-x42e.google.com with SMTP id t14so14456350wrx.8 for ; Thu, 22 Sep 2022 02:18:49 -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=Zt82djoIlEKfEXqhjMx8u6RcORbvYrzAjYvMFQ+COng=; b=m/zmyF7iY+H32QdJlVNv4/eLl9jhGnqyXz75Rh5SKjIqZEXWUt1FftoGbMC45QNNAS 08AwmcBuNZDYH2bzXBXN63FDZ7h/Q+yfFa3Rgz4mwxeFhcFucXEXH5l6/VT3tntxxHrV Tz2wUPCIVB6F0DXpMaKscz05mLfM+fnDfAZjtcRjjOKkF4g76wR+Uh124TEpg892m9f7 1k2V5vSVR5b5OkgVFZO6TdDksabqGUYZPZGltHNwqyCV9L3Qpkmyfwed0xRYw+L8yupA I6ZSEyvaSTjwQ+0Cn9VmN59P+XucvR9L+w3cIrpu8O/4k+d8e7VD3HoH8Fa7RcwUTTTu afjg== 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=Zt82djoIlEKfEXqhjMx8u6RcORbvYrzAjYvMFQ+COng=; b=dlN0q9LHv1MAMTv0MOh8f3tqno9SAQKV5Z/TeEvsVClKB6PTBbJhzWijR4fjFtYslt wUT5bHiCBxCXO4rhvXyJaTCvvVPsuGRS0sTAQud4S0+Pi7GLOitvrqe6ISWQeKKbURJb xxqfjBuc4muYG1TIoLX2cjDYISrh1cpiHndFfEusVIu2JR1sUEu15Igd6uvW0Kt60zsG j2VckKNwJiAKL0ZJj1y1X9CeEZ/Ijjv5taYrdkmo0fBN5GJ51orCGqsy/AB5hiVNqnx7 rppQ+1FbLjJLX4pj01Y8dMz1eFW2nPUgKL3ozzfArSLcFjY8xGkT4evRwo/64/TU+9RY e1VQ== X-Gm-Message-State: ACrzQf1/irDtR16C8TeNMMpq7SNqQyVWWTfVU0xOVFatxhLVu1R/aqeo bXc2KVY3oMzIGCxHZa3upN2ZSn5zIdM/tonf X-Received: by 2002:a05:6000:154e:b0:22a:3177:1985 with SMTP id 14-20020a056000154e00b0022a31771985mr1361575wry.117.1663838328895; Thu, 22 Sep 2022 02:18:48 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:82c:5f0:6d60:ab92:7b43:b649]) by smtp.gmail.com with ESMTPSA id s15-20020adfdb0f000000b0022863395912sm4586905wri.53.2022.09.22.02.18.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Sep 2022 02:18:48 -0700 (PDT) From: Loic Poulain To: peng.fan@oss.nxp.com Cc: u-boot@lists.denx.de, paul.liu@linaro.org, marex@denx.de, tharvey@gateworks.com, Loic Poulain Subject: [PATCH v2] configs: imx8m: Enable CONFIG_ARMV8_CRYPTO support Date: Thu, 22 Sep 2022 11:18:46 +0200 Message-Id: <1663838326-4926-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 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 Reviewed-by: Fabio Estevam --- v2: Select ARMV8_CRYPTO in the imx8m common Kconfig arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+) 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