Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1538393
| From | Ryder Lee <ryder.lee@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v1 1/2] Add crypto driver support for some MediaTek chips |
| Date | 2016-12-08 10:10 +0100 |
| Message-ID | <sM2Se-4hp-21@gated-at.bofh.it> (permalink) |
| References | <sKVzr-1nl-1@gated-at.bofh.it> <sKVzr-1nl-5@gated-at.bofh.it> <sKXBh-2G5-51@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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.
> >
> > This driver currently implement:
> > - SHA1 and SHA2 family(HMAC) hash alogrithms.
>
> There is a typo for algorithms.
>
> [...]
> > +/**
> > + * struct mtk_desc - DMA descriptor
> > + * @hdr: the descriptor control header
> > + * @buf: DMA address of input buffer segment
> > + * @ct: DMA address of command token that control operation flow
> > + * @ct_hdr: the command token control header
> > + * @tag: the user-defined field
> > + * @tfm: DMA address of transform state
> > + * @bound: align descriptors offset boundary
> > + *
> > + * Structure passed to the crypto engine to describe where source
> > + * data needs to be fetched and how it needs to be processed.
> > + */
> > +struct mtk_desc {
> > + u32 hdr;
> > + u32 buf;
> > + u32 ct;
> > + u32 ct_hdr;
> > + u32 tag;
> > + u32 tfm;
> > + u32 bound[2];
> > +};
>
> Do you have tested this descriptor with BE/LE kernel ?
I did not test it with BE kernel, because both CPU and accelerator in
our SoC just run on LE system.
Thanks for reminding me, i will use byteorder conversion macros and type
identifiers.
> Regards
> Corentin Labbe
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v1 0/2] Add MediaTek crypto acclelrator driver Ryder Lee <ryder.lee@mediatek.com> - 2016-12-05 08:10 +0100
[PATCH v1 2/2] crypto: mediatek - add DT bindings documentation Ryder Lee <ryder.lee@mediatek.com> - 2016-12-05 08:10 +0100
Re: [PATCH v1 2/2] crypto: mediatek - add DT bindings documentation Matthias Brugger <matthias.bgg@gmail.com> - 2016-12-05 11:20 +0100
Re: [PATCH v1 2/2] crypto: mediatek - add DT bindings documentation Ryder Lee <ryder.lee@mediatek.com> - 2016-12-08 10:20 +0100
Re: [PATCH v1 2/2] crypto: mediatek - add DT bindings documentation Matthias Brugger <matthias.bgg@gmail.com> - 2016-12-09 10:50 +0100
Re: [PATCH v1 1/2] Add crypto driver support for some MediaTek chips Corentin Labbe <clabbe.montjoie@gmail.com> - 2016-12-05 10:20 +0100
Re: [PATCH v1 1/2] Add crypto driver support for some MediaTek chips Ryder Lee <ryder.lee@mediatek.com> - 2016-12-08 10:10 +0100
csiph-web