On Wed, 2013-12-04 at 10:20 +0100, Karl Hiramoto wrote:

> I think the issue might be the memory alignment, the HW wants 16 byte 
> alignment.
> 
> I do echo 9 > /proc/sys/ioctl/cryptodev_verbosity
> 
> and start to see messages liks:
> [ 1102.870000] cryptodev: openvpn[693] (get_userbuf:157): careful - 
> destination address 267d3f is not 16 byte aligned
> [ 1103.880000] cryptodev: openvpn[693] (get_userbuf:152): careful - 
> source address 2665fb is not 16 byte aligned
> [ 1103.890000] cryptodev: openvpn[693] (get_userbuf:157): careful - 
> destination address 267d3f is not 16 byte aligned
> [ 1104.700000] cryptodev: openvpn[693] (get_userbuf:152): careful - 
> source address 266dbb is not 16 byte aligned
> [ 1104.890000] cryptodev: openvpn[693] (get_userbuf:152): careful - 
> source address 2665fb is not 16 byte aligned

Could you then try modifying main.c, at crypto_run() to set the
COP_FLAG_NO_ZC if there is no 16-byte alignment? If that fixes the
issue, we should see how we can handle it depending on the driver.

regards,
Nikos



_______________________________________________
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel

Reply via email to