> From: Santosh Shukla [mailto:[email protected]] > Sent: Thursday, August 31, 2017 4:26 AM > To: [email protected] > Cc: [email protected]; [email protected]; > [email protected]; [email protected]; > [email protected]; Gonzalez Monroy, Sergio > <[email protected]>; Richardson, Bruce > <[email protected]>; [email protected]; > [email protected]; Burakov, Anatoly <[email protected]>; > [email protected]; [email protected]; Santosh Shukla > <[email protected]> > Subject: [PATCH v7 3/9] linuxapp/eal_pci: get iommu class > > Get iommu class of PCI device on the bus and returns preferred iova > mapping mode for that bus. > > Patch also introduces RTE_PCI_DRV_IOVA_AS_VA drv flag. > Flag used when driver needs to operate in iova=va mode. > > Algorithm for iova scheme selection for PCI bus: > 0. If no device bound then return with RTE_IOVA_DC mapping mode, else > goto 1). > 1. Look for device attached to vfio kdrv and has .drv_flag set to > RTE_PCI_DRV_IOVA_AS_VA. > 2. Look for any device attached to UIO class of driver. > 3. Check for vfio-noiommu mode enabled. > > If 2) & 3) is false and 1) is true then select mapping scheme as RTE_IOVA_VA. > Otherwise use default mapping scheme (RTE_IOVA_PA). > > Signed-off-by: Santosh Shukla <[email protected]> > Signed-off-by: Jerin Jacob <[email protected]> > Reviewed-by: Maxime Coquelin <[email protected]> > Acked-by: Hemant Agrawal <[email protected]> > ---
Reviewed-by: Anatoly Burakov <[email protected]>

