All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bus/fslmc: set the bus iova mode as physical
@ 2017-11-07 12:15 Hemant Agrawal
  2017-11-07 12:15 ` [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 related	[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 [PATCH] bus/fslmc: set the bus iova mode as physical Hemant Agrawal
2017-11-07 12:15 ` [PATCH] bus/dpaa: setting the " Hemant Agrawal
2017-11-07 12:15 ` [PATCH] crypto/dpaa_sec: changing buf physaddr to buf iova Hemant Agrawal
2017-11-07 13:06   ` Thomas Monjalon
2017-11-07 14:41 ` [PATCH] bus/fslmc: set the bus iova mode as physical Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.