2020-03-05 02:11:28

by Xu Zaibo

[permalink] [raw]
Subject: [PATCH v3 0/5] crypto: hisilicon - Improve SEC performance

From: Longfang Liu <[email protected]>

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 v2 -> v3:
- Updated some comments and commit messages from Jonathan Cameron.
- Removed CPU intensive workqueue flag WQ_CPU_INTENSIVE
- Some small misc fixes.

Changes v1 -> v2:
- Split pbuf patch into two patches.
- Move 'use_pbuf' from 'qp_ctx' to TFM request.
- Misc fixes on coding style.

Longfang Liu (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

Shukun Tan (1):
crypto: hisilicon - Use one workqueue per qm instead of per qp

Ye Kai (1):
crypto: hisilicon/sec2 - Add workqueue for SEC driver.

drivers/crypto/hisilicon/qm.c | 39 ++---
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 | 51 +++++-
5 files changed, 281 insertions(+), 63 deletions(-)

--
2.8.1


2020-03-12 12:39:34

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH v3 0/5] crypto: hisilicon - Improve SEC performance

On Thu, Mar 05, 2020 at 10:06:20AM +0800, Zaibo Xu wrote:
> From: Longfang Liu <[email protected]>
>
> 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 v2 -> v3:
> - Updated some comments and commit messages from Jonathan Cameron.
> - Removed CPU intensive workqueue flag WQ_CPU_INTENSIVE
> - Some small misc fixes.
>
> Changes v1 -> v2:
> - Split pbuf patch into two patches.
> - Move 'use_pbuf' from 'qp_ctx' to TFM request.
> - Misc fixes on coding style.
>
> Longfang Liu (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
>
> Shukun Tan (1):
> crypto: hisilicon - Use one workqueue per qm instead of per qp
>
> Ye Kai (1):
> crypto: hisilicon/sec2 - Add workqueue for SEC driver.
>
> drivers/crypto/hisilicon/qm.c | 39 ++---
> 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 | 51 +++++-
> 5 files changed, 281 insertions(+), 63 deletions(-)

All applied. Thanks.
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt