All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Leonid Ravich <lravich@amazon.com>
Cc: Christoph Hellwig <hch@infradead.org>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	linux-crypto@vger.kernel.org, dm-devel@lists.linux.dev,
	linux-kernel@vger.kernel.org, davem@davemloft.net,
	ebiggers@kernel.org, agk@redhat.com, snitzer@kernel.org,
	mpatocka@redhat.com, bmarzins@redhat.com
Subject: Re: [PATCH v6 0/6] crypto: skcipher - multi-data-unit request splitting
Date: Sun, 27 Sep 2026 22:33:22 -0700	[thread overview]
Message-ID: <arn8IlMrTCEmdhy7@infradead.org> (raw)
In-Reply-To: <20260927071422.12143-1-lravich@amazon.com>

On Sun, Sep 27, 2026 at 07:14:14AM +0000, Leonid Ravich wrote:
> On Fri, Sep 25, 2026 at 02:10:47AM -0700, Christoph Hellwig wrote:
> > On Thu, Sep 24, 2026 at 07:58:40AM +0000, Leonid Ravich wrote:
> > > * No throughput *win* is claimed for software AES.  The win is for
> > >   accelerators that amortise setup across units; the software split
> > >   exists so the interface works on every existing skcipher today and
> > >   goes quiet as algorithms gain CRYPTO_ALG_REQ_SEG.
> >
> > So what is the use case?  So far all crypto driver we've seen have
> > shown to be slower than cpu.  Which one are you using that isn't?
> 
> The engine we use is out of tree, but it is not a special case.  It

It is.  Without you having an upstream stack this is a complete no-go
to start with.

> is an SoC-integrated, DMA-driven, asynchronous xts(aes) engine of the
> same class as caam, ccree, qce, hisilicon sec2, inside-secure and the
> Marvell CPT drivers already in the tree.

Pretty much all of them are broken as f***k everytime someone tried
to use them.

> For a DMA engine the scatterlist is not overhead: it is what the
> hardware consumes.  The per-sector cost it pays is the per-request
> cost, and unit_size is what removes it.

Yes, it is.  Take a look how the scatterlist duplicates information
already handled by the upper layers.  We've been through is a lot
and are moving to the dma_iova_ API because of that.


  reply	other threads:[~2026-09-28  5:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-24  7:58 [PATCH v6 0/6] crypto: skcipher - multi-data-unit request splitting Leonid Ravich
2026-09-24  7:58 ` [PATCH v6 1/6] crypto: skcipher - add per-request unit_size Leonid Ravich
2026-09-24  7:58 ` [PATCH v6 2/6] crypto: acomp - Add bit to indicate segmentation support Leonid Ravich
2026-09-24  7:58 ` [PATCH v6 3/6] crypto: skcipher - add crypto_skcipher_req_seg() helper Leonid Ravich
2026-09-24  7:58 ` [PATCH v6 4/6] crypto: skcipher - split multi-unit requests in the API layer Leonid Ravich
2026-09-24  7:58 ` [PATCH v6 5/6] crypto: testmgr - test multi-unit dispatch Leonid Ravich
2026-09-24  7:58 ` [PATCH v6 6/6] dm crypt: batch a bio segment's sectors via multi-unit requests Leonid Ravich
2026-09-25  9:10 ` [PATCH v6 0/6] crypto: skcipher - multi-data-unit request splitting Christoph Hellwig
2026-09-27  7:14   ` Leonid Ravich
2026-09-28  5:33     ` Christoph Hellwig [this message]
2026-10-02  7:47 ` Herbert Xu
2026-10-04  9:51   ` Leonid Ravich

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=arn8IlMrTCEmdhy7@infradead.org \
    --to=hch@infradead.org \
    --cc=agk@redhat.com \
    --cc=bmarzins@redhat.com \
    --cc=davem@davemloft.net \
    --cc=dm-devel@lists.linux.dev \
    --cc=ebiggers@kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lravich@amazon.com \
    --cc=mpatocka@redhat.com \
    --cc=snitzer@kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.