From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f67.google.com (mail-vk0-f67.google.com [209.85.213.67]) by dpdk.org (Postfix) with ESMTP id 3DE582BF6 for ; Mon, 13 Jun 2016 18:15:36 +0200 (CEST) Received: by mail-vk0-f67.google.com with SMTP id t7so21440890vkf.2 for ; Mon, 13 Jun 2016 09:15:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=G9Drc1DiuvXCQ3GEr1JQWFNvS3VOZla+H82XKBIzHDI=; b=ypSPsW67Bkq6GKDX3lE+lLSwfnDp6rqd3wpAm+5iyxW0QdogxJm9untVSF9TtZ8gAg lNFi+ScAcsX+pAm3r2E1AW/F6UpPG49zekRkPBxA1i2jgmjYQUv1zMfPcYOeBMiwUr/j 6wWOiB5Rn9/NzI7ets7Dc9haB6IJMOrmCX/0sqvJhwDD4l6oLwx6rvBdrZl3Fcu6eC6i Z3qyoRFtzZ4Ghlmt2fCHO3k9Lf541dYe6UfpbYlPRHd8mS+C3vLASsVI8Kifsl+j7TJL KaIkhNCliA+dyjlrmENRMGSvD6SFKkHMHF0cI4a5p3Lo6spILJ3UeShGUV8Ok1oJmFiI 0xFA== 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=G9Drc1DiuvXCQ3GEr1JQWFNvS3VOZla+H82XKBIzHDI=; b=ZM8Wb7hFKvo5pjKc7Yl+piN9L5MrQVacZ+yMZ/WEzFNMXTwsgw1QTc5/d1VBlrLJVZ 2Q3qWFvu9IUfwV5HwoZmJh99hfk65ehC26vjR2O3KmHljt+2EZOR5Uh2RVZ0U9Pb56Tq ZuR29vW5c71sE0PThaADNvhhGKHqKziHRadmnGfnwbpVWDOfOujzxs6AI8KKJZEXai0p nKfo4jEqAgypduPuRE8Rhotftp5iqlKUzTWStLc0YtERPd6YcKuHBUOiiqTNxCniVgHQ VCEv4Dbib+dmm++teV3AwuZedY8bdyfbYMRd/4XILbDXUcYCgCoYBOPq+ABySzvFYN4/ ZBTQ== X-Gm-Message-State: ALyK8tLZP5U2QMnBc6f2YWBC5+stZveeWkBZO+FISyKBMJRZMxtVZJ5o4YnJ/F9PQcISrvJKOs/rti/3h6BHuw== X-Received: by 10.176.7.102 with SMTP id h93mr5399414uah.70.1465834535625; Mon, 13 Jun 2016 09:15:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.76.210 with HTTP; Mon, 13 Jun 2016 09:15:06 -0700 (PDT) In-Reply-To: <9B0331B6EBBD0E4684FBFAEDA55776F92CD5CBC7@HASMSX110.ger.corp.intel.com> References: <57515FB0.3040800@intel.com> <9B0331B6EBBD0E4684FBFAEDA55776F92CD5CBC7@HASMSX110.ger.corp.intel.com> From: =?UTF-8?B?TWFydGlueCAtIOOCuOOCp+ODvOODoOOCug==?= Date: Mon, 13 Jun 2016 12:15:06 -0400 Message-ID: To: "Rosen, Rami" Cc: "Yigit, Ferruh" , dev Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] Can't build DPDK-16.04 on CentOS 6.8 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: Mon, 13 Jun 2016 16:15:36 -0000 On 12 June 2016 at 11:30, Rosen, Rami wrote: > Hi Thiago, > > > Any clue? > > Sure. This is the reason: in dpdk-16.04/lib/librte_eal/linuxapp/igb_uio we > have: > .... > #ifndef PCI_MSIX_ENTRY_SIZE > #define PCI_MSIX_ENTRY_SIZE 16 > #define PCI_MSIX_ENTRY_LOWER_ADDR 0 > #define PCI_MSIX_ENTRY_UPPER_ADDR 4 > #define PCI_MSIX_ENTRY_DATA 8 > #define PCI_MSIX_ENTRY_VECTOR_CTRL 12 > #define PCI_MSIX_ENTRY_CTRL_MASKBIT 1 > #endif > ... > > The root cause of the problem is due to that in CentOS 6.8, > PCI_MSIX_ENTRY_SIZE is defined; this > causes *avoiding* having the PCI_MSIX_ENTRY_CTRL_MASKBIT definition as > shown above. > > The definition of PCI_MSIX_ENTRY_SIZE is due to the following patch, which > was introduced in CentOS 6.8, which moved PCI_MSIX_ENTRY_SIZE from the > inner drivers/pci/msi.h header file into include/linux/pci_regs.h, > The linux/pci_regs.h is included in the pci.h header, which is used by the > igb_uio.c, which failed in compilation. > > "PATCH 1/8] PCI: MSI: Move MSI-X entry definition to pci_regs.h" > > --- a/drivers/pci/msi.h > +++ b/drivers/pci/msi.h > @@ -6,12 +6,6 @@ > #ifndef MSI_H > #define MSI_H > > -#define PCI_MSIX_ENTRY_SIZE 16 > ... > ... > ... > diff --git a/include/linux/pci_regs.h b/include/linux/pci_regs.h > index 455b9cc..acfc224 100644 > --- a/include/linux/pci_regs.h > +++ b/include/linux/pci_regs.h > @@ -307,6 +307,13 @@ > #define PCI_MSIX_FLAGS_MASKALL (1 << 14) > #define PCI_MSIX_FLAGS_BIRMASK (7 << 0) > > +/* MSI-X entry's format */ > +#define PCI_MSIX_ENTRY_SIZE 16 > .... > > > http://linux-pci.vger.kernel.narkive.com/cZquopIw/patch-1-8-pci-msi-move-msi-x-entry-definition-to-pci-regs-h > > See also: > rpm -qp --changelog kernel-devel-2.6.32-642.el6.x86_64.rpm | grep "Move > MSI-X entry" > warning: kernel-devel-2.6.32-642.el6.x86_64.rpm: Header V3 RSA/SHA1 > Signature, key ID c105b9de: NOKEY > - [pci] msi: Move MSI-X entry definition to pci_regs.h (Myron Stowe) > [1288629 > > > A proper patch which checks kernel version can fix it. > > Regards, > Rami Rosen > Intel Corporation > > Interesting! Do you have this proper fix? I would like to build and use DPDK on CentOS 6.8... Thank you for your reply! Best, Thiago