]> 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)
commit14971dc7e50d075029bb99ddbd90b8363ad439d3
tree97c628179e4d607a355a512185772d83937cd501
parent8e1ce688ffb503af718302764c6d6d5c1952c092
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