From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D08C0C433E0 for ; Fri, 22 May 2020 14:13:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A558E22226 for ; Fri, 22 May 2020 14:13:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729789AbgEVONr (ORCPT ); Fri, 22 May 2020 10:13:47 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:39538 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729399AbgEVONq (ORCPT ); Fri, 22 May 2020 10:13:46 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jc8QD-0008Fn-G8; Sat, 23 May 2020 00:13:14 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 23 May 2020 00:13:13 +1000 Date: Sat, 23 May 2020 00:13:13 +1000 From: Herbert Xu To: Nicolas Toromanoff Cc: "David S . Miller" , Maxime Coquelin , Alexandre Torgue , linux-crypto@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/5] STM32 CRC update Message-ID: <20200522141313.GA859@gondor.apana.org.au> References: <20200512141113.18972-1-nicolas.toromanoff@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200512141113.18972-1-nicolas.toromanoff@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, May 12, 2020 at 04:11:08PM +0200, Nicolas Toromanoff wrote: > This set of patches update the STM32 CRC driver. > It contains bug fix. > > First fixes issue if we enable STM32 CRC32 hardware accelerator with > ext4 (with metadata-chksum enable) and other fs that use same direct > access to update crc32 API without previous init. > Second fixes some issues raise by the extra self-test. > Third fixes wrong hw usage if there is multiple IP on the SOC. > Forth fixes "sleep while atomic" in tcrypt test, and some other places > (ext4) > Last fixes concurrent accesses. As state is saved in the hardware cell > and not in stack as other CRC32 drivers, we need to create atomic > section to protect concurrent CRC32 calculus. > > This patch series applies to cryptodev/master. > > Nicolas Toromanoff (5): > crypto: stm32/crc: fix ext4 chksum BUG_ON() > crypto: stm32/crc: fix run-time self test issue. > crypto: stm32/crc: fix multi-instance > crypto: stm32/crc: don't sleep in runtime pm > crypto: stm32/crc: protect from concurrent accesses > > drivers/crypto/stm32/stm32-crc32.c | 230 ++++++++++++++++++++--------- > 1 file changed, 161 insertions(+), 69 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B4C2C433DF for ; Fri, 22 May 2020 14:13:53 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id A4F9222226 for ; Fri, 22 May 2020 14:13:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Guv7xHUk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4F9222226 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VZgRHa6CIokKfocTeLM69o0QVS1mXbsbmBBc/EQlztQ=; b=Guv7xHUkd/ZY3k joeAjftas5puipHj/La9ILLuJRSv3o7cgrn1esZ4TEnjlVQQL0aEwQwDbjQEWMZCVOLmuq3TjS/Sc VXtpnGUARW7Na3UORySFCwVRW2J8prT1B5j0qvfIcC9DEwp3PDLqXNx37LFNtBcvLvtBRi/tU1UtV Uwf0MYwaoHh+HXLWL53raOixjuWNdNPYt2h9j5TpgT9VvJgM80xC+pMBP6Por5WAXNCWWwYBrLvSc xuHG4Gq1xOFjtGvAg98UvGTquQatKe+EVVk3BXNaBvwgLniBxczbLPDRDfFGz5JgcDCusM0TRdPCY CtGytHAwdpPfCyVvw6vA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jc8Qq-00072H-AC; Fri, 22 May 2020 14:13:52 +0000 Received: from helcar.hmeau.com ([216.24.177.18] helo=fornost.hmeau.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jc8Qm-00070r-Ot for linux-arm-kernel@lists.infradead.org; Fri, 22 May 2020 14:13:50 +0000 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jc8QD-0008Fn-G8; Sat, 23 May 2020 00:13:14 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 23 May 2020 00:13:13 +1000 Date: Sat, 23 May 2020 00:13:13 +1000 From: Herbert Xu To: Nicolas Toromanoff Subject: Re: [PATCH 0/5] STM32 CRC update Message-ID: <20200522141313.GA859@gondor.apana.org.au> References: <20200512141113.18972-1-nicolas.toromanoff@st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200512141113.18972-1-nicolas.toromanoff@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200522_071348_807625_C3BE5AB2 X-CRM114-Status: GOOD ( 11.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , linux-kernel@vger.kernel.org, "David S . Miller" , linux-crypto@vger.kernel.org, Maxime Coquelin , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, May 12, 2020 at 04:11:08PM +0200, Nicolas Toromanoff wrote: > This set of patches update the STM32 CRC driver. > It contains bug fix. > > First fixes issue if we enable STM32 CRC32 hardware accelerator with > ext4 (with metadata-chksum enable) and other fs that use same direct > access to update crc32 API without previous init. > Second fixes some issues raise by the extra self-test. > Third fixes wrong hw usage if there is multiple IP on the SOC. > Forth fixes "sleep while atomic" in tcrypt test, and some other places > (ext4) > Last fixes concurrent accesses. As state is saved in the hardware cell > and not in stack as other CRC32 drivers, we need to create atomic > section to protect concurrent CRC32 calculus. > > This patch series applies to cryptodev/master. > > Nicolas Toromanoff (5): > crypto: stm32/crc: fix ext4 chksum BUG_ON() > crypto: stm32/crc: fix run-time self test issue. > crypto: stm32/crc: fix multi-instance > crypto: stm32/crc: don't sleep in runtime pm > crypto: stm32/crc: protect from concurrent accesses > > drivers/crypto/stm32/stm32-crc32.c | 230 ++++++++++++++++++++--------- > 1 file changed, 161 insertions(+), 69 deletions(-) All applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel