From patchwork Sun Dec 17 08:28:59 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: 122173 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1514442qgn; Sun, 17 Dec 2017 00:30:04 -0800 (PST) X-Google-Smtp-Source: ACJfBotFnI7/rEh1jV1wLY0D9th/xqJXEwFK6xdsjC9KSHkdqXnAx7tC1QhlIJkHNIlvgtKiEudg X-Received: by 10.98.254.1 with SMTP id z1mr18430662pfh.24.1513499404656; Sun, 17 Dec 2017 00:30:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513499404; cv=none; d=google.com; s=arc-20160816; b=OxElsp0iXv/Ow1dI1VUCkRy+ZSWnD3dTzYLvL5CWRxDBf49hgeLDqa0ttgRl0yR3Jg 2oLn/8bAkoPk1KG8ALAJ2Dxvo5HKMxXQ6dnzaXtLUxoPP7qNl1KhSVpHYaTIeBMMWtLS 3Zxh0jbaZGSp+g/LZLpgg49ExxElcc5jo3Gz++/p7SP8fqsLuJIyD8ujJjjMzSpiBU/X bocubM1Ns8cjejnurn+hKFnofYVjDfanK6B6xtKwwNesv+NmQVz/XBWw7jU2jyqMbN8h vCn1e1gth8Aqwwo2rgaT/HkqIqtlb7FVwKtA7dIed1x8HkMtqzOjpU7C/BwlE8xrAlqE Rq3A== 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=G8tifJZy5WORzbpvni1wU9BxHyx5LfFJPbxH8Bqgx0U=; b=cCHj9o5K5+6OB3itAs3KDXC/poQCPMXm5lcBqJjhqJX2UwWj6l5SEXTVraOepV43Wj RtKV88wvQFRtB394tWxYfWrZ2EKN9bcTTfl1W9Quq/use0zFUAGErfVBSZhMuyPiDGBj 0TwjuPl27LgE9zg4WA+CSkMpWKeflOkE27IkxtN8hTOpnZBEuk+uMnIUVAPjmq9b8mLy AHaicxL0AvZ72MYXX4JXtJqSPhrJF98Mb9mkrNbfc997IiUR0CpxTvt2L0EzLFDj69Yt TWq2ffECssSZSQCVgb4ne4pp4QDR0O7V1s9i7UCWoSG1D7KJ3voLl2HIf6eQTWNbJS0D mnig== 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 v85si6905475pgb.584.2017.12.17.00.30.04; Sun, 17 Dec 2017 00:30:04 -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 S1751172AbdLQIaC (ORCPT + 1 other); Sun, 17 Dec 2017 03:30:02 -0500 Received: from foss.arm.com ([217.140.101.70]:40894 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864AbdLQIaC (ORCPT ); Sun, 17 Dec 2017 03:30:02 -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 EBEF11435; Sun, 17 Dec 2017 00:30:01 -0800 (PST) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 213E53F24A; Sun, 17 Dec 2017 00:29:59 -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 v2 0/6] crypto: tcrypt: fix and add multi buf speed tests Date: Sun, 17 Dec 2017 08:28:59 +0000 Message-Id: <1513499346-9047-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. Signed-off-by: Gilad Ben-Yossef Changes from v1: - re-spin on top of latest cryptodev 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 | 1079 +++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 975 insertions(+), 104 deletions(-) -- 2.7.4