Return-Path: 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 A5561C61DA4 for ; Thu, 9 Mar 2023 22:20:50 +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:In-Reply-To:References: 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: List-Owner; bh=Itcc08/OCi749udK5asHDyE9o9eGfpAXIk4HNtlukr8=; b=Y7PGxzOSUir5+y lEPzy3+vZCwMlAXcvDws84sC08joHbmbKnAuUv+7l7dJP5lKLi5r3K3LSTuR1Z418VzsHwm0E82ae IMEtQdO0xPJk2CDQBTCfzVlXqZkfyjq/sBfoCNkycDFKOniZt4UQyvudJlVn/yX8d9ScPV3XLvEml JbAuyCjp7/qsZkCUwxzQnxtTwnGnBuaN/T5uiZnI2lvQg4OiC2oCjOrUF8s1IhwFTulbtrbKZLwQd 3FcRLHLAQKjki8pwqFS7Y1BtHOLxLIX7gIjkEe956B/3eQ/xuxCC2aoOgAdAT5p09p5mpvTsKOhp+ 9VBD9gK2vDe0Noek2svw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paOc7-00C96M-TK; Thu, 09 Mar 2023 22:19:55 +0000 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.85.151]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1paOc3-00C94g-Ve for linux-arm-kernel@lists.infradead.org; Thu, 09 Mar 2023 22:19:53 +0000 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-16-mytVSe0nOmGLnDgiSo5IHA-1; Thu, 09 Mar 2023 22:19:46 +0000 X-MC-Unique: mytVSe0nOmGLnDgiSo5IHA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.47; Thu, 9 Mar 2023 22:19:44 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.047; Thu, 9 Mar 2023 22:19:44 +0000 From: David Laight To: 'Linus Walleij' , Herbert Xu CC: Lionel Debieve , Li kunyu , "davem@davemloft.net" , "linux-arm-kernel@lists.infradead.org" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "mcoquelin.stm32@gmail.com" Subject: RE: [v5 PATCH 7/7] crypto: stm32 - Save and restore between each request Thread-Topic: [v5 PATCH 7/7] crypto: stm32 - Save and restore between each request Thread-Index: AQHZUlnVfe29z1dm7kSSXyVRszx6pK7zBGDQ Date: Thu, 9 Mar 2023 22:19:44 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230309_141952_322225_C9FFBB92 X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Linus Walleij > Sent: 09 March 2023 07:35 ... > But actually I think the bug will never trigger, because the datasheet > for the DB8500 (Ux500) says this: > > "Then the message can be sent, by writing it word per word into the > HASH_DIN register. > When a block of 512 bits, i.e. 16 words have been written, a partial > digest computation will > start upon writing the first data of the next block. The AHB bus will > be busy for 82 cycles for > SHA-1 algorithm (66 cycles for SHA-256 algorithm)." What speed clock is that? 4 or 5 extra clocks/word may (or may not) be significant. In terms of latency it may be noise compared to some PCIe reads done by hardware interrupt handlers. Some slow PCIe targets (like the fpga one we use) pretty much take 1us to handle a read cycle. David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel