public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] crypto: talitos - fix several issues in the Freescale talitos crypto driver
@ 2026-05-04 15:38 Paul Louvel
  2026-05-04 15:38 ` [PATCH 1/4] crypto: talitos - use hardware facilities for large ahash requests Paul Louvel
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Paul Louvel @ 2026-05-04 15:38 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Paolo Abeni, David Howells,
	Kim Phillips
  Cc: linux-crypto, linux-kernel, Thomas Petazzoni, Herve Codina,
	Paul Louvel, Christophe Leroy, stable

This series fixes several issues in the Freescale talitos crypto driver.

The first patch replaces the software workqueue approach introduced by
commit 655ef638a2bc ("crypto: talitos - fix SEC1 32k ahash request
limitation") to handle large requests. Depending on the SEC hardware
version, replace this approach by using facilities provided by the
hardware itself:

- On SEC1, descriptors can be chained with the Next Descriptor field.

- On SEC2, the per-channel fetch FIFO is used to submit multiple
  descriptors.

This removes the workqueue-based splitting entirely and fix the (64k -
1) byte ahash request limit on SEC2.

Patches 2-3 are cleanups that follow the first patch: a field rename for
clarity and folding a trivial wrapper function.

Patch 4 fixes an off-by-one in the submit_count initialisation that
wastes one FIFO slot.

Tested on an MPC885 SoC (SEC1 Lite), and on an MPC8321EMP SoC (SEC2).

Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
---
Paul Louvel (4):
      crypto: talitos - use hardware facilities for large ahash requests
      crypto: talitos - rename first_desc/last_desc to first_request/last_request
      crypto: talitos - remove useless wrapper
      crypto: talitos - fix invalid submit_count initial value

 drivers/crypto/talitos.c | 583 +++++++++++++++++++++++++----------------------
 drivers/crypto/talitos.h |  14 ++
 2 files changed, 322 insertions(+), 275 deletions(-)
---
base-commit: db8b9f227833e729faf44a512aa1e88a625b5ad8
change-id: 20260504-bootlin_test-7-1-rc1_sec_bugfix-13169ed07ddc

Best regards,
--  
Paul Louvel <paul.louvel@bootlin.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-05-05 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-04 15:38 [PATCH 0/4] crypto: talitos - fix several issues in the Freescale talitos crypto driver Paul Louvel
2026-05-04 15:38 ` [PATCH 1/4] crypto: talitos - use hardware facilities for large ahash requests Paul Louvel
2026-05-04 15:38 ` [PATCH 2/4] crypto: talitos - rename first_desc/last_desc to first_request/last_request Paul Louvel
2026-05-04 15:38 ` [PATCH 3/4] crypto: talitos - remove useless wrapper Paul Louvel
2026-05-04 15:38 ` [PATCH 4/4] crypto: talitos - fix invalid submit_count initial value Paul Louvel
2026-05-05 15:24 ` [PATCH 0/4] crypto: talitos - fix several issues in the Freescale talitos crypto driver Paul Louvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox