Hi, On Mon, Sep 24, 2012 at 09:13:15PM +0200, Lluís Batlle i Rossell wrote: > On Mon, Sep 24, 2012 at 08:54:31PM +0200, Nikos Mavrogiannopoulos wrote: > > On 09/24/2012 08:46 PM, Lluís Batlle i Rossell wrote: > > memcpy? Do you see any error message "Error getting user pages. Falling > > back to non zero copy." to kernel log? The cryptodev operation is pretty > > much zero copy otherwise (unless you do the crypt_op operation and > > specify the flag COP_FLAG_NO_ZC). > > No error message at all. It should be the mv_crypto thread, doing the copy, > not > the cryptodev. In the user thread, it may be simply openssh. No?
That's how it is. IIRC, OpenSSL uses a dedicated buffer to pass to the engine, which has to be filled (the userspace memcopy you're seeing). Mainline mv_cesa on the other hand does not use the DMA engine (yet), so the data has to be moved into the engine's SRAM by the CPU (the kernelspace memcopy). Greetings, Phil _______________________________________________ Cryptodev-linux-devel mailing list Cryptodev-linux-devel@gna.org https://mail.gna.org/listinfo/cryptodev-linux-devel