From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id 798F32C6B for ; Fri, 13 May 2016 16:33:37 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id g17so33504363wme.1 for ; Fri, 13 May 2016 07:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4mB8DSm03u5NvY0D3/czY4HumFW71vgM5nKePmUVw0I=; b=G/xmylemLoL+gki8P4UntqXDiK5Uim7M0MEZEYvMfEjdo3DevbM8xqah3uK2+tM4Sy v3HnFV5NQUwyGy4onQ1ipEhb9pWsfauqg2oysclM7XhLZTQgqrdISPfeh9t0eXFSRJgA Zmdqe8DIOYPmUs69B1y2tvDPIj7bCwznsJhSCBAq82x1WBW8FtPGOnNCFJ6G/YrmAvJN vxscemgehiYCgQ7OCelhphDgewUMmNnRYq1nog9fdDACSydZKDuz/OIjSLe4VoAiM+jJ H04I6IM/Do47fpEHNFLlZ0s98zwz+knMR/EfDIuB9ZYG3n7AwJyxlicp68C8Mi1Zt+Ut 2msw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4mB8DSm03u5NvY0D3/czY4HumFW71vgM5nKePmUVw0I=; b=ZZKP1sLhRw1lzv2ho0s7z7XJGnVRM9icdf+pMV4GzXgqvELNTVidSA+wO/2c/C1d5T Y5qOlgeHMTjQv2wU+QzZje7ihqF3vbkgcV4woC9za2WilRZ6sRgCSbDssQqZg4LFs+I0 95DpzWeYDIPc1jZJgd7ReaW7iPsk8VIN/ViYW9NYr2LlOIl/1G1UTWfyVlT6N8g9na8A QbU6ZIVnsVjLj+p0Im5iq9P3foOPBieNf/DeAC+jPGdiHg7NBzCGqkxzIilam06ms66l rh8ry1aTwTi1+UmsyNVV9GxdpG5rXmyLDT3aMhkznZgSFqauKCRtvkzjfir4vWA0l3DI aCXQ== X-Gm-Message-State: AOPr4FWJwhh+UflEE5UXEgNSCKq8cJMF/rStbqS+fBvhQALvm7EEzn7qlRmKNIMmeGWunZLuJmkdYUhDZG1xeMhB X-Received: by 10.194.228.102 with SMTP id sh6mr7029467wjc.173.1463150017274; Fri, 13 May 2016 07:33:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.16.2 with HTTP; Fri, 13 May 2016 07:33:17 -0700 (PDT) In-Reply-To: <1463143859-3105-6-git-send-email-olivier.matz@6wind.com> References: <1463143859-3105-1-git-send-email-olivier.matz@6wind.com> <1463143859-3105-6-git-send-email-olivier.matz@6wind.com> From: David Marchand Date: Fri, 13 May 2016 16:33:17 +0200 Message-ID: To: Olivier Matz Cc: "dev@dpdk.org" , Chao Zhu Content-Type: text/plain; charset=UTF-8 Subject: Re: [dpdk-dev] [PATCH 5/7] eal/linux: mmap ioports on ppc64 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 14:33:37 -0000 On Fri, May 13, 2016 at 2:50 PM, Olivier Matz wrote: > 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 +- > lib/librte_eal/linuxapp/eal/eal_pci.c | 4 +- > lib/librte_eal/linuxapp/eal/eal_pci_init.h | 6 ++ > lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 119 +++++++++++++++++++++++------ > 4 files changed, 107 insertions(+), 26 deletions(-) > > diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h > index fd049d1..4657396 100644 > --- a/lib/librte_eal/common/include/rte_pci.h > +++ b/lib/librte_eal/common/include/rte_pci.h > @@ -105,7 +105,8 @@ extern struct pci_device_list pci_device_list; /**< Global list of PCI devices. > /** Nb. of values in PCI resource format. */ > #define PCI_RESOURCE_FMT_NVAL 3 > > -/** IO resource type: memory address space */ > +/** IO resource type: */ > +#define IORESOURCE_IO 0x00000100 > #define IORESOURCE_MEM 0x00000200 > > /** This could go in a linux-specific header. > diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c > index 1a93725..f1ea52b 100644 > --- a/lib/librte_eal/linuxapp/eal/eal_pci.c > +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c > @@ -191,9 +191,9 @@ pci_find_max_end_va(void) > } > > /* parse one line of the "resource" sysfs file (note that the 'line' > - * string is modified) > + * string is modified > */ Garbage ? -- David Marchand