Re: [dpdk-dev] [PATCH v9 3/9] linuxapp/eal_pci: get iommu class

2017-10-06 Thread Thomas Monjalon
06/10/2017 05:22, santosh: > > On Friday 06 October 2017 05:47 AM, Thomas Monjalon wrote: > > 20/09/2017 13:23, Santosh Shukla: > >> +/** Device driver supports iova as va */ > >> +#define RTE_PCI_DRV_IOVA_AS_VA 0X0040 > > This flag name is surprizing and the comment does not help. > > For the com

Re: [dpdk-dev] [PATCH v9 3/9] linuxapp/eal_pci: get iommu class

2017-10-05 Thread santosh
On Friday 06 October 2017 05:47 AM, Thomas Monjalon wrote: > 20/09/2017 13:23, Santosh Shukla: >> +/** Device driver supports iova as va */ >> +#define RTE_PCI_DRV_IOVA_AS_VA 0X0040 > This flag name is surprizing and the comment does not help. > For the comment: > "Device driver supports I/O

Re: [dpdk-dev] [PATCH v9 3/9] linuxapp/eal_pci: get iommu class

2017-10-05 Thread Thomas Monjalon
20/09/2017 13:23, Santosh Shukla: > +/** Device driver supports iova as va */ > +#define RTE_PCI_DRV_IOVA_AS_VA 0X0040 This flag name is surprizing and the comment does not help. For the comment: "Device driver supports I/O virtual addressing" ? For the flag: RTE_PCI_DRV_IOVA ? [.

[dpdk-dev] [PATCH v9 3/9] linuxapp/eal_pci: get iommu class

2017-09-20 Thread Santosh Shukla
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