From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 532CD7D4E; Thu, 7 Sep 2017 12:09:17 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Sep 2017 03:09:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,357,1500966000"; d="scan'208";a="309000647" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.24]) by fmsmga004.fm.intel.com with SMTP; 07 Sep 2017 03:09:14 -0700 Received: by (sSMTP sendmail emulation); Thu, 07 Sep 2017 11:09:14 +0100 Date: Thu, 7 Sep 2017 11:09:13 +0100 From: Bruce Richardson To: "Li, Xiaoyun" Cc: "dev@dpdk.org" , "Zhang, Helin" , "stable@dpdk.org" Message-ID: <20170907100913.GA27168@bricha3-MOBL3.ger.corp.intel.com> References: <1504773317-2042-1-git-send-email-xiaoyun.li@intel.com> <20170907085640.GA24764@bricha3-MOBL3.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.3 (2017-05-23) Subject: Re: [dpdk-stable] [PATCH] mk: fix compiling error for atom target X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2017 10:09:18 -0000 On Thu, Sep 07, 2017 at 10:31:17AM +0100, Li, Xiaoyun wrote: > Hi > So I should delete the mk/machine/atm folder and add a new mk/machine/silvermont folder, right? > And in silvermont/rte.vars.mk, there is sentence " MACHINE_CFLAGS = -march=silvermont ". > The annotation just adds the copy of others like original atm? > Another thing, we don't need to create the config file (defconfig_x86_64-silvermont-linuxapp-gcc), right? > Yes, that is correct. > Best Regards > Xiaoyun Li > Thanks, /Bruce > > > -----Original Message----- > From: Richardson, Bruce > Sent: Thursday, September 7, 2017 16:57 > To: Li, Xiaoyun > Cc: dev@dpdk.org; Zhang, Helin ; stable@dpdk.org > Subject: Re: [PATCH] mk: fix compiling error for atom target > > On Thu, Sep 07, 2017 at 04:35:17PM +0800, Xiaoyun Li wrote: > > GCC thinks target atom doesn't support SSE4.2 and SSE4 is now part of > > minimum requirements for DPDK on x86. So there are compiling errors > > when cross-compiling for target atom. And in fact, the atom supports SSE4 now. > > This patch fixes this issue. > > > > Fixes: 5ea4d4688dce ("net/ixgbe: remove fallback code for x86 > > non-SSE4") > > Cc: stable@dpdk.org > > > > Signed-off-by: Xiaoyun Li > > The -march=atom flag is for older atom CPUs, and is no longer advertised by gcc, since all -march flags now correspond to the actual core microarchitecture used. [man gcc on Fedora 26, no longer lists atom as a valid march value, though it's probably still accepted for backward compatibility]. The direct replacement for atom is "bonnell", which does not have SSE4.2 support, so we should not use. What we do support is later atoms, so the architecture targets for atom should be "-march=silvermont". This automatically includes sse4 support so no additional flags needed. > > Note: I previously had this discussion with Neil on-list, but forgot to do the follow-up work agreed on. See: > https://www.mail-archive.com/dev@dpdk.org/msg72629.html > The agreed plan was to remove atom as a target for DPDK builds and add a "silvermont" replacement instead. If you have time, perhaps you could look at doing that instead of this fix? > > /Bruce > > > --- > > mk/machine/atm/rte.vars.mk | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/mk/machine/atm/rte.vars.mk b/mk/machine/atm/rte.vars.mk > > index cfed110..a6899d9 100644 > > --- a/mk/machine/atm/rte.vars.mk > > +++ b/mk/machine/atm/rte.vars.mk > > @@ -56,3 +56,5 @@ > > # CPU_ASFLAGS = > > > > MACHINE_CFLAGS = -march=atom > > + > > +MACHINE_CFLAGS += -msse4.2 > > -- > > 2.7.4 > >