Skip to content

Commit 915e4e8

Browse files
Jonathan Cameronherbertx
authored andcommitted
crypto: hisilicon - SEC security accelerator driver
This accelerator is found inside hisilicon hip06 and hip07 SoCs. Each instance provides a number of queues which feed a different number of backend acceleration units. The queues are operating in an out of order mode in the interests of throughput. The silicon does not do tracking of dependencies between multiple 'messages' or update of the IVs as appropriate for training. Hence where relevant we need to do this in software. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 778bd99 commit 915e4e8

8 files changed

Lines changed: 2895 additions & 0 deletions

File tree

‎drivers/crypto/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,4 +759,6 @@ config CRYPTO_DEV_CCREE
759759
cryptographic operations on the system REE.
760760
If unsure say Y.
761761

762+
source "drivers/crypto/hisilicon/Kconfig"
763+
762764
endif # CRYPTO_HW

‎drivers/crypto/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ obj-$(CONFIG_CRYPTO_DEV_VMX) += vmx/
4646
obj-$(CONFIG_CRYPTO_DEV_BCM_SPU) += bcm/
4747
obj-$(CONFIG_CRYPTO_DEV_SAFEXCEL) += inside-secure/
4848
obj-$(CONFIG_CRYPTO_DEV_ARTPEC6) += axis/
49+
obj-y += hisilicon/

‎drivers/crypto/hisilicon/Kconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
3+
config CRYPTO_DEV_HISI_SEC
4+
tristate "Support for Hisilicon SEC crypto block cipher accelerator"
5+
select CRYPTO_BLKCIPHER
6+
select CRYPTO_ALGAPI
7+
select SG_SPLIT
8+
depends on ARM64 || COMPILE_TEST
9+
depends on HAS_IOMEM
10+
help
11+
Support for Hisilicon SEC Engine in Hip06 and Hip07
12+
13+
To compile this as a module, choose M here: the module
14+
will be called hisi_sec.

‎drivers/crypto/hisilicon/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_CRYPTO_DEV_HISI_SEC) += sec/
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: GPL-2.0
2+
obj-$(CONFIG_CRYPTO_DEV_HISI_SEC) += hisi_sec.o
3+
hisi_sec-y = sec_algs.o sec_drv.o

0 commit comments

Comments
 (0)