diff mbox series

bus/fslmc: set the bus iova mode as physical

Message ID 1510056908-8372-1-git-send-email-hemant.agrawal@nxp.com
State New
Headers show
Series bus/fslmc: set the bus iova mode as physical | expand

Commit Message

Hemant Agrawal Nov. 7, 2017, 12:15 p.m. UTC
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(+)

-- 
2.7.4

Comments

Thomas Monjalon Nov. 7, 2017, 2:41 p.m. UTC | #1
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
diff mbox series

Patch

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),