Message ID | 20230706073719.1156288-1-thomas.bourgoin@foss.st.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4D414EB64DD for <linux-arm-kernel@archiver.kernel.org>; Thu, 6 Jul 2023 07:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dtpw36wSZ8+S6FLo9VR5r4k3N2BU+Y6JZl+H4ZpuK2E=; b=gwV0THT69lWOFl fFQGWLieq8b3EB5dVhHed+/tBKaHabj479qfJPTDm+MgywJidizekPl3zBeDKb+aNZ2FObLdYHV16 S9p9CwOiP7oJcQOzvSHUhybhXagtZwhXxDQPoRqSOPjyihhWNMz86DLOVqDTy37olwWLet+77iNe0 68wvMpFD5RMTroeodO3WD+EGpvRikDSnKioFhPgHJ5FGFs/4NUa+sMoNUQ6rjrJNmtoDtKEnC6Ce4 Ife+JkZpIakt2TWZFSYtMUPqTZGKLQuA23K05DOvI6f/gdzgzgGxtLZxRMZBTIYgTCwRnbpN9tubt zCb/EQscVX5IIY/pF9fg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHJZF-000ojE-1p; Thu, 06 Jul 2023 07:38:21 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHJZC-000oh8-37 for linux-arm-kernel@lists.infradead.org; Thu, 06 Jul 2023 07:38:20 +0000 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230706_003819_301913_47D31881 X-CRM114-Status: GOOD ( 15.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Support of HASH on STM32MP13
|
expand
|
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(-)