[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-06-15 Thread Thomas Monjalon
2016-05-30 10:45, Olivier Matz: > On 05/24/2016 07:15 AM, Yuanhan Liu wrote: > > On Mon, May 23, 2016 at 03:40:58PM +0200, Olivier Matz wrote: > >> For reference, here is the report of the ABI checker for EAL: > >> > >> [?] struct rte_pci_ioport (2) > >> > >> 1 Field len has been added to this

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-30 Thread Olivier Matz
On 05/24/2016 07:15 AM, Yuanhan Liu wrote: > On Mon, May 23, 2016 at 03:40:58PM +0200, Olivier Matz wrote: >> For reference, here is the report of the ABI checker for EAL: >> >> [?] struct rte_pci_ioport (2) >> >> 1 Field len has been added to this type. >>1) This field will not be

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-24 Thread Yuanhan Liu
On Mon, May 23, 2016 at 03:40:58PM +0200, Olivier Matz wrote: > For reference, here is the report of the ABI checker for EAL: > > [?] struct rte_pci_ioport (2) > > 1 Field len has been added to this type. >1) This field will not be initialized by old clients. >2) Size of the inclusive

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-23 Thread Yuanhan Liu
On Tue, May 17, 2016 at 05:54:01PM +0200, David Marchand wrote: > > +pci_uio_ioport_map(struct rte_pci_device *dev, int bar, > > + struct rte_pci_ioport *p) > > +{ > > + FILE *f; > > + char buf[BUFSIZ]; > > + char filename[PATH_MAX]; > > + uint64_t

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-23 Thread Olivier Matz
Hi Yuanhan, On 05/23/2016 03:07 PM, Yuanhan Liu wrote: > On Tue, May 17, 2016 at 05:54:01PM +0200, David Marchand wrote: >>> +pci_uio_ioport_map(struct rte_pci_device *dev, int bar, >>> + struct rte_pci_ioport *p) >>> +{ >>> + FILE *f; >>> + char buf[BUFSIZ]; >>> +

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-18 Thread Olivier Matz
Hi David, On 05/17/2016 05:54 PM, David Marchand wrote: > On Tue, May 17, 2016 at 11:59 AM, Olivier Matz > wrote: >> + /* mmap the pci resource */ >> + fd = open(filename, O_RDWR); >> + if (fd < 0) { >> + RTE_LOG(ERR, EAL, "Cannot open %s: %s\n", filename, >> +

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-17 Thread David Marchand
Hello Olivier, On Tue, May 17, 2016 at 11:59 AM, Olivier Matz wrote: > diff --git a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c > b/lib/librte_eal/linuxapp/eal/eal_pci_uio.c > index ac449c5..077ad96 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_pci_uio.c > +++

[dpdk-dev] [PATCH v2 5/7] eal/linux: mmap ioports on ppc64

2016-05-17 Thread Olivier Matz
On PPC64, the ioports are mapped in memory. Implement the missing part of ioport API for PPC64 when using uio. This may also work on other architectures but it has not been tested. Signed-off-by: David Marchand Signed-off-by: Olivier Matz --- lib/librte_eal/common/include/rte_pci.h| 4 +-