patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Ali Alnubani <alialnu@nvidia.com>
To: "Trahe, Fiona" <fiona.trahe@intel.com>,
	Luca Boccassi <bluca@debian.org>,
	 "Kusztal, ArkadiuszX" <arkadiuszx.kusztal@intel.com>
Cc: "stable@dpdk.org" <stable@dpdk.org>
Subject: Re: [dpdk-stable] [19.11 4/4] crypto/qat: add minimum enq threshold
Date: Sun, 30 Aug 2020 11:47:21 +0000	[thread overview]
Message-ID: <BN6PR12MB1283D931FF158DE9D3FD8AC9DA500@BN6PR12MB1283.namprd12.prod.outlook.com> (raw)
In-Reply-To: <SN6PR11MB2880316330C5894A4FB41BE2E4490@SN6PR11MB2880.namprd11.prod.outlook.com>

Hi,

> -----Original Message-----
> From: stable <stable-bounces@dpdk.org> On Behalf Of Trahe, Fiona
> Sent: Friday, August 7, 2020 6:24 PM
> To: Luca Boccassi <bluca@debian.org>; Kusztal, ArkadiuszX
> <arkadiuszx.kusztal@intel.com>
> Cc: stable@dpdk.org
> Subject: Re: [dpdk-stable] [19.11 4/4] crypto/qat: add minimum enq
> threshold
> 
> Thanks Luca
> 
> > -----Original Message-----
> > From: Luca Boccassi <bluca@debian.org>
> > Sent: Friday, August 7, 2020 3:53 PM
> > To: Kusztal, ArkadiuszX <arkadiuszx.kusztal@intel.com>; Trahe, Fiona
> > <fiona.trahe@intel.com>
> > Cc: stable@dpdk.org
> > Subject: Re: [dpdk-stable] [19.11 4/4] crypto/qat: add minimum enq
> > threshold
> >
> > On Fri, 2020-08-07 at 14:57 +0200, Arek Kusztal wrote:
> > > [ upstream commit 47c3f7a41a26c9943f9804691d03828b2ce09f40 ]
> > >
> > > This patch adds minimum enqueue threshold to Intel QuickAssist
> > > Technology PMD.
> > > It is an optimisation, configured by a command line option, which
> > > can be used to reduce MMIO write occurrences.
> > >
> > > Cc: stable@dpdk.org
> > >
> > > Signed-off-by: Fiona Trahe <fiona.trahe@intel.com>
> > > Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
> > > ---
> > >  doc/guides/cryptodevs/qat.rst       | 18 +++++++
> > >  drivers/common/qat/qat_common.c     |  3 ++
> > >  drivers/common/qat/qat_common.h     |  3 ++
> > >  drivers/common/qat/qat_device.c     | 99
> ++++++++++++++++++++++++++++++++-----
> > >  drivers/common/qat/qat_device.h     | 22 +++++++--
> > >  drivers/common/qat/qat_qp.c         | 10 ++++
> > >  drivers/common/qat/qat_qp.h         |  3 ++
> > >  drivers/compress/qat/qat_comp_pmd.c | 14 +++++-
> > > drivers/compress/qat/qat_comp_pmd.h |  4 +-
> > >  drivers/crypto/qat/qat_asym_pmd.c   | 14 +++++-
> > >  drivers/crypto/qat/qat_asym_pmd.h   |  4 +-
> > >  drivers/crypto/qat/qat_sym_pmd.c    | 14 +++++-
> > >  drivers/crypto/qat/qat_sym_pmd.h    |  4 +-
> > >  13 files changed, 190 insertions(+), 22 deletions(-)
> > >
> > > diff --git a/doc/guides/cryptodevs/qat.rst
> > > b/doc/guides/cryptodevs/qat.rst index 5135703..aa3cdcf 100644
> > > --- a/doc/guides/cryptodevs/qat.rst
> > > +++ b/doc/guides/cryptodevs/qat.rst
> > > @@ -273,6 +273,24 @@ allocated while for GEN1 devices, 12 buffers
> > > are allocated, plus 1472 bytes
> > over
> > >  	larger than the input size).
> > >
> > >
> > > +Running QAT PMD with minimum threshold for burst size
> > > +~~~~~~~~~~~~~~~~~~~~~~~~
> > > +
> > > +If only a small number or packets can be enqueued. Each enqueue
> causes an expensive MMIO write.
> > > +These MMIO write occurrences can be optimised by setting any of the
> > > +following parameters
> > > +- qat_sym_enq_threshold
> > > +- qat_asym_enq_threshold
> > > +- qat_comp_enq_threshold
> > > +When any of these parameters is set rte_cryptodev_enqueue_burst
> > > +function will return 0 (thereby avoiding an MMIO) if the device is
> > > +congested and number of packets possible to enqueue is smaller.
> > > +To use this feature the user must set the parameter on process start as
> a device additional parameter:
> > > + .example: '-w
> 03:01.1,qat_sym_enq_threshold=32,qat_comp_enq_threshold=16'
> > > +All parameters can be used with the same device regardless of
> > > +order. Parameters are separated by comma. When the same parameter
> > > +is used more than once first occurrence of the parameter is used.
> > > +Maximum threshold that can be set is 32.
> > > +
> > >  Device and driver naming
> > >  ~~~~~~~~~~~~~~~~~~~~~~~
> >
> > Normally I wouldn't accept a patch that adds new command line
> > features, but given it's restricted to a single PMD _and_ the feature
> > is present in the first short term release after 19.11 (20.02) thus
> > allowing non- breaking upgrades, I'll merge the series.
> >
> > --
> > Kind regards,
> > Luca Boccassi

This change is causing a warning when building the html guides:

"""
$ make doc-guides-html > /dev/null

/tmp/dpdk-stable/doc/guides/cryptodevs/qat.rst:277: WARNING: Title underline too short.

Running QAT PMD with minimum threshold for burst size
~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/dpdk-stable/doc/guides/cryptodevs/qat.rst:277: WARNING: Title underline too short.

Running QAT PMD with minimum threshold for burst size
~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/dpdk-stable/doc/guides/cryptodevs/qat.rst:288: WARNING: Unexpected indentation.
/tmp/dpdk-stable/doc/guides/cryptodevs/qat.rst:289: WARNING: Block quote ends without a blank line; unexpected unindent.
"""

Reproduces on both Ubuntu 18.04 LTS with sphinx-build 1.6.7, and Ubuntu 20.04 with sphinx-build 1.8.5.

Regards,
Ali

      reply	other threads:[~2020-08-30 14:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-07 12:56 [dpdk-stable] [19.11 1/4] common/qat: remove tail write coalescing Arek Kusztal
2020-08-07 12:56 ` [dpdk-stable] [19.11 2/4] common/qat: move max inflights param into qp Arek Kusztal
2020-08-07 12:57 ` [dpdk-stable] [19.11 3/4] common/qat: support dual threads for enqueue/dequeue Arek Kusztal
2020-08-07 12:57 ` [dpdk-stable] [19.11 4/4] crypto/qat: add minimum enq threshold Arek Kusztal
2020-08-07 14:53   ` Luca Boccassi
2020-08-07 15:24     ` Trahe, Fiona
2020-08-30 11:47       ` Ali Alnubani [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BN6PR12MB1283D931FF158DE9D3FD8AC9DA500@BN6PR12MB1283.namprd12.prod.outlook.com \
    --to=alialnu@nvidia.com \
    --cc=arkadiuszx.kusztal@intel.com \
    --cc=bluca@debian.org \
    --cc=fiona.trahe@intel.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).