[dpdk-stable] patch 'crypto/dpaa_sec: fix IOVA table' has been queued to LTS release 18.11.6
Kevin Traynor
ktraynor at redhat.com
Fri Nov 22 15:41:17 CET 2019
Hi,
FYI, your patch has been queued to LTS release 18.11.6
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/29/19. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/88696d511ff6edafe41bc74aa1d1de3e917986d6
Thanks.
Kevin.
---
>From 88696d511ff6edafe41bc74aa1d1de3e917986d6 Mon Sep 17 00:00:00 2001
From: Thierry Herbelot <thierry.herbelot at 6wind.com>
Date: Thu, 12 Sep 2019 10:38:21 +0200
Subject: [PATCH] crypto/dpaa_sec: fix IOVA table
[ upstream commit 12e5842945bf6debe431adbdbefd9a5a53c72003 ]
dpaa_sec needs translations between physical and virtual addresses.
V to P translation is relatively fast, as memory is managed in
contiguous segments.
The result of each V to P translation is used to update the DPAA iova
table, which should be updated by a Mem event callback, but is not.
Then the DPAA iova table has entries for all needed memory ranges.
With this patch, dpaa_mem_ptov will always use dpaax_iova_table_get_va,
which ensures optimal performance.
Fixes: 5a7dbb934d75 ("dpaa: enable dpaax library")
Signed-off-by: Thierry Herbelot <thierry.herbelot at 6wind.com>
Acked-by: Hemant Agrawal <hemant.agrawal at nxp.com>
---
drivers/crypto/dpaa_sec/dpaa_sec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c
index 742e24c52..c0602ce39 100644
--- a/drivers/crypto/dpaa_sec/dpaa_sec.c
+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c
@@ -38,4 +38,5 @@
#include <dpaa_sec.h>
#include <dpaa_sec_log.h>
+#include <dpaax_iova_table.h>
enum rta_sec_era rta_sec_era;
@@ -100,6 +101,8 @@ dpaa_mem_vtop(void *vaddr)
ms = rte_mem_virt2memseg(vaddr, NULL);
- if (ms)
+ if (ms) {
+ dpaax_iova_table_update(ms->iova, ms->addr, ms->len);
return ms->iova + RTE_PTR_DIFF(vaddr, ms->addr);
+ }
return (size_t)NULL;
}
--
2.21.0
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2019-11-22 14:36:56.868827379 +0000
+++ 0031-crypto-dpaa_sec-fix-IOVA-table.patch 2019-11-22 14:36:55.201149201 +0000
@@ -1 +1 @@
-From 12e5842945bf6debe431adbdbefd9a5a53c72003 Mon Sep 17 00:00:00 2001
+From 88696d511ff6edafe41bc74aa1d1de3e917986d6 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 12e5842945bf6debe431adbdbefd9a5a53c72003 ]
+
@@ -18 +19,0 @@
-Cc: stable at dpdk.org
@@ -27 +28 @@
-index fd5b24840..39c9271ff 100644
+index 742e24c52..c0602ce39 100644
@@ -30 +31 @@
-@@ -39,4 +39,5 @@
+@@ -38,4 +38,5 @@
@@ -36 +37 @@
-@@ -101,6 +102,8 @@ dpaa_mem_vtop(void *vaddr)
+@@ -100,6 +101,8 @@ dpaa_mem_vtop(void *vaddr)
More information about the stable
mailing list