mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sahil Malhotra <sahil.malhotra@oss.nxp.com>
To: Vincent Jardin <vjardin@free.fr>
Cc: horia.geanta@nxp.com, pankaj.gupta@nxp.com,
	herbert@gondor.apana.org.au, davem@davemloft.net,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC] crypto: caam - never share the gcm and skcipher descriptors serially
Date: Mon, 16 Nov 2026 08:58:29 +0100	[thread overview]
Message-ID: <20261116075829.17672-1-sahil.malhotra@oss.nxp.com> (raw)
In-Reply-To: <avZYhjJsa6Ih7nBG@L30177.local>

Hi Vincent,

On Fri, Nov 13, 2026 at 01:23:34AM +0100, Vincent Jardin wrote:
> No, I do not have other CPUs than the LX2160 : your feedbacks with i.MX
> is welcomed.

Sure, we will run the same comparison on i.MX platforms and share the
results on this thread.

> Since SERIAL vs NEVER impacts the performance depending on the CPU and
> on the selected crypto algorithm as you suggest, the code should be more
> dynamic, instead of a single option that slows down all the other cases.
>
> How could we keep "selecting" the best one for each case ?

Agreed, it should be dynamic. But I think we first need the numbers
for each platform before choosing how to select. Depending on what they
show, the choice could be per SoC (e.g. derived from CHA_NUM_MS[DECO_NUM]),
per algorithm, or both. Picking the mechanism now would be guesswork.

To keep the numbers comparable, could you share the exact benchmark
setup you used on LX2160A (tool and command line, e.g. tcrypt mode or
openssl/cryptodev, buffer sizes, number of threads/tfms)? We will use
the same on i.MX.

Also, if possible, could you run the same on LX2160A for authenc
(e.g. authenc(hmac(sha256),cbc(aes))) and xts(aes)? They use the same
kind of shared descriptors, so it would help to see whether the gain
is specific to gcm/skcipher or not.

Thanks,
Sahil

      reply	other threads:[~2026-11-16  7:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-08 23:42 Vincent Jardin via B4 Relay
2026-11-12 10:14 ` Sahil Malhotra
2026-11-13  0:23   ` Vincent Jardin
2026-11-16  7:58     ` Sahil Malhotra [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=20261116075829.17672-1-sahil.malhotra@oss.nxp.com \
    --to=sahil.malhotra@oss.nxp.com \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=horia.geanta@nxp.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pankaj.gupta@nxp.com \
    --cc=vjardin@free.fr \
    /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

all inboxes | Powered by JetHome®