On Wed, Jun 22, 2016 at 04:53:50PM +0100, Giovanni Cabiddu wrote: > On Mon, Jun 13, 2016 at 04:56:12PM +0800, Herbert Xu wrote: > > The backup path is also very unlikely to work because we'll be > > hitting this with 64K sizes and this just won't work with a 4K > > page size. > Is scatterwalk_map_and_copy broken?
No that's not the problem. The problem is that you can't kmalloc 64K of memory. kmalloc requires physically contiguous memory and you cannot rely on having 64K of contiguous memory. > > This totally breaks down once you go to DMA, where an SG list is > > required. > scomp backends should be used only for software implementations. > A driver backend which needs DMA should plug into acomp. What I'm saying is that the current strategy of using vmalloc memory as input/output buffers cannot possibly work with acomp since you cannot do DMA over vmalloc memory. Cheers, -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html