Skip to content

crypto: zynqmp-aes-gcm: Bug fixes and aes-gcm support for Versal

Harsh Jain linux-arm-kernel linux-crypto linux-devicetree 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 1 replyIn review
  2. v115 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Rebase series to cryptodev-2.6
- Register H/W keys with gcm(paes)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14firmware: zynqmp: Move crypto API's to separate filedrivers/firmware/xilinx/Makefile drivers/firmware/xilinx/zynqmp-crypto.c drivers/firmware/xilinx/zynqmp.c +2 more+89 -630 replies
2/14crypto: zynqmp-aes-gcm: cleanup: Remove union from zynqmp_aead_drv_ctxdrivers/crypto/xilinx/zynqmp-aes-gcm.c+11 -130 replies
3/14firmware: zynqmp: Add helper API to self discovery the devicedrivers/firmware/xilinx/zynqmp-crypto.c include/linux/firmware/xlnx-zynqmp-crypto.h+50 -00 replies
4/14dt-bindings: crypto: Mark zynqmp-aes as DeprecatedDocumentation/devicetree/bindings/crypto/xlnx,zynqmp-aes.yaml Documentation/devicetree/bindings/firmware/xilinx/xlnx,zynqmp-firmware.yaml+3 -00 replies
5/14crypto: zynqmp-aes-gcm: Update probe to self discover the devicedrivers/crypto/xilinx/zynqmp-aes-gcm.c+62 -240 replies
6/14crypto: zynqmp-aes-gcm: Return linux error code instead of firmware error codedrivers/crypto/xilinx/zynqmp-aes-gcm.c+7 -70 replies
7/14crypto: zynqmp-aes-gcm: Avoid Encrypt request to fallback for authsize < 16drivers/crypto/xilinx/zynqmp-aes-gcm.c+3 -30 replies
8/14crypto: zynqmp-aes-gcm: Avoid submitting fallback requests to enginedrivers/crypto/xilinx/zynqmp-aes-gcm.c+35 -270 replies
9/14crypto: zynqmp-aes-gcm: Register H/W key support with paesdrivers/crypto/xilinx/zynqmp-aes-gcm.c+204 -1000 replies
10/14crypto: xilinx: Replace zynqmp prefix with xilinxdrivers/crypto/xilinx/zynqmp-aes-gcm.c+69 -710 replies
11/14crypto: zynqmp-aes-gcm: Change coherent DMA to streaming DMA APIdrivers/crypto/xilinx/zynqmp-aes-gcm.c+58 -360 replies
12/14firmware: xilinx: Add firmware API's to support aes-gcm in Versal devicedrivers/firmware/xilinx/zynqmp-crypto.c include/linux/firmware/xlnx-zynqmp-crypto.h+224 -30 replies
13/14crypto: xilinx: cleanup: Remove un-necessary typecast operationdrivers/crypto/xilinx/zynqmp-aes-gcm.c+3 -60 replies
14/14crypto: xilinx: Add gcm(aes) support for AMD/Xilinx Versal devicedrivers/crypto/xilinx/zynqmp-aes-gcm.c+421 -90 replies

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/14
2/14
3/14
4/14R-b
5/14
6/14
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/14] crypto: zynqmp-aes-gcm: Bug fixes and aes-gcm support for Versal

This series includes bug fixes and adds aes-gcm support for Versal device. It is based on cryptodev-2.6 tree.

Changes in V2:
- Rebase series to cryptodev-2.6
- Register H/W keys with gcm(paes)

Harsh Jain (14):
firmware: zynqmp: Move crypto API's to separate file
crypto: zynqmp-aes-gcm: cleanup: Remove union from zynqmp_aead_drv_ctx
firmware: zynqmp: Add helper API to self discovery the device
dt-bindings: crypto: Mark zynqmp-aes as Deprecated
crypto: zynqmp-aes-gcm: Update probe to self discover the device
crypto: zynqmp-aes-gcm: Return linux error code instead of firmware
error code
crypto: zynqmp-aes-gcm: Avoid Encrypt request to fallback for authsize

    < 16

crypto: zynqmp-aes-gcm: Avoid submitting fallback requests to engine
crypto: zynqmp-aes-gcm: Register H/W key support with paes
crypto: xilinx: Replace zynqmp prefix with xilinx
crypto: zynqmp-aes-gcm: Change coherent DMA to streaming DMA API
firmware: xilinx: Add firmware API's to support aes-gcm in Versal
device
crypto: xilinx: cleanup: Remove un-necessary typecast operation
crypto: xilinx: Add gcm(aes) support for AMD/Xilinx Versal device

 .../bindings/crypto/xlnx,zynqmp-aes.yaml      |    2 +
 .../firmware/xilinx/xlnx,zynqmp-firmware.yaml |    1 +
 drivers/crypto/xilinx/zynqmp-aes-gcm.c        | 1007 +++++++++++++----
 drivers/firmware/xilinx/Makefile              |    2 +-
 drivers/firmware/xilinx/zynqmp-crypto.c       |  239 ++++
 drivers/firmware/xilinx/zynqmp.c              |   49 -
 include/linux/firmware/xlnx-zynqmp-crypto.h   |  119 ++
 include/linux/firmware/xlnx-zynqmp.h          |   14 +-
 8 files changed, 1155 insertions(+), 278 deletions(-)
 create mode 100644 drivers/firmware/xilinx/zynqmp-crypto.c
 create mode 100644 include/linux/firmware/xlnx-zynqmp-crypto.h
Signature · 1 line
2.49.1