Linux cryptographic layer development
 help / color / mirror / Atom feed
* [PATCH 0/4] crypto: iaa - rework the WQ selection tables
@ 2026-10-19 23:06 Vinicius Costa Gomes
  2026-10-19 23:06 ` [PATCH 1/4] crypto: iaa - carry the iaa_wq in the request Vinicius Costa Gomes
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Vinicius Costa Gomes @ 2026-10-19 23:06 UTC (permalink / raw)
  To: Kristen Accardi, Herbert Xu, David S. Miller
  Cc: linux-crypto, linux-kernel, Vinicius Costa Gomes

iaa_crypto maps each CPU to a single IAA device through a flat CPU
index, which ignores packages (where the actual IAA devices live) and
leaves other IAA devices in the package idle.

Patches 1-2 make the request carry the IAA workqueue
representation ('iaa_wq') it holds a reference on, instead of looking
it up again. Patch 3 replaces the per-CPU WQ table with per-package
tables published with RCU, and patch 4 keeps each CPU on one WQ for
decompression.

Patches 1-3 are meant more of a simplification, to make the code
easier to reason about. Patch 4 is "low hanging" optimization (because
decompressions are very fast, they benefit when the same CPU uses the
same engine). Future work will introduce more complex optimizations.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
---
Vinicius Costa Gomes (4):
      crypto: iaa - carry the iaa_wq in the request
      crypto: iaa - take the WQ from the request in the submit helpers
      crypto: iaa - use RCU per-package WQ tables
      crypto: iaa - keep each CPU on one WQ for decompression

 drivers/crypto/intel/iaa/iaa_crypto.h      |   7 -
 drivers/crypto/intel/iaa/iaa_crypto_main.c | 393 ++++++++++++-----------------
 2 files changed, 157 insertions(+), 243 deletions(-)
---
base-commit: 178aff4cf425b3fc51ff09c571fa1bfbc1eb8ea4
base-tree: git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
change-id: 20261008-iaa-crypto-wq-tables-4e5911143017

Best regards,
--  
Vinicius


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

end of thread, other threads:[~2026-11-12 22:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-19 23:06 [PATCH 0/4] crypto: iaa - rework the WQ selection tables Vinicius Costa Gomes
2026-10-19 23:06 ` [PATCH 1/4] crypto: iaa - carry the iaa_wq in the request Vinicius Costa Gomes
2026-10-19 23:06 ` [PATCH 2/4] crypto: iaa - take the WQ from the request in the submit helpers Vinicius Costa Gomes
2026-10-19 23:06 ` [PATCH 3/4] crypto: iaa - use RCU per-package WQ tables Vinicius Costa Gomes
2026-11-11 10:44   ` Herbert Xu
2026-11-12 22:34     ` Vinicius Costa Gomes
2026-10-19 23:06 ` [PATCH 4/4] crypto: iaa - keep each CPU on one WQ for decompression Vinicius Costa Gomes

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