> From: Santosh Shukla [mailto:santosh.shu...@caviumnetworks.com]
> Sent: Thursday, August 31, 2017 4:26 AM
> To: dev@dpdk.org
> Cc: tho...@monjalon.net; jerin.ja...@caviumnetworks.com;
> hemant.agra...@nxp.com; olivier.m...@6wind.com;
> maxime.coque...@redhat.com; Gonzalez Monroy, Sergio
> <sergio.gonzalez.mon...@intel.com>; Richardson, Bruce
> <bruce.richard...@intel.com>; shreyansh.j...@nxp.com;
> gaetan.ri...@6wind.com; Burakov, Anatoly <anatoly.bura...@intel.com>;
> step...@networkplumber.org; acon...@redhat.com; Santosh Shukla
> <santosh.shu...@caviumnetworks.com>
> 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 <santosh.shu...@caviumnetworks.com>
> Signed-off-by: Jerin Jacob <jerin.ja...@caviumnetworks.com>
> Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>
> Acked-by: Hemant Agrawal <hemant.agra...@nxp.com>
> ---

Reviewed-by: Anatoly Burakov <anatoly.bura...@intel.com>



Reply via email to