This adds support for the MediaTek hardware accelerator on
mt7623 SoC.
This driver currently implement:
- SHA1 and SHA2 family(HMAC) hash alogrithms.
- AES block cipher in CBC/ECB mode with 128/196/256 bits keys.
Ryder Lee (2):
Add crypto driver support for some MediaTek chips
crypto
This adds support for the MediaTek hardware accelerator on
mt7623/mt2701/mt8521p SoC.
This driver currently implement:
- SHA1 and SHA2 family(HMAC) hash alogrithms.
- AES block cipher in CBC/ECB mode with 128/196/256 bits keys.
Signed-off-by: Ryder Lee
---
drivers/crypto/Kconfig
Add DT bindings documentation for the crypto driver
Signed-off-by: Ryder Lee
---
.../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++
1 file changed, 32 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto/mediatek-crypto.txt
diff --git a
Hello,
On Fri, 2016-12-02 at 09:18 +0100, Corentin Labbe wrote:
> Hello
>
> I have some minor comment inline
>
> On Fri, Dec 02, 2016 at 11:26:44AM +0800, Ryder Lee wrote:
> > This adds support for the MediaTek hardware accelerator on
> > mt7623/mt2701/mt8521
This adds support for the MediaTek hardware accelerator on
mt7623/mt2701/mt8521p SoC.
This driver currently implement:
- SHA1 and SHA2 family(HMAC) hash alogrithms.
- AES block cipher in CBC/ECB mode with 128/196/256 bits keys.
Signed-off-by: Ryder Lee
---
drivers/crypto/Kconfig
Add DT bindings documentation for the crypto driver
Signed-off-by: Ryder Lee
---
.../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++
1 file changed, 32 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto/mediatek-crypto.txt
diff --git a
- sort headers in alphabetical order
- add a definition for IRQ unmber
- replace ambiguous definition
- add more annotation and function comment
- add COMPILE_TEST in Kconfig
Ryder Lee (2):
Add crypto driver support for some MediaTek chips
crypto: mediatek - add DT bindings documentation
Hello,
On Mon, 2016-12-05 at 09:52 +0100, Corentin Labbe wrote:
> Hello
>
> I have two minor comment.
>
> On Mon, Dec 05, 2016 at 03:01:23PM +0800, Ryder Lee wrote:
> > This adds support for the MediaTek hardware accelerator on
> > mt7623/mt2701/mt8521p SoC.
>
Hello,
On Mon, 2016-12-05 at 11:18 +0100, Matthias Brugger wrote:
>
> On 05/12/16 08:01, Ryder Lee wrote:
> > Add DT bindings documentation for the crypto driver
> >
> > Signed-off-by: Ryder Lee
> > ---
> > .../devicetree/bind
and function comment
- add COMPILE_TEST in Kconfig
Ryder Lee (2):
Add crypto driver support for some MediaTek chips
crypto: mediatek - add DT bindings documentation
.../devicetree/bindings/crypto/mediatek-crypto.txt | 32 +
drivers/crypto/Kconfig | 17 +
drivers
This adds support for the MediaTek hardware accelerator on
mt7623/mt2701/mt8521p SoC.
This driver currently implement:
- SHA1 and SHA2 family(HMAC) hash algorithms.
- AES block cipher in CBC/ECB mode with 128/196/256 bits keys.
Signed-off-by: Ryder Lee
---
drivers/crypto/Kconfig
Add DT bindings documentation for the crypto driver
Signed-off-by: Ryder Lee
---
.../devicetree/bindings/crypto/mediatek-crypto.txt | 32 ++
1 file changed, 32 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto/mediatek-crypto.txt
diff --git a
alphabetical order
- add a definition for IRQ unmber
- replace ambiguous definition
- add more annotation and function comment
- add COMPILE_TEST in Kconfig
Ryder Lee (2):
Add crypto driver support for some MediaTek chips
crypto: mediatek - add DT bindings documentation
.../devicetree/bindings
Add DT bindings documentation for the crypto driver
Signed-off-by: Ryder Lee
---
.../devicetree/bindings/crypto/mediatek-crypto.txt | 27 ++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree/bindings/crypto/mediatek-crypto.txt
diff --git a
This adds support for the MediaTek hardware accelerator on
mt7623/mt2701/mt8521p SoC.
This driver currently implement:
- SHA1 and SHA2 family(HMAC) hash algorithms.
- AES block cipher in CBC/ECB mode with 128/196/256 bits keys.
Signed-off-by: Ryder Lee
---
drivers/crypto/Kconfig
This patch only regroup functions by usage.
This will help to integrate the GCM support patch later by
adjusting some shared code section, such as common code which
will be reused by GCM, AES mode setting, and DMA transfer.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 272
and uses cmd_pos and res_pos to record them respectively.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 44 --
drivers/crypto/mediatek/mtk-platform.h | 6 +++--
drivers/crypto/mediatek/mtk-sha.c | 29 --
3 files chan
Dummy patch to fix typo and indentation.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 90 +-
drivers/crypto/mediatek/mtk-platform.h | 2 +-
drivers/crypto/mediatek/mtk-sha.c | 40 +++
3 files changed, 63 insertions
This patch adds support to the GCM mode.
Signed-off-by: Ryder Lee
---
drivers/crypto/Kconfig | 2 +
drivers/crypto/mediatek/mtk-aes.c | 369 -
drivers/crypto/mediatek/mtk-platform.h | 2 +
3 files changed, 369 insertions(+), 4 deletions
ned-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 25 +
drivers/crypto/mediatek/mtk-platform.h | 3 +++
2 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-aes.c
b/drivers/crypto/mediatek/mtk-aes.c
index 7e5a8e
modes:
- 211: rfc4106(gcm(aes)), gcm(aes)
- 500: ecb(aes), cbc(aes), ctr(aes), rfc3686(ctr(aes))
- 403 ~ 406: sha1, sha2 family
IxChariot multiple pairs throughput 24 hours test:
- IPSec VPN
- MACSec
Ryder Lee (8):
crypto: mediatek - move HW control data to transformation context
crypto
of all the transformation contexts.
Hence the very same queue will be used to manage both block cipher and
AEAD requests (such as gcm and authenc implemented in further patches).
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 75 --
drivers
This patch adds support to the CTR mode.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 151 --
1 file changed, 146 insertions(+), 5 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-aes.c
b/drivers/crypto/mediatek/mtk-aes.c
index
This patch moves hardware control block members from
mtk_*_rec to transformation context and refines related
definition. This makes operational context to manage its
own control information easily for each DMA transfer.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 144
Hi all,
Some patches of this series improve the performances whereas others
clean up code and refine data structure to make it more efficient.
It also adds support to AES-OFB and AES-CFB128. The new mode has been
tested by using the tcrypt
Ryder Lee (9):
crypto: mediatek - rework interrupt
Dummy patch to add MTK_* prefix to ring enum and fix incorrect annotations.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 12 ++--
drivers/crypto/mediatek/mtk-platform.c | 12 ++--
drivers/crypto/mediatek/mtk-platform.h | 26
pointers and check the boundaries of ring.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 14 --
drivers/crypto/mediatek/mtk-platform.c | 3 +++
drivers/crypto/mediatek/mtk-platform.h | 8
drivers/crypto/mediatek/mtk-sha.c | 35
tter to remove it.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-platform.h | 4 --
drivers/crypto/mediatek/mtk-sha.c | 116 ++---
2 files changed, 34 insertions(+), 86 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-platform.h
b/drivers/cr
This patch adds support to OFB mode and CFB128 mode.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 84 ---
1 file changed, 78 insertions(+), 6 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-aes.c
b/drivers/crypto/mediatek/mtk-aes.c
This patch removes redundant task that used to handle interrupt
from ring manager, so that the same task/handler can be shared.
It also uses aes->id and sha-id to distinguish interrupt sources.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c |
one_task".
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 20
drivers/crypto/mediatek/mtk-platform.h | 12
drivers/crypto/mediatek/mtk-sha.c | 19 +++
3 files changed, 39 insertions(+), 12 deletions(-)
diff --git a/dri
r
inline function to write security information(key, IV,...) to info->state.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 263 ++
drivers/crypto/mediatek/mtk-sha.c | 90 ++---
2 files changed, 165 insertions(+), 188 deletions(-)
This patch fixes how errors should be handled by mtk_aes_complete().
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 39 +++
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-aes.c
b/drivers/crypto
This patch adds mtk_aes_gcm_tag_verify() which is used to compare
authenticated tag.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 24 ++--
drivers/crypto/mediatek/mtk-platform.h | 2 ++
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a
Hi all,
Some patches of this series improve the performances whereas others
clean up code and refine data structure to make it more efficient
Changes since v1:
- drop OFB and CFB patch
Ryder Lee (8):
crypto: mediatek - rework interrupt handler
crypto: mediatek - add MTK_* prefix and correct
This patch adds mtk_aes_gcm_tag_verify() which is used to compare
authenticated tag.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 24 ++--
drivers/crypto/mediatek/mtk-platform.h | 2 ++
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a
r
inline function to write security information(key, IV,...) to info->state.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 263 ++
drivers/crypto/mediatek/mtk-sha.c | 90 ++---
2 files changed, 165 insertions(+), 188 deletions(-)
Dummy patch to add MTK_* prefix to ring enum and fix incorrect annotations.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 12 ++--
drivers/crypto/mediatek/mtk-platform.c | 12 ++--
drivers/crypto/mediatek/mtk-platform.h | 26
pointers and check the boundaries of ring.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 14 --
drivers/crypto/mediatek/mtk-platform.c | 3 +++
drivers/crypto/mediatek/mtk-platform.h | 8
drivers/crypto/mediatek/mtk-sha.c | 35
This patch removes redundant task that used to handle interrupt
from ring manager, so that the same task/handler can be shared.
It also uses aes->id and sha-id to distinguish interrupt sources.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c |
This patch fixes how errors should be handled by mtk_aes_complete().
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 39 +++
1 file changed, 23 insertions(+), 16 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-aes.c
b/drivers/crypto
one_task".
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 20
drivers/crypto/mediatek/mtk-platform.h | 12
drivers/crypto/mediatek/mtk-sha.c | 19 +++
3 files changed, 39 insertions(+), 12 deletions(-)
diff --git a/dri
tter to remove it.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-platform.h | 4 --
drivers/crypto/mediatek/mtk-sha.c | 116 ++---
2 files changed, 34 insertions(+), 86 deletions(-)
diff --git a/drivers/crypto/mediatek/mtk-platform.h
b/drivers/cr
On Mon, 2017-08-14 at 18:21 +0300, Gilad Ben-Yossef wrote:
> The mediatek driver starts several async crypto ops and waits for their
> completions. Move it over to generic code doing the same.
>
> Signed-off-by: Gilad Ben-Yossef
> ---
Acked-by: Ryder Lee
> drivers/crypto/
Currently, empty messages are not supported in GCM mode, hence add
a check to prevent producing incorrect results.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-aes.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/crypto/mediatek/mtk-aes.c
b/drivers/crypto/mediatek
Hi,
On Wed, 2017-08-16 at 14:18 +0200, Stephan Mueller wrote:
> Am Mittwoch, 16. August 2017, 13:19:48 CEST schrieb Ryder Lee:
>
> Hi Ryder,
>
> > Currently, empty messages are not supported in GCM mode, hence add
> > a check to prevent producing incorrect results.
>
Hi,
On Tue, 2017-08-22 at 15:01 +0800, Herbert Xu wrote:
> On Wed, Aug 16, 2017 at 07:19:48PM +0800, Ryder Lee wrote:
> > Currently, empty messages are not supported in GCM mode, hence add
> > a check to prevent producing incorrect results.
> >
> > Signed-off-by: Ryde
Currently, empty messages are not supported in GCM mode, hence add
a check to prevent producing incorrect results.
Signed-off-by: Ryder Lee
---
changes since v1:
- fix build erro: add a missing semicolon.
drivers/crypto/mediatek/mtk-aes.c | 5 +
1 file changed, 5 insertions(+)
diff --git
This patch removes redundant clock setting for 'clk_ethif', which is
the parent for 'clk_cryp'. Hence, we just need to handle its child.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-platform.c | 10 +-
drivers/crypto/mediatek/mtk-platform.h | 2 --
This patch removes unnecessary clock in binding file.
Signed-off-by: Ryder Lee
---
Documentation/devicetree/bindings/crypto/mediatek-crypto.txt | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/crypto/mediatek-crypto.txt
b
On Wed, 2017-05-31 at 13:46 -0500, Rob Herring wrote:
> On Fri, May 26, 2017 at 05:43:09PM +0800, Ryder Lee wrote:
> > This patch removes unnecessary clock in binding file.
>
> Why is the clock unnecessary? A h/w block either has a clock or doesn't.
>
> The subject ne
This patch series only remove redundant clock setting in mediatek crypto driver.
Changes since v1:
-rework the commit message.
Ryder Lee (2):
crypto: mediatek - remove redundant clock setting
dt-bindings: crypto: remove mediatek ethif clock
Documentation/devicetree/bindings/crypto/mediatek
This patch removes redundant clock setting for 'clk_ethif', which is
the parent of 'clk_cryp'. Hence, we just need to handle its child.
Signed-off-by: Ryder Lee
---
drivers/crypto/mediatek/mtk-platform.c | 10 +-
drivers/crypto/mediatek/mtk-platform.h | 2 --
This patch removes the parent clock 'ethif' in bindings, since we don't
need to control the parent of a clock in current clock framework.
Moreover, the clocks are get by name in the driver, thus this change
does not break backwards compatibility.
Signed-off-by: Ryder Lee
Review
This updates bindings for MT7629 RNG driver.
Signed-off-by: Ryder Lee
---
Documentation/devicetree/bindings/rng/mtk-rng.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/rng/mtk-rng.txt
b/Documentation/devicetree/bindings/rng/mtk
55 matches
Mail list logo