lkml.org 
[lkml]   [2015]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/3] crypto: caam_rng: fix rng_unmap_ctx's DMA_UNMAP size problem
On Wed, 4 Mar 2015 13:33:22 +0800
yjin <yanjiang.jin@windriver.com> wrote:

> On 2015年03月04日 03:31, Kim Phillips wrote:
> > On Tue, 3 Mar 2015 14:50:52 +0800
> > <yanjiang.jin@windriver.com> wrote:
> >
> >> - dma_unmap_single(jrdev, ctx->sh_desc_dma, DESC_RNG_LEN,
> >> - DMA_TO_DEVICE);
> >> + dma_unmap_single(jrdev, ctx->sh_desc_dma,
> >> + desc_bytes(ctx->sh_desc), DMA_TO_DEVICE);
> > alignment: the 'd' in desc_bytes should fall directly under the 'j'
> > in jrdev.
> >
> > Also, DESC_RNG_LEN should be corrected to (4 * CAAM_CMD_SZ).
>
> Hi Kim,
>
> I can't find the obvious limitation for the RNG descriptor length in
> Freescale documents, could you point out it?

? rng_create_sh_desc() creates a fixed descriptor of exactly 4
command-lengths.

Kim


\
 
 \ /
  Last update: 2015-03-04 20:21    [W:1.741 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site