[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-31 Thread Santosh Shukla
On Tue, Dec 29, 2015 at 8:21 PM, Santosh Shukla wrote: > On Tue, Dec 29, 2015 at 7:34 PM, Alex Williamson > wrote: >> On Tue, 2015-12-29 at 16:17 +0530, Santosh Shukla wrote: >>> On Tue, Dec 29, 2015 at 3:26 PM, Burakov, Anatoly >>> wrote: >>> > Hi Santosh, >>> > >>> > > On Fri, Dec 18, 2015 at

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Santosh Shukla
On Tue, Dec 29, 2015 at 7:34 PM, Alex Williamson wrote: > On Tue, 2015-12-29 at 16:17 +0530, Santosh Shukla wrote: >> On Tue, Dec 29, 2015 at 3:26 PM, Burakov, Anatoly >> wrote: >> > Hi Santosh, >> > >> > > On Fri, Dec 18, 2015 at 6:25 PM, Santosh Shukla > > > om> >> > > wrote: >> > > > On Fri, D

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Santosh Shukla
On Tue, Dec 29, 2015 at 4:36 PM, Burakov, Anatoly wrote: > Hi Santosh, > >> Look at kernel/resource.c, it exports two symbol ioport_resource and >> iomem_resource and sets appropriate flag type i.e.. IORESOURCE_IO and >> IORESOURCE_MEM. In virtio-net case; it creates both pci region i.e.. >> _io b

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Santosh Shukla
On Tue, Dec 29, 2015 at 3:26 PM, Burakov, Anatoly wrote: > Hi Santosh, > >> On Fri, Dec 18, 2015 at 6:25 PM, Santosh Shukla >> wrote: >> > On Fri, Dec 18, 2015 at 1:51 PM, Yuanhan Liu >> > wrote: >> >> On Fri, Dec 18, 2015 at 01:24:41PM +0530, Santosh Shukla wrote: >> >>> >> I guess we have done

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Santosh Shukla
On Fri, Dec 18, 2015 at 6:25 PM, Santosh Shukla wrote: > On Fri, Dec 18, 2015 at 1:51 PM, Yuanhan Liu > wrote: >> On Fri, Dec 18, 2015 at 01:24:41PM +0530, Santosh Shukla wrote: >>> >> I guess we have done enough evaluation / investigation that suggest - >>> >> so to map iopci region to userspace

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Burakov, Anatoly
Hi Santosh, > Look at kernel/resource.c, it exports two symbol ioport_resource and > iomem_resource and sets appropriate flag type i.e.. IORESOURCE_IO and > IORESOURCE_MEM. In virtio-net case; it creates both pci region i.e.. > _io bar and _mem bar. dpdk virtio pmd driver (<= 0.95 virtio spec) use

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Burakov, Anatoly
Hi Santosh, > On Fri, Dec 18, 2015 at 6:25 PM, Santosh Shukla > wrote: > > On Fri, Dec 18, 2015 at 1:51 PM, Yuanhan Liu > > wrote: > >> On Fri, Dec 18, 2015 at 01:24:41PM +0530, Santosh Shukla wrote: > >>> >> I guess we have done enough evaluation / investigation that > >>> >> suggest - so to ma

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-29 Thread Alex Williamson
On Tue, 2015-12-29 at 16:17 +0530, Santosh Shukla wrote: > On Tue, Dec 29, 2015 at 3:26 PM, Burakov, Anatoly > wrote: > > Hi Santosh, > > > > > On Fri, Dec 18, 2015 at 6:25 PM, Santosh Shukla > > om> > > > wrote: > > > > On Fri, Dec 18, 2015 at 1:51 PM, Yuanhan Liu > > > > wrote: > > > > > On F

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Santosh Shukla
On Fri, Dec 18, 2015 at 1:51 PM, Yuanhan Liu wrote: > On Fri, Dec 18, 2015 at 01:24:41PM +0530, Santosh Shukla wrote: >> >> I guess we have done enough evaluation / investigation that suggest - >> >> so to map iopci region to userspace in arch agnostic-way - >> >> >> >> # either we need to modify

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Yuanhan Liu
On Fri, Dec 18, 2015 at 01:24:41PM +0530, Santosh Shukla wrote: > >> I guess we have done enough evaluation / investigation that suggest - > >> so to map iopci region to userspace in arch agnostic-way - > >> > >> # either we need to modify kernel > >>- Make sure all the non-x86 arch

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Yuanhan Liu
On Fri, Dec 18, 2015 at 12:04:48PM +0530, Jerin Jacob wrote: > > > # either we need to modify kernel > > >- Make sure all the non-x86 arch to support mapping for > > > iopci region (i.e. pci_mmap_page_range). I don;t think its a correct > > > approach though. > > > or >

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Yuanhan Liu
On Thu, Dec 17, 2015 at 04:52:00PM +0530, Santosh Shukla wrote: > >> >> IMO, it is worth keeping one special device file who could work across > >> >> archs like arm/arm64/powerpc and others, who could map iopci bar to > >> >> dpdk user-space. also this approach has no kernel version dependency > >

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Santosh Shukla
On Fri, Dec 18, 2015 at 11:00 AM, Yuanhan Liu wrote: > On Thu, Dec 17, 2015 at 04:52:00PM +0530, Santosh Shukla wrote: >> >> >> IMO, it is worth keeping one special device file who could work across >> >> >> archs like arm/arm64/powerpc and others, who could map iopci bar to >> >> >> dpdk user-spa

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Jerin Jacob
On Fri, Dec 18, 2015 at 01:30:53PM +0800, Yuanhan Liu wrote: > On Thu, Dec 17, 2015 at 04:52:00PM +0530, Santosh Shukla wrote: > > >> >> IMO, it is worth keeping one special device file who could work across > > >> >> archs like arm/arm64/powerpc and others, who could map iopci bar to > > >> >> dpd

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-18 Thread Thomas Monjalon
2015-12-18 12:04, Jerin Jacob: > On Fri, Dec 18, 2015 at 01:30:53PM +0800, Yuanhan Liu wrote: > > On Thu, Dec 17, 2015 at 04:52:00PM +0530, Santosh Shukla wrote: > > > > One of the main issue with out-of-tree kernel modules is the version > > > > dependency. Probably that igb_uio from DPDK 2.3 will

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Yuanhan Liu
On Wed, Dec 16, 2015 at 07:21:55PM +0530, Santosh Shukla wrote: > On Wed, Dec 16, 2015 at 6:18 PM, Yuanhan Liu > wrote: > > On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: > >> x86 requires a special set of instructions to access ioports, but other > >> architectures let you remap

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Santosh Shukla
On Thu, Dec 17, 2015 at 4:03 PM, Thomas Monjalon wrote: > 2015-12-17 15:51, Santosh Shukla: >> On Thu, Dec 17, 2015 at 3:44 PM, Thomas Monjalon >> wrote: >> > Hi, >> > >> > 2015-12-17 15:37, Santosh Shukla: >> >> On Thu, Dec 17, 2015 at 3:32 PM, Santosh Shukla >> >> wrote: >> >> > On Thu, Dec 1

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Santosh Shukla
On Thu, Dec 17, 2015 at 3:44 PM, Thomas Monjalon wrote: > Hi, > > 2015-12-17 15:37, Santosh Shukla: >> On Thu, Dec 17, 2015 at 3:32 PM, Santosh Shukla >> wrote: >> > On Thu, Dec 17, 2015 at 3:31 PM, Santosh Shukla >> > wrote: >> >> On Thu, Dec 17, 2015 at 3:08 PM, Yuanhan Liu >> >> wrote: >>

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Santosh Shukla
On Thu, Dec 17, 2015 at 3:32 PM, Santosh Shukla wrote: > On Thu, Dec 17, 2015 at 3:31 PM, Santosh Shukla wrote: >> On Thu, Dec 17, 2015 at 3:08 PM, Yuanhan Liu >> wrote: >>> On Wed, Dec 16, 2015 at 07:21:55PM +0530, Santosh Shukla wrote: On Wed, Dec 16, 2015 at 6:18 PM, Yuanhan Liu wr

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Santosh Shukla
On Thu, Dec 17, 2015 at 3:31 PM, Santosh Shukla wrote: > On Thu, Dec 17, 2015 at 3:08 PM, Yuanhan Liu > wrote: >> On Wed, Dec 16, 2015 at 07:21:55PM +0530, Santosh Shukla wrote: >>> On Wed, Dec 16, 2015 at 6:18 PM, Yuanhan Liu >>> wrote: >>> > On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marc

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Santosh Shukla
On Thu, Dec 17, 2015 at 3:08 PM, Yuanhan Liu wrote: > On Wed, Dec 16, 2015 at 07:21:55PM +0530, Santosh Shukla wrote: >> On Wed, Dec 16, 2015 at 6:18 PM, Yuanhan Liu >> wrote: >> > On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: >> >> x86 requires a special set of instructions to

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Thomas Monjalon
2015-12-17 15:51, Santosh Shukla: > On Thu, Dec 17, 2015 at 3:44 PM, Thomas Monjalon > wrote: > > Hi, > > > > 2015-12-17 15:37, Santosh Shukla: > >> On Thu, Dec 17, 2015 at 3:32 PM, Santosh Shukla > >> wrote: > >> > On Thu, Dec 17, 2015 at 3:31 PM, Santosh Shukla > >> > wrote: > >> >> On Thu,

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-17 Thread Thomas Monjalon
Hi, 2015-12-17 15:37, Santosh Shukla: > On Thu, Dec 17, 2015 at 3:32 PM, Santosh Shukla wrote: > > On Thu, Dec 17, 2015 at 3:31 PM, Santosh Shukla > > wrote: > >> On Thu, Dec 17, 2015 at 3:08 PM, Yuanhan Liu > >> wrote: > >>> On Wed, Dec 16, 2015 at 07:21:55PM +0530, Santosh Shukla wrote: > >>

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread Yuanhan Liu
On Wed, Dec 16, 2015 at 02:34:35PM +0100, David Marchand wrote: > Yuanhan, > > On Wed, Dec 16, 2015 at 1:48 PM, Yuanhan Liu > wrote: > > On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: > > x86 requires a special set of instructions to access ioports, but other > > arc

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread Yuanhan Liu
On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: > x86 requires a special set of instructions to access ioports, but other > architectures let you remap io resources. > So let eal remap io resources by accepting IORESOURCE_IO flag for > architectures other than x86. One question: th

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread Santosh Shukla
On Wed, Dec 16, 2015 at 6:18 PM, Yuanhan Liu wrote: > On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: >> x86 requires a special set of instructions to access ioports, but other >> architectures let you remap io resources. >> So let eal remap io resources by accepting IORESOURCE_IO

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread David Marchand
Yuanhan, On Wed, Dec 16, 2015 at 1:48 PM, Yuanhan Liu wrote: > On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: > > x86 requires a special set of instructions to access ioports, but other > > architectures let you remap io resources. > > So let eal remap io resources by accepting

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread David Marchand
Bruce, On Wed, Dec 16, 2015 at 2:15 PM, Bruce Richardson < bruce.richardson at intel.com> wrote: > > > +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) > > + /* x86 can not remap ioports, so skip it, remapping code > will > > + * look at dev->mem_resource[i].phys_a

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread David Marchand
x86 requires a special set of instructions to access ioports, but other architectures let you remap io resources. So let eal remap io resources by accepting IORESOURCE_IO flag for architectures other than x86. Signed-off-by: David Marchand --- lib/librte_eal/common/include/rte_pci.h |3 ++-

[dpdk-dev] [PATCH] eal: map io resources for non x86 architectures

2015-12-16 Thread Bruce Richardson
On Wed, Dec 16, 2015 at 01:31:04PM +0100, David Marchand wrote: > x86 requires a special set of instructions to access ioports, but other > architectures let you remap io resources. > So let eal remap io resources by accepting IORESOURCE_IO flag for > architectures other than x86. > > Signed-off-b