projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
197272b
)
crypto: hisilicon/sgl - fix the soft sg map to hardware sg
author
Kai Ye
<yekai13@huawei.com>
Fri, 9 Apr 2021 09:04:03 +0000
(17:04 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 16 Apr 2021 11:16:34 +0000
(21:16 +1000)
The buffer of the hardware sge needs to be initialized by
soft sgl.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sgl.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/sgl.c
b/drivers/crypto/hisilicon/sgl.c
index
d04e551
..
7f11e41
100644
(file)
--- a/
drivers/crypto/hisilicon/sgl.c
+++ b/
drivers/crypto/hisilicon/sgl.c
@@
-176,6
+176,7
@@
static void sg_map_to_hw_sg(struct scatterlist *sgl,
{
hw_sge->buf = sg_dma_address(sgl);
hw_sge->len = cpu_to_le32(sg_dma_len(sgl));
+ hw_sge->page_ctrl = sg_virt(sgl);
}
static void inc_hw_sgl_sge(struct hisi_acc_hw_sgl *hw_sgl)