DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical
@ 2017-11-07 12:15 Hemant Agrawal
  2017-11-07 12:15 ` [dpdk-dev] [PATCH] bus/dpaa: setting the " Hemant Agrawal
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hemant Agrawal @ 2017-11-07 12:15 UTC (permalink / raw)
  To: dev; +Cc: ferruh.yigit, thomas

Setting the default iova mode as physical.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
Though the DPAA2 can support virtual mode, but that require other changes in the
code as well, so setting it as physical for time being.

 drivers/bus/fslmc/fslmc_bus.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c
index 0a8229f..480857e 100644
--- a/drivers/bus/fslmc/fslmc_bus.c
+++ b/drivers/bus/fslmc/fslmc_bus.c
@@ -346,11 +346,21 @@ rte_fslmc_driver_unregister(struct rte_dpaa2_driver *driver)
 	driver->fslmc_bus = NULL;
 }
 
+/*
+ * Get iommu class of DPAA2 devices on the bus.
+ */
+static enum rte_iova_mode
+rte_dpaa2_get_iommu_class(void)
+{
+	return RTE_IOVA_PA;
+}
+
 struct rte_fslmc_bus rte_fslmc_bus = {
 	.bus = {
 		.scan = rte_fslmc_scan,
 		.probe = rte_fslmc_probe,
 		.find_device = rte_fslmc_find_device,
+		.get_iommu_class = rte_dpaa2_get_iommu_class,
 	},
 	.device_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.device_list),
 	.driver_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.driver_list),
-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH] bus/dpaa: setting the iova mode as physical
  2017-11-07 12:15 [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Hemant Agrawal
@ 2017-11-07 12:15 ` Hemant Agrawal
  2017-11-07 12:15 ` [dpdk-dev] [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova Hemant Agrawal
  2017-11-07 14:41 ` [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Thomas Monjalon
  2 siblings, 0 replies; 5+ messages in thread
From: Hemant Agrawal @ 2017-11-07 12:15 UTC (permalink / raw)
  To: dev; +Cc: ferruh.yigit, thomas

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 drivers/bus/dpaa/dpaa_bus.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c
index dc58e17..1cc8c89 100644
--- a/drivers/bus/dpaa/dpaa_bus.c
+++ b/drivers/bus/dpaa/dpaa_bus.c
@@ -484,11 +484,21 @@ rte_dpaa_find_device(const struct rte_device *start, rte_dev_cmp_t cmp,
 	return NULL;
 }
 
+/*
+ * Get iommu class of DPAA2 devices on the bus.
+ */
+static enum rte_iova_mode
+rte_dpaa_get_iommu_class(void)
+{
+	return RTE_IOVA_PA;
+}
+
 struct rte_dpaa_bus rte_dpaa_bus = {
 	.bus = {
 		.scan = rte_dpaa_bus_scan,
 		.probe = rte_dpaa_bus_probe,
 		.find_device = rte_dpaa_find_device,
+		.get_iommu_class = rte_dpaa_get_iommu_class,
 	},
 	.device_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.device_list),
 	.driver_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.driver_list),
-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [dpdk-dev] [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova
  2017-11-07 12:15 [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Hemant Agrawal
  2017-11-07 12:15 ` [dpdk-dev] [PATCH] bus/dpaa: setting the " Hemant Agrawal
@ 2017-11-07 12:15 ` Hemant Agrawal
  2017-11-07 13:06   ` Thomas Monjalon
  2017-11-07 14:41 ` [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Thomas Monjalon
  2 siblings, 1 reply; 5+ messages in thread
From: Hemant Agrawal @ 2017-11-07 12:15 UTC (permalink / raw)
  To: dev; +Cc: ferruh.yigit, thomas

buf_physaddr is getting deprecated in mbuf.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 drivers/crypto/dpaa_sec/dpaa_sec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c
index d1ef241..16155b1 100644
--- a/drivers/crypto/dpaa_sec/dpaa_sec.c
+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c
@@ -686,10 +686,10 @@ build_cipher_auth_gcm(struct rte_crypto_op *op, dpaa_sec_session *ses)
 	uint8_t *IV_ptr = rte_crypto_op_ctod_offset(op, uint8_t *,
 			ses->iv.offset);
 
-	src_start_addr = sym->m_src->buf_physaddr + sym->m_src->data_off;
+	src_start_addr = sym->m_src->buf_iova + sym->m_src->data_off;
 
 	if (sym->m_dst)
-		dst_start_addr = sym->m_dst->buf_physaddr + sym->m_dst->data_off;
+		dst_start_addr = sym->m_dst->buf_iova + sym->m_dst->data_off;
 	else
 		dst_start_addr = src_start_addr;
 
-- 
2.7.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova
  2017-11-07 12:15 ` [dpdk-dev] [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova Hemant Agrawal
@ 2017-11-07 13:06   ` Thomas Monjalon
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2017-11-07 13:06 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: dev, ferruh.yigit

07/11/2017 13:15, Hemant Agrawal:
> buf_physaddr is getting deprecated in mbuf.

Seems two occurences were missing, thanks.

Fixes: 455da5453987 ("mbuf: rename physical address to IOVA")

> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical
  2017-11-07 12:15 [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Hemant Agrawal
  2017-11-07 12:15 ` [dpdk-dev] [PATCH] bus/dpaa: setting the " Hemant Agrawal
  2017-11-07 12:15 ` [dpdk-dev] [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova Hemant Agrawal
@ 2017-11-07 14:41 ` Thomas Monjalon
  2 siblings, 0 replies; 5+ messages in thread
From: Thomas Monjalon @ 2017-11-07 14:41 UTC (permalink / raw)
  To: Hemant Agrawal; +Cc: dev, ferruh.yigit

07/11/2017 13:15, Hemant Agrawal:
> Setting the default iova mode as physical.
> 
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> ---
> Though the DPAA2 can support virtual mode, but that require other changes in the
> code as well, so setting it as physical for time being.

Series applied, thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-11-07 14:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 12:15 [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Hemant Agrawal
2017-11-07 12:15 ` [dpdk-dev] [PATCH] bus/dpaa: setting the " Hemant Agrawal
2017-11-07 12:15 ` [dpdk-dev] [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova Hemant Agrawal
2017-11-07 13:06   ` Thomas Monjalon
2017-11-07 14:41 ` [dpdk-dev] [PATCH] bus/fslmc: set the bus iova mode as physical Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).