From patchwork Thu Nov 30 10:09:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 120091 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp468614qgn; Thu, 30 Nov 2017 02:09:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMbrWmHIV+TytK0W7+xEpfpOEZLvjzobald5UCIJnpXj4ZjjPp+/72RH78tS9lXw3u0CG/OV X-Received: by 10.99.155.9 with SMTP id r9mr1900976pgd.202.1512036583724; Thu, 30 Nov 2017 02:09:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512036583; cv=none; d=google.com; s=arc-20160816; b=Q8fhnOh9ug1wsv3iaeLrtjuGSbVJEE2U463g58F/t1F/nwd6ELCMNVo6A0CJdK/DV1 vEo0siWro/O+S2uR2DQlNf9zqao67em8PDA5SGAR+wCjZ2Aq0NUtRrajtVdOROs+7RVB bSnlBBnkGoleTVNbKVYs/2z9tZAnKzaHmZZlHL7/O82gkLCuCyhlm49sLJryl+N4rJwm rJaGEPPbSkXNaN+4N88cFRrCf7zlMabXHiFryno5PvKr8lT8AZiVRc9MyveAHd/DTFHR T/pYwT461/NxsehoQtx0WAUfsRJdPmMkPGE0IQWY84EGUgBLSuWE+m0Ue9OtyVrDVxYu vqUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=aARH6yb+PpTiTl+2ar4SqGtbuD5N70oELJ2Jzwx9BMg=; b=zYiNdd2HgLzCC7h/9/0+whO1efPfjZlS4sqQcT3gtQysA4ER9O5W1BOLEX5gPRP7j4 riAkeY5QbLV5pvWj4c9D3PVgsdj6yY+Txcn3eEy3TBowJfu1OmvN+FJFEo200jq/VmPI ropVGqLN9Fdly85oRg/UpKTv1bKvu8rDcDAsbs87+T9x+0D++eNzM1Haj5750RO/oO0S Mx+Mm8goo1asRGNN5GFQbwitvBHgUPhhR+bCGuayNjUjQIzKJAFD25ENYTrz8aC8v2Ns ravD/pZuZc/tZfmOndEZT0knEI89x8BiHymdndQL0uGhRm9YRLykD6nrXsh9a+ppgXKb 4gsw== 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 w15si2761868pgc.761.2017.11.30.02.09.43; Thu, 30 Nov 2017 02:09:43 -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 S1750891AbdK3KJm (ORCPT + 1 other); Thu, 30 Nov 2017 05:09:42 -0500 Received: from foss.arm.com ([217.140.101.70]:50188 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbdK3KJl (ORCPT ); Thu, 30 Nov 2017 05:09:41 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7EBBA1435; Thu, 30 Nov 2017 02:09:41 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.154]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1FE8C3F246; Thu, 30 Nov 2017 02:09:39 -0800 (PST) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] crypto: tcrypt: fix and add multi buf speed tests Date: Thu, 30 Nov 2017 10:09:26 +0000 Message-Id: <1512036574-26665-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The performance of some crypto tfm providers is affected by the amount of parallelism possible with the processing. We already had some support for speed test of multiple concurrent requests, dubbed multi buffer, in ahash speed tests. This patch set extends said support and add similar support for skcipher and AEAD, as well as fixes some odd bugs discovered along the way. It is noted that it is possible to consolidate some of the none multi buffer speed test code better, but given that tcrypt as a whole is a developer testing harness rather than production code, the value of this activity seems questionable. Do let me know if you disagree. The patch set is built on top of Robert Baronescu's patch titled "crypto: tcrypt - fix S/G table for test_aead_speed()" which was posted on the list, as without it the AEAD tests fails. Gilad Ben-Yossef (6): crypto: tcrypt: use multi buf for ahash mb test crypto: tcrypt: fix AEAD decryption speed test crypto: tcrypt: allow setting num of bufs crypto: tcrypt: add multi buf ahash jiffies test crypto: tcrypt: add multibuf skcipher speed test crypto: tcrypt: add multibuf aead speed test crypto/tcrypt.c | 1074 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 973 insertions(+), 101 deletions(-) -- 2.7.4