On Thu, 18 Jun 2015 10:48:03 +0100
Russell King - ARM Linux wrote:
> On Thu, Jun 18, 2015 at 11:33:24AM +0200, Boris Brezillon wrote:
> > Hi Russel,
> >
> > On Thu, 18 Jun 2015 10:04:00 +0100
> > Russell King - ARM Linux wrote:
> >
> > > On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu
On Thu, Jun 18, 2015 at 11:33:24AM +0200, Boris Brezillon wrote:
> Hi Russel,
>
> On Thu, 18 Jun 2015 10:04:00 +0100
> Russell King - ARM Linux wrote:
>
> > On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu wrote:
> > > On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
> > > >
On Thu, Jun 18, 2015 at 10:04:00AM +0100, Russell King - ARM Linux wrote:
>
> If dma_map_sg() coalesces scatterlist entries, then ret will be smaller
> than src_nents, and ret indicates how many scatterlist entries to be
> walked during DMA - you should not use src_nents for that. I couldn't
>
Hi Russel,
On Thu, 18 Jun 2015 10:04:00 +0100
Russell King - ARM Linux wrote:
> On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu wrote:
> > On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
> > >
> > > + ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents,
> > > +
On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu wrote:
> On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
> >
> > + ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents,
> > +DMA_TO_DEVICE);
> > + if (!ret)
> > + return -ENOMEM;
> > +
> >
On Thu, 18 Jun 2015 10:48:03 +0100
Russell King - ARM Linux li...@arm.linux.org.uk wrote:
On Thu, Jun 18, 2015 at 11:33:24AM +0200, Boris Brezillon wrote:
Hi Russel,
On Thu, 18 Jun 2015 10:04:00 +0100
Russell King - ARM Linux li...@arm.linux.org.uk wrote:
On Wed, Jun 17, 2015 at
On Thu, Jun 18, 2015 at 10:04:00AM +0100, Russell King - ARM Linux wrote:
If dma_map_sg() coalesces scatterlist entries, then ret will be smaller
than src_nents, and ret indicates how many scatterlist entries to be
walked during DMA - you should not use src_nents for that. I couldn't
see
On Thu, Jun 18, 2015 at 11:33:24AM +0200, Boris Brezillon wrote:
Hi Russel,
On Thu, 18 Jun 2015 10:04:00 +0100
Russell King - ARM Linux li...@arm.linux.org.uk wrote:
On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu wrote:
On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon
On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu wrote:
On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
+ ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents,
+DMA_TO_DEVICE);
+ if (!ret)
+ return -ENOMEM;
+
+
Hi Russel,
On Thu, 18 Jun 2015 10:04:00 +0100
Russell King - ARM Linux li...@arm.linux.org.uk wrote:
On Wed, Jun 17, 2015 at 05:50:01PM +0800, Herbert Xu wrote:
On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
+ ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents,
On Wed, Jun 17, 2015 at 01:33:24PM +0200, Boris Brezillon wrote:
>
> Actually, I think I don't need to save the dma_map_sg return val, since
> I'm using the sg_next function to iterate over the scatterlist. Am I
> right ?
> IOW, is the ->map_sg() function (in dma_map_ops) supposed to merge the
>
On Wed, 17 Jun 2015 17:50:01 +0800
Herbert Xu wrote:
> On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
> >
> > + ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents,
> > +DMA_TO_DEVICE);
> > + if (!ret)
> > + return -ENOMEM;
> > +
> > +
On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
>
> + ret = dma_map_sg(cesa_dev->dev, req->src, creq->src_nents,
> + DMA_TO_DEVICE);
> + if (!ret)
> + return -ENOMEM;
> +
> + creq->src_nents = ret;
DMA-API-HOWTO says that you must
The CESA IP supports CPU offload through a dedicated DMA engine (TDMA)
which can control the crypto block.
When you use this mode, all the required data (operation metadata and
payload data) are transferred using DMA, and the results are retrieved
through DMA when possible (hash results are not
On Wed, 17 Jun 2015 17:50:01 +0800
Herbert Xu herb...@gondor.apana.org.au wrote:
On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
+ ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents,
+DMA_TO_DEVICE);
+ if (!ret)
+ return -ENOMEM;
On Wed, Jun 17, 2015 at 01:33:24PM +0200, Boris Brezillon wrote:
Actually, I think I don't need to save the dma_map_sg return val, since
I'm using the sg_next function to iterate over the scatterlist. Am I
right ?
IOW, is the -map_sg() function (in dma_map_ops) supposed to merge the
The CESA IP supports CPU offload through a dedicated DMA engine (TDMA)
which can control the crypto block.
When you use this mode, all the required data (operation metadata and
payload data) are transferred using DMA, and the results are retrieved
through DMA when possible (hash results are not
On Wed, Jun 17, 2015 at 09:45:33AM +0200, Boris Brezillon wrote:
+ ret = dma_map_sg(cesa_dev-dev, req-src, creq-src_nents,
+ DMA_TO_DEVICE);
+ if (!ret)
+ return -ENOMEM;
+
+ creq-src_nents = ret;
DMA-API-HOWTO says that you must retain the
18 matches
Mail list logo