crypto: hisilicon - fix large sgl memory allocation problem when disable smmu
authorZhou Wang <wangzhou1@hisilicon.com>
Mon, 30 Sep 2019 07:08:54 +0000 (15:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Oct 2019 12:36:31 +0000 (23:36 +1100)
commitd8ac7b85236b04d14fa80328726cd4d098b4a2a7
tree9b40ed1c86c0a04d1b9483f08f953e798828baa3
parentf081fda293ffba54216a7dab66faba7275475006
crypto: hisilicon - fix large sgl memory allocation problem when disable smmu

When disabling SMMU, it may fail to allocate large continuous memory. This
patch fixes this by allocating memory as blocks.

Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Shukun Tan <tanshukun1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sgl.c