public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] Add cmd descriptor support
@ 2023-12-14 11:42 Md Sadre Alam
  2023-12-14 11:42 ` [PATCH 01/11] crypto: qce - Add support for crypto address read Md Sadre Alam
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Md Sadre Alam @ 2023-12-14 11:42 UTC (permalink / raw)
  To: thara.gopinath, herbert, davem, agross, andersson, konrad.dybcio,
	vkoul, linux-crypto, linux-arm-msm, linux-kernel, dmaengine,
	quic_srichara, quic_varada
  Cc: quic_mdalam

This series of patches will add command descriptor
support to read/write crypto engine register via
BAM/DMA

We need this support because if there is multiple EE's
(Execution Environment) accessing the same CE even with
different BAM pipe , then there will be race condition.
To avoid this race condition BAM HW having LOCK/UNLOCK 
feature on BAM pipes and this LOCK/UNLOCK will be set
via command descriptor only.

Since each EE's having their dedicated BAM pipe, BAM allows
Locking and Unlocking on BAM pipe. So if one EE's requesting
for CE5 access then that EE's first has to LOCK the BAM pipe
while setting LOCK bit on command descriptor and then access
it. After finishing the request EE's has to UNLOCK the BAM pipe
so in this way we race condition will not happen.

Md Sadre Alam (11):
  crypto: qce - Add support for crypto address read
  crypto: qce - Add bam dma support for crypto register r/w
  crypto: qce - Convert register r/w for skcipher via BAM/DMA
  crypto: qce - Convert register r/w for sha via BAM/DMA
  crypto: qce - Convert register r/w for aead via BAM/DMA
  drivers: bam_dma: Add LOCK & UNLOCK flag support
  crypto: qce - Add LOCK and UNLOCK flag support
  crypto: qce - Add support for lock aquire,lock release api.
  crypto: qce - Add support for lock/unlock in skcipher
  crypto: qce - Add support for lock/unlock in sha
  crypto: qce - Add support for lock/unlock in aead

 drivers/crypto/qce/aead.c        |  16 +++
 drivers/crypto/qce/common.c      | 144 +++++++++++++------
 drivers/crypto/qce/core.c        |   9 ++
 drivers/crypto/qce/core.h        |  12 ++
 drivers/crypto/qce/dma.c         | 238 +++++++++++++++++++++++++++++++
 drivers/crypto/qce/dma.h         |  26 +++-
 drivers/crypto/qce/sha.c         |  16 +++
 drivers/crypto/qce/skcipher.c    |  16 +++
 drivers/dma/qcom/bam_dma.c       |  10 ++
 include/linux/dma/qcom_bam_dma.h |   2 +
 10 files changed, 447 insertions(+), 42 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-02-22 11:26 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 11:42 [PATCH 00/11] Add cmd descriptor support Md Sadre Alam
2023-12-14 11:42 ` [PATCH 01/11] crypto: qce - Add support for crypto address read Md Sadre Alam
2024-02-21 18:02   ` Sricharan Ramabadhran
2023-12-14 11:42 ` [PATCH 02/11] crypto: qce - Add bam dma support for crypto register r/w Md Sadre Alam
2023-12-15  0:11   ` kernel test robot
2023-12-15  0:23   ` kernel test robot
2024-02-22 11:06   ` Sricharan Ramabadhran
2023-12-14 11:42 ` [PATCH 03/11] crypto: qce - Convert register r/w for skcipher via BAM/DMA Md Sadre Alam
2024-02-22 11:26   ` Sricharan Ramabadhran
2023-12-14 11:42 ` [PATCH 04/11] crypto: qce - Convert register r/w for sha " Md Sadre Alam
2023-12-14 11:42 ` [PATCH 05/11] crypto: qce - Convert register r/w for aead " Md Sadre Alam
2023-12-14 11:42 ` [PATCH 06/11] drivers: bam_dma: Add LOCK & UNLOCK flag support Md Sadre Alam
2023-12-14 11:42 ` [PATCH 07/11] crypto: qce - Add LOCK and " Md Sadre Alam
2023-12-14 11:42 ` [PATCH 08/11] crypto: qce - Add support for lock aquire,lock release api Md Sadre Alam
2023-12-14 11:42 ` [PATCH 09/11] crypto: qce - Add support for lock/unlock in skcipher Md Sadre Alam
2023-12-14 11:42 ` [PATCH 10/11] crypto: qce - Add support for lock/unlock in sha Md Sadre Alam
2023-12-14 11:42 ` [PATCH 11/11] crypto: qce - Add support for lock/unlock in aead Md Sadre Alam

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