aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0015-crypto-ccp-unmap-pages-and-remove-unmap-objects-in-c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0015-crypto-ccp-unmap-pages-and-remove-unmap-objects-in-c.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0015-crypto-ccp-unmap-pages-and-remove-unmap-objects-in-c.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0015-crypto-ccp-unmap-pages-and-remove-unmap-objects-in-c.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0015-crypto-ccp-unmap-pages-and-remove-unmap-objects-in-c.patch
new file mode 100644
index 00000000..c9ac03ee
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71-e3000/0015-crypto-ccp-unmap-pages-and-remove-unmap-objects-in-c.patch
@@ -0,0 +1,32 @@
+From da7514b8de1c7f0554bb3264a38e9621340b6836 Mon Sep 17 00:00:00 2001
+From: amd <amd@sosxen2.amd.com>
+Date: Tue, 5 Sep 2017 17:01:51 -0500
+Subject: [PATCH 15/95] crypto: ccp - unmap pages and remove unmap objects in
+ callback
+
+Clean up the mapped pages and the unmap object once we are done with
+it. This enables the final clean-up of the object once the transfer
+is complete.
+
+Signed-off-by: Gary R Hook <gary.hook@amd.com>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Signed-off-by: Sudheesh Mavila <sudheesh.mavila@amd.com>
+---
+ drivers/crypto/ccp/ccp-dmaengine.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/crypto/ccp/ccp-dmaengine.c b/drivers/crypto/ccp/ccp-dmaengine.c
+index d608043..64f4b57 100644
+--- a/drivers/crypto/ccp/ccp-dmaengine.c
++++ b/drivers/crypto/ccp/ccp-dmaengine.c
+@@ -223,6 +223,7 @@ static struct ccp_dma_desc *ccp_handle_active_desc(struct ccp_dma_chan *chan,
+ desc->tx_desc.cookie, desc->status);
+
+ dma_cookie_complete(tx_desc);
++ dma_descriptor_unmap(tx_desc);
+ }
+
+ desc = __ccp_next_dma_desc(chan, desc);
+--
+2.7.4
+