diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-12-14 20:02:30 +0000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-01-03 08:41:36 +1100 |
commit | 9bc3dd24e7dccd50757db743a3635ad5b0497e6e (patch) | |
tree | 2bab6d5bd89156f8ae415f7274dda78e6b57d335 /drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h | |
parent | 4ec8977b921fd9d512701e009ce8082cb94b5c1c (diff) | |
download | linux-9bc3dd24e7dccd50757db743a3635ad5b0497e6e.tar.gz linux-9bc3dd24e7dccd50757db743a3635ad5b0497e6e.tar.bz2 linux-9bc3dd24e7dccd50757db743a3635ad5b0497e6e.zip |
crypto: sun4i-ss - fix kmap usage
With the recent kmap change, some tests which were conditional on
CONFIG_DEBUG_HIGHMEM now are enabled by default.
This permit to detect a problem in sun4i-ss usage of kmap.
sun4i-ss uses two kmap via sg_miter (one for input, one for output), but
using two kmap at the same time is hard:
"the ordering has to be correct and with sg_miter that's probably hard to get
right." (quoting Tlgx)
So the easiest solution is to never have two sg_miter/kmap open at the same time.
After each use of sg_miter, I store the current index, for being able to
resume sg_miter to the right place.
Fixes: 6298e948215f ("crypto: sunxi-ss - Add Allwinner Security System crypto accelerator")
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/allwinner/sun4i-ss/sun4i-ss.h')
0 files changed, 0 insertions, 0 deletions