Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp341033ybv; Thu, 13 Feb 2020 01:21:03 -0800 (PST) X-Google-Smtp-Source: APXvYqz829favX2nITnzMnf6ooKlHdL89kkDNM21Bn65e8uFWes9a8gplZZ3Q7iR/dnXUQ2eJvDw X-Received: by 2002:a9d:6f0d:: with SMTP id n13mr12905271otq.165.1581585663159; Thu, 13 Feb 2020 01:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581585663; cv=none; d=google.com; s=arc-20160816; b=EeS867HYBm2ME4Q8CSKMF+niiPHX+vwD7TxpvQ9q0f0lhcrvey0OEof4P1vpN3A6Ql WpEcnfGERZBuCEWc+J8cJQiWgUVqFcMojWIuIawJL8DwIUSRyTvex0Ao5FAxHMeZlOdb NC8PeqR7AhgubKFT8tFt4ZDrHaFcg6mkEDCMUz75XVh+ty975i8k3nnAXdpRpuGnMIP9 QblNh40xt/fOd8ipKbJE28LNH5THLAZ5Kzu4YlkrDQEREil319TKdFdlxaF7B8qVQMe2 ReP2RqMtv2pinerYGUQwPDf7je5NpUPWPg+2lEFec24YcOp+Rg+UhqH2TLMUilPMWQq5 Lscw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=aFGWerunK0r/t6Pm6cLW4gK8Hi4vLPPGDkDH+EeLifw=; b=RzI2tQA3ybbVbfCoyLuE00d84zqteLbClAYPhWNBS0sZLtQaUrYPPIqtUEXb2k7CBF aXfmQBzG2II6ulp7yoiV8UpS5ffNufYgWsf2eg1H5kkpTsmYJNFVhWbWYeBIpnCf4acZ USca30eBYTmG3syLGzN660feEoMQvLWGbl8hM5f+1h+BOyrY1Ku178pAPZzzQnnIQzG/ uwhej7D8oROfX7TeeAbh+Rl550uflFUu6MtZmU7zz4Oqb+4M7jFcpd7OEqoAQ76AZZ4H xcuFoZrk7L7/6d8M4+NIR66LT5Y4eBdAS60HBCxhemrXVa2jmW0mTJM8o0IodzP1njc+ o5Dw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y71si969781oia.82.2020.02.13.01.20.50; Thu, 13 Feb 2020 01:21:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729586AbgBMJUr (ORCPT + 99 others); Thu, 13 Feb 2020 04:20:47 -0500 Received: from helcar.hmeau.com ([216.24.177.18]:42356 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729576AbgBMJUr (ORCPT ); Thu, 13 Feb 2020 04:20:47 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1j2Afs-00048F-K0; Thu, 13 Feb 2020 17:20:44 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1j2Afq-0006o5-V6; Thu, 13 Feb 2020 17:20:42 +0800 Date: Thu, 13 Feb 2020 17:20:42 +0800 From: Herbert Xu To: Valentin Ciocoi Radulescu Cc: "davem@davemloft.net" , Horia Geanta , "linux-crypto@vger.kernel.org" Subject: Re: [PATCH] crypto: caam/qi - optimize frame queue cleanup Message-ID: <20200213092042.5yt5unuwbcxj7o2a@gondor.apana.org.au> References: <1580480151-1299-1-git-send-email-valentin.ciocoi@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1580480151-1299-1-git-send-email-valentin.ciocoi@nxp.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jan 31, 2020 at 02:15:56PM +0000, Valentin Ciocoi Radulescu wrote: > Add reference counter incremented for each frame enqueued in CAAM > and replace unconditional sleep in empty_caam_fq() with polling the > reference counter. > > When CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y boot time on LS1043A > platform with this optimization decreases from ~1100s to ~11s. > > Signed-off-by: Valentin Ciocoi Radulescu > --- > drivers/crypto/caam/qi.c | 60 +++++++++++++++++++++++++++++++----------------- > drivers/crypto/caam/qi.h | 4 +++- > 2 files changed, 42 insertions(+), 22 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt