Commit Graph

9 Commits

Author SHA1 Message Date
Matthew Shyu ff621c3bd8 crypto: fix race condition in aml crypto device [1/1]
PD#SWPL-138376

Problem:
When there are multiple process accessing crypto device at the same
time, some of the request might be dropped and causing process failed to
exit.

Solution:
Move mutex lock to properly protect HW operation

Verify:
S905C3

Change-Id: Ie12b1f46e87dcbbaf5df4f780711dcebc9c87e75
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2023-10-13 19:19:25 +08:00
Matthew Shyu 0f1b4f4268 crypto: add sm4 support to aml-crypto-device on S5 [1/1]
PD#SWPL-140403

Problem:
Missing SM4 support in aml-crypto-device on S5

Solution:
Add SM4 support to aml-crypto-device

Verify:
S5

Change-Id: I0933bbcefa46daa5b00bd41d1e68fc9441bd3185
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2023-09-19 20:10:22 +08:00
Doosan Baek a88ffafa68 KL/KT: Add a new seckey driver [1/1]
PD#SWPL-124965

Problem:
Need key ladder/table driver for kernel5.15
The KT driver needs to be separated from the descrambler.
New APIs are needed for the KT driver.

Solution:
Create a seckey driver.

Verify:
S5 KT/KL with DMA
T3 METACAS with Descramble
T5W

Change-Id: Id058e64f99918b66e79d24647880f999f55ca13a
Signed-off-by: Doosan Baek <doosan.baek@amlogic.com>
2023-05-31 20:54:04 -07:00
Mingyen Hung b98e17e279 Crypto: Bringup crypto driver for S5 [1/1]
PD#SWPL-108768

Problem:
Need to bringup amlogic crypto driver for s5,
kernel 5.15.

Solution:
1. Porting sm4 driver from 5.4

Verify:
1. On ax201
2. Pass crypto-test.sh s5

Change-Id: I7d9657e93d174457bf6b28ece58174ce25030b92
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2023-04-15 08:55:56 +08:00
Matthew Shyu eed49de68f crypto: enable aml crypto dts on t5m [1/1]
PD#SWPL-104759

Problem:
Bringup aml crypto on t5m

Solution:
Enable aml crypto dts on t5m

Verify:
T5M

Change-Id: I605aef6f6020924881ee2b5801beb8297611dd70
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
2022-12-30 17:18:41 +08:00
Mingyen Hung 60f55d8405 Crypto: compilation for lack of CONFIG_CRYPTO_DES [1/1]
PD#SWPL-96209

Problem:
Compilation error when CONFIG_CRYPTO_DES is disabled

Solution:
1. Strip out symbol issue by aml-crypto-dma and
that is from crypto des framework.

Verify:
1. On AN400

Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
Change-Id: I06e894ae10e55ab86c40ee7b2ebe2013c5412149
2022-10-06 19:38:06 -07:00
pengzhao.liu b946ffb848 typo: clear typo problem [1/1]
PD#SWPL-89627

Problem:
clear typo problem

Solution:
clear typo problem

Verify:
s4d

Signed-off-by: pengzhao.liu <pengzhao.liu@amlogic.com>
Change-Id: I9121c9d4b54df9b9a7c244182693e0fd616f5a9e
2022-09-07 20:06:45 +08:00
qinglin.li e396a77753 printk: printk optimization [1/1]
PD#SWPL-70486

Problem:
printk optimization

Solution:
printk optimization

Verify:
c2

Signed-off-by: qinglin.li <qinglin.li@amlogic.com>
Change-Id: I02c3f778e95d7a95d9699b7c2b65be12caa3bb71
2022-03-22 01:34:59 -07:00
Mingyen Hung 1e8b4c307a crypto: bringup amlogic crypto driver [1/1]
PD#SWPL-71764

Problem:
Need to bringup amlogic crypto driver for
kernel 5.15.

Solution:
1. Bringup amlogic crypto driver
2. Enable SHA1, DES, and ECB if they are
disabled by default.
3. Merged from 5.4 and 5.10

Verify:
1. Built-in driver on C2_AF400
2. GKI driver on S4D AP_222

Change-Id: I62487e615930070233c3a6b4a41b66edddf6f783
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
2022-03-03 04:13:47 -07:00