]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam/qi2 - use affine DPIOs
authorHoria Geantă <horia.geanta@nxp.com>
Mon, 11 Feb 2019 11:46:12 +0000 (13:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Feb 2019 04:47:26 +0000 (12:47 +0800)
commit1ae391c30294acaff38d1abe82407a8d8b39ebb8
tree97c628179e4d607a355a512185772d83937cd501
parentb91dd4f94f70f4778ef18372e582f077adfbc03a
crypto: caam/qi2 - use affine DPIOs

Driver was relying on an older DPIO API, which provided a CPU-affine DPIO
in case it was called with preemption disabled.

Since this is no longer the case, save the CPU-affine DPIO in per-cpu
private structure during setup and further use it on the hot path.

Note that preemption is no longer disabled while trying to enqueue an
FD. Thus it might be possible to run the enqueue on a different CPU
(due to migration, when in process context), however this wouldn't be a
functionality issue.
Since we allow for all cores to enqueue, we take care of data
structures setup to handle the case when number of (Rx, Tx) queue pairs
is smaller than number of cores.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c
drivers/crypto/caam/caamalg_qi2.h