crypto: fix and enable aes dma on G12B [1/1]
authorMatthew Shyu <matthew.shyu@amlogic.com>
Mon, 17 Dec 2018 08:37:19 +0000 (16:37 +0800)
committerMatthew Shyu <matthew.shyu@amlogic.com>
Thu, 14 Mar 2019 02:54:20 +0000 (18:54 -0800)
commit28018bca110dab035f4fedef3da3076b8ccb1328
treeb18eed502472d1692091453c1557559ca123d754
parentb88a0a919068720e3b20907ee395c981d79fb5f3
crypto: fix and enable aes dma on G12B [1/1]

PD# SWPL-4823

Problem:
1. After stack optimization, stack memory cannot be
mapped as dma buffers and thus causing crypto dma failed to
generate correct result.
2. crypto dma was not enabled on G12B

Solution:
1. Move key_iv buffer from stack to memory provided by kzalloc
2. Enable crypto dma on G12B
3. Replace module_param with debugfs
4. Replace pr_err with dev_err

Verify:
verified on G12B

Change-Id: I6de682e3d1fc141f8c6179c7d91f9b4bff165eae
Signed-off-by: Matthew Shyu <matthew.shyu@amlogic.com>
Signed-off-by: Mingyen Hung <mingyen.hung@amlogic.com>
Documentation/devicetree/bindings/crypto/aml-crypto.txt
arch/arm/boot/dts/amlogic/mesong12a.dtsi
arch/arm/boot/dts/amlogic/mesong12b.dtsi
arch/arm64/boot/dts/amlogic/mesong12a.dtsi
arch/arm64/boot/dts/amlogic/mesong12b.dtsi
drivers/amlogic/crypto/aml-aes-dma.c
drivers/amlogic/crypto/aml-crypto-dma.c
drivers/amlogic/crypto/aml-crypto-dma.h
drivers/amlogic/crypto/aml-dma.c
drivers/amlogic/crypto/aml-sha-dma.c
drivers/amlogic/crypto/aml-tdes-dma.c