OSDN Git Service

crypto: inside-secure - move cache result dma mapping to request
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 26 Feb 2018 13:45:11 +0000 (14:45 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Mar 2018 14:45:30 +0000 (22:45 +0800)
commitcff9a17545a3c64e91ea913245eae41d28f51d8d
treebc0e5df2e513c5f43c14653ce6183ea88125915f
parentb859202722f8fd046384073e01e68a0742a5553f
crypto: inside-secure - move cache result dma mapping to request

In heavy traffic the DMA mapping is overwritten by multiple requests as
the DMA address is stored in a global context. This patch moves this
information to the per-hash request context so that it can't be
overwritten.

Fixes: 1b44c5a60c13 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.c
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_hash.c