Message ID | 20230706073719.1156288-1-thomas.bourgoin@foss.st.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2387121vqx; Thu, 6 Jul 2023 00:59:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGAVMjlDqMRCzrB/ExeUeFI4d2Ag9OP448xYGcO8O1BJak2UqY9GeYt3IqcGXVillRkGT89 X-Received: by 2002:a17:90a:b311:b0:263:71ff:d0c3 with SMTP id d17-20020a17090ab31100b0026371ffd0c3mr1103305pjr.8.1688630370260; Thu, 06 Jul 2023 00:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688630370; cv=none; d=google.com; s=arc-20160816; b=oFM7HSgKtJ2MRtA8zg2pCOzW/qbrNBysTBRqe+ZK2choYBb6fXRrazG+xMrz8sKAni py+v0skIQMQBvN8jn6GdbOd1q/FNpECywbLWUG6/Y8DpMwfI3cEDF/8/Q+lUy4SuB4Jz IWlEL1EVTR4akDxgJkbmDgAr6NNzDmrruEp1yJ3EYrQ+jsyPxTQatSTWZXgA4Io5/uG7 j5+KW0eVyPlQM3mOl0ycAGL5uHaDOZrMZi+bs4r+WTrNBlVbj+yVMyAgJJllI8Raowcm IOjVLoECQHW+xoL3+BidNc/smN27XlB3q0Yt2LBlO3gd7AfO/MgJCdLqEJfbm1Ff3+6H t2Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ES9mEQ4W/mYtGfnJvsQpQ4qc2idTc5oG7veLTWENpDs=; fh=tUOLXbYg6yQ+/v4k7Q2EmKHjiTMAnnvqlYEqREZQ370=; b=GqBD7mqO2tX2SxHRhtQbVCVORC5/XIiOjDogq4lA6NR3XwiNAgVJrgWgNlAiprmPhS XMs8aSfWH95rXQt2XCxZyx3qv00hA6H0ofGlhJPDHlPPPIuRix35tEInxBHAasHg1lMs pC8E9MQ/9ke4UT/FiuvfFMtG11edV9XuxpD6DiWTE7ykKZHC6SOEHZsUmRgOfwBorqjd Yp2AOwOV1+Yi4DfNXaQTFb/6Q5am/iPEnpVoZhGz3MobrXF01AHzMtI4HvJkHBHO7qDe ZocV4B36t8ecqaRzxfGRG6KKZwb/xzz2f52Ky30x/5MM+xb6T2YmyLPEaM29aR/EyyHO TCFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=OLbrXkKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a17090a891100b00262c7b59f4esi3137814pjn.188.2023.07.06.00.59.15; Thu, 06 Jul 2023 00:59:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=OLbrXkKz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233818AbjGFHiZ (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 03:38:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229946AbjGFHiX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 03:38:23 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6845D1995; Thu, 6 Jul 2023 00:38:22 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3667J8I8028476; Thu, 6 Jul 2023 09:37:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=ES9mEQ4W/mYtGfnJvsQpQ4qc2idTc5oG7veLTWENpDs=; b=OLbrXkKzIsrt7qj01syiZl6eIwSSM81SFyjHLQT4VMy4Fr347+zSoE9RPyPUlofW47Bm Iaq6l1Q1tSFBKk2Eed9DqQvcIEzi+/v/S3bMjySEEJMnWHPzcs04TS1r/chYeshbXFim xgVO+hJWAn3dQpisy8A9/GEDcWxCHgXaqX8h47mo3oTBnEDWrt/RfpljrpLlBw0KP1pm AiTwgVSzyV1mYunEuOLe4mlR9Yn2IQGhxXKkXBcoWvmAOeMUqpKiBbcIicW6KaESVhU8 Q+oNTaIJwyrSPuQgTSg1LwGRyEmvC5KDP5eLtDOkI3YZM66dlc525kMYWzE9mXxt4ecS 4A== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3rns47r4ks-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 09:37:35 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 15641100052; Thu, 6 Jul 2023 09:37:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id CC22621058D; Thu, 6 Jul 2023 09:37:33 +0200 (CEST) Received: from localhost (10.201.22.9) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 6 Jul 2023 09:37:33 +0200 From: Thomas BOURGOIN <thomas.bourgoin@foss.st.com> To: Thomas BOURGOIN <thomas.bourgoin@foss.st.com>, Herbert Xu <herbert@gondor.apana.org.au>, "David S . Miller" <davem@davemloft.net>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Lionel Debieve <lionel.debieve@foss.st.com>, Linus Walleij <linus.walleij@linaro.org> CC: <linux-crypto@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 0/7] Support of HASH on STM32MP13 Date: Thu, 6 Jul 2023 09:37:12 +0200 Message-ID: <20230706073719.1156288-1-thomas.bourgoin@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.22.9] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-06_04,2023-07-06_01,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770657279121485696?= X-GMAIL-MSGID: =?utf-8?q?1770657279121485696?= |
Series |
Support of HASH on STM32MP13
|
|
Message
Thomas Bourgoin
July 6, 2023, 7:37 a.m. UTC
From: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
The STM32MP13 platform introduces a new version of the IP HASH.
This version of the IP support SHA1, SHA2, SHA3 algorithms and HMAC.
This serie also add some fixes when using the DMA to feed data to the IP.
1. Add new YAML compatible st,stm32mp13-hash.
2. Update driver to support SHA2, SHA3 algorithms for the compatible
st,stm32mp13-hash.
3. Argument bufcnt is unused in function stm32_hash_write_ctrl. Removes it
to simplify the declaration of the function.
4-7. DMA fixes
Lionel Debieve (1):
dt-bindings: crypto: add new compatible for stm32-hash
Thomas Bourgoin (6):
crypto: stm32 - add new algorithms support
crypto: stm32 - remove bufcnt in stm32_hash_write_ctrl.
crypto: stm32 - fix loop iterating through scatterlist for DMA
crypto: stm32 - check request size and scatterlist size when using
DMA.
crypto: stm32 - fix MDMAT condition
crypto: stm32 - remove flag HASH_FLAGS_DMA_READY
.../bindings/crypto/st,stm32-hash.yaml | 1 +
drivers/crypto/stm32/Kconfig | 2 +
drivers/crypto/stm32/stm32-hash.c | 710 ++++++++++++++----
3 files changed, 566 insertions(+), 147 deletions(-)