]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd5481d0e0a1c84010dcca954321f79b6af44e4e
tree9b40ed1c86c0a04d1b9483f08f953e798828baa3
parentdeef02b24482b658830d3aef16d0f56fc6c6d199
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