Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1946840ybf; Sun, 1 Mar 2020 22:19:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vsA/6teNpUev90ov/BifsBijEbsktlZahtZkJMGthHoGW5ON6U+NEu+RgEqXYgVyeI5hHmw X-Received: by 2002:a05:6830:1e46:: with SMTP id e6mr1355570otj.257.1583129964580; Sun, 01 Mar 2020 22:19:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583129964; cv=none; d=google.com; s=arc-20160816; b=E+DWly0YtFZlVFZvMGhE9e5+en+3bF1oHhBWQIn+cuSAGlkgOUYObFz7t2mNDS7YS8 F8O21k3SxZGJyJ9r2CkmOB/AvVJb61bJo9H8rWBPFAN3sLn4Hq1XmMhjBwW85CZOfgaj USvfIa+Y7dYU6+a47h6E64wkZNBTzHbaPWUAzKBGiHgkgF+z/S8Ds9xY2KqwCg2P541f Rt9akeco+sU32/+jCPdM74ou650x/kGYhXPL1Ed2nNOqbU6XLofEKS9QFjgBU4LodsVG T4sICqv5hBX8t2iWcuFIe6xGuFD/ZYooVlXAXc8C5G91+2+MTtLKCEvkSTEsuVHtXruS KLdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=F3tJX2yUWM+RThLIrGD8kYPwqHoOiyxAoiO8uaG8Y+c=; b=fzRm3lgv8L9HRq1/GdbHa1oqXhaVeXDP8lSkeTgVuel63dV975v6gDpCkncra9vqf6 EUBS7qCmkwj0HUNmWjqhZfBDhiFiM7rCkn035y5w9d/lJukoA7sACk02IOQLaoA4bd6O J9YvfL9uFFIIJFX+ZnHGKp/i5UEBg7Z6PG6+l+CTkkl17uitkpptdynXD7v1bnVRcLVR /BnwN1ESiJ11/dYktRRAdfNQyZH4OZW209d7LmglPHj9cblVhVI0HZ4Wc3ZyMelFSHgT 913UquI44sz8FnHlGDgvOSLHNL3VgHgj6dMQ84qXzTGvoxSI6EFMvUXgPyaiIahTKzfw hAYw== 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 s128si5743099oig.204.2020.03.01.22.19.10; Sun, 01 Mar 2020 22:19:24 -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 S1726300AbgCBGTG (ORCPT + 99 others); Mon, 2 Mar 2020 01:19:06 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:35924 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726052AbgCBGTG (ORCPT ); Mon, 2 Mar 2020 01:19:06 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 69CFF2287A6DDC4D844B; Mon, 2 Mar 2020 14:18:57 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Mon, 2 Mar 2020 14:18:50 +0800 From: Zaibo Xu To: , CC: , , , , , , , , , Subject: [PATCH v2 0/5] crypto: hisilicon - Improve SEC performance Date: Mon, 2 Mar 2020 14:15:11 +0800 Message-ID: <1583129716-28382-1-git-send-email-xuzaibo@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: liulongfang Improve SEC throughput by allocating a workqueue for each device instead of one workqueue for all SEC devices. What's more, when IOMMU translation is turned on, the plat buffer (pbuffer) will be reserved for small packets (<512Bytes) to which small packets are copied. This can avoid DMA mapping on user small packets and improve performance. This series is based on: git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git Changes v1 -> v2: - Split pbuf patch into two patches. - Move 'use_pbuf' from 'qp_ctx' to TFM request. - Misc fixes on coding style. Shukun Tan (1): crypto: hisilicon - Use one workqueue per qm instead of per qp liulongfang (3): crypto: hisilicon/sec2 - Add iommu status check crypto: hisilicon/sec2 - Update IV and MAC operation crypto: hisilicon/sec2 - Add pbuffer mode for SEC driver yekai13 (1): crypto: hisilicon/sec2 - Add workqueue for SEC driver. drivers/crypto/hisilicon/qm.c | 38 ++--- drivers/crypto/hisilicon/qm.h | 5 +- drivers/crypto/hisilicon/sec2/sec.h | 7 + drivers/crypto/hisilicon/sec2/sec_crypto.c | 242 ++++++++++++++++++++++++----- drivers/crypto/hisilicon/sec2/sec_main.c | 45 +++++- 5 files changed, 274 insertions(+), 63 deletions(-) -- 2.8.1