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

2017-10-11 Thread santosh
On Wednesday 11 October 2017 02:01 PM, Tan, Jianfeng wrote: >>> Then how about we enable this, iova=va, if only all PCI devices are binded >> to vfio-pci (iommu mode)? >> >> Right, same I proposed (I guess) in v2 such that iova bus autodetecting in >> case see all device bound >> to vfio-pci then

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

2017-10-11 Thread Tan, Jianfeng
> > Then how about we enable this, iova=va, if only all PCI devices are binded > to vfio-pci (iommu mode)? > > Right, same I proposed (I guess) in v2 such that iova bus autodetecting in > case see all device bound > to vfio-pci then autoselect iova=va, in v3 series (I guess) discussion: it was >

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

2017-10-11 Thread santosh
Cc: tho...@monjalon.net; jerin.ja...@caviumnetworks.com; >> hemant.agra...@nxp.com; acon...@redhat.com; >> step...@networkplumber.org; Burakov, Anatoly; gaetan.ri...@6wind.com; >> shreyansh.j...@nxp.com; Richardson, Bruce; Gonzalez Monroy, Sergio; >> maxime.coque...@redhat.com &g

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

2017-10-11 Thread Tan, Jianfeng
acon...@redhat.com; > step...@networkplumber.org; Burakov, Anatoly; gaetan.ri...@6wind.com; > shreyansh.j...@nxp.com; Richardson, Bruce; Gonzalez Monroy, Sergio; > maxime.coque...@redhat.com > Subject: Re: [dpdk-dev] [PATCH v10 3/9] linuxapp/eal_pci: get iommu class > > > On

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

2017-10-10 Thread santosh
On Wednesday 11 October 2017 11:01 AM, Tan, Jianfeng wrote: > > > On 10/11/2017 12:43 PM, santosh wrote: >> On Wednesday 11 October 2017 07:17 AM, Tan, Jianfeng wrote: >>> Hi, >>> >>> Nice patch series. But I still have a small question about below flag. >>> >>> >>> On 10/6/2017 7:03 PM, Santosh S

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

2017-10-10 Thread Tan, Jianfeng
On 10/11/2017 12:43 PM, santosh wrote: On Wednesday 11 October 2017 07:17 AM, Tan, Jianfeng wrote: Hi, Nice patch series. But I still have a small question about below flag. On 10/6/2017 7:03 PM, Santosh Shukla wrote: Get iommu class of PCI device on the bus and returns preferred iova mapp

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

2017-10-10 Thread santosh
On Wednesday 11 October 2017 07:17 AM, Tan, Jianfeng wrote: > Hi, > > Nice patch series. But I still have a small question about below flag. > > > On 10/6/2017 7:03 PM, Santosh Shukla wrote: >> Get iommu class of PCI device on the bus and returns preferred iova >> mapping mode for that bus. >> >>

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

2017-10-10 Thread Tan, Jianfeng
Hi, Nice patch series. But I still have a small question about below flag. On 10/6/2017 7:03 PM, Santosh Shukla wrote: 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 ne

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

2017-10-06 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