From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0067.outbound.protection.outlook.com [104.47.34.67]) by dpdk.org (Postfix) with ESMTP id 1551F1C00 for ; Thu, 11 May 2017 08:58:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Ap/yH5Z9u3ZIUddegU0CKjwUpQLUU5oQ/XJ4ERpdNAw=; b=JeYFCEP7BE00IsVvuWvv0j4EaT2qmdcYbAfBAgyFF3eRiCDowWezrbuSM/bfKOSa7D47STdX2soNMh7fYnpMNBkRQqGbAIlGGeJse/19RvN5wnnyUki5VXSabW67+UGdcvH5LhTtdncTelyR+5mDOLPj2mocGdPM3PEy9/4GMmA= Authentication-Results: cavium.com; dkim=none (message not signed) header.d=none;cavium.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Thu, 11 May 2017 06:58:17 +0000 Date: Thu, 11 May 2017 12:28:03 +0530 From: Jerin Jacob To: "Sekhar, Ashwin" Cc: "Jacob, Jerin" , "bruce.richardson@intel.com" , "thomas@monjalon.net" , "konstantin.ananyev@intel.com" , "pablo.de.lara.guarch@intel.com" , "Czekaj, Maciej" , "viktorin@rehivetech.com" , "dev@dpdk.org" , "jianbo.liu@linaro.org" Message-ID: <20170511065801.GA5461@jerin> References: <20170510101643.30556-1-ashwin.sekhar@caviumnetworks.com> <20170510101643.30556-3-ashwin.sekhar@caviumnetworks.com> <20170511052457.GB3057@jerin> <1494481037.4256.6.camel@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1494481037.4256.6.camel@caviumnetworks.com> User-Agent: Mutt/1.8.2 (2017-04-18) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0015.INDPRD01.PROD.OUTLOOK.COM (10.164.117.22) To BY1PR0701MB1722.namprd07.prod.outlook.com (10.162.111.141) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3c8a6ca5-0bc2-4218-dd78-08d4983b1c75 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 3:4EUA9j9mIJ7xUxg02M0Qo+8eXDEICDytvjBV9OfTyRq5sq5+aEvMtOv8YRuLRHYNbpk6FFuVmo4ngfva0L/Tb3S8sJmhUFxm7sdMcraMQ42kpK4wwVIE/K1IR4IzCFhK9ydKpdqWMmNkWlb6hOPv6L7fAL7RL5wXBCh2+JJVU1LhEgWyhvzLuDfYxvv0kCq7mupsmfM3XAM2wKFqqyY/jpbb9z9wQUBg7m4UPpXGNCTgptYk+51GcInU5XBwc2KSfY2aV7rxt+WVehIRyMXky6qED0qNamtcozwN5RNJnw2s8IIF5kuJeOIFA6WPMQAF2ixMLGxa0XEkZE7wi4zJHA==; 25:nyQkya6sDEK/eWeLCG8QCgM1oY1683XZgXjRPHwcuBCGBE9Ba9C/2xq6p5oZcbKD94y/vMsPhVZ7avP6GDH1t768TcG7QCOyfb0coHQufHdIpVlmYuelbCf8qREbrtDITzPfaCw3nih5HnqrNiQndUHfdnSEHkK9yLWlgxWUwTkwIISefzE6sIUfkNhk16bpY4wiH547JXjGKItdl5U3RTjSZVEfXQjiefJRpoJN1K/mtpN2jJ+fRVai8w12mfiFv1b2JOcthGRNQKgW6IPgZ6M33doJgYZy0P0+6DHy7u1zlbk1tLC6m3VdrTxVGrmJqfbuMet3laUkS7X0cy9XnRLRa3cUCNreCQXbH5a/ZGCsg8ZLXr2hcYZpvHkCME8PXmDrOngy+WY8bxFZmNaoAMWWHf5zxJxCj680DIhFYTtzySL+/DaJ/h3B7uWSkl8CJk1t5njWsj2Udb7eN6d14X+KWc7WBJMdN9GAZxgbZUc= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 31:WXY3ClKn9GrUvkEaqUZB3IKIpurmcKyYJkm31IrrfnHqK6p2yxdgVDs6uO0govu+ZU2f0dwu1RDn7DLQAFAwed6B7Qa417+tIzZpqWLVpBXvNZG3bQ60neyZquyVEpYw1fhuEKVU5sUj2O97cgWTgotvKpTUOURLURPwclff4fLz8unEWSxA4/DV05JQxU9oLsvLS4YGxpN2f3l6FF9qEZeGtYg37BxrnF+IWy8fY5k=; 20:AX3PK0ManE18wsSfUJva1SubNtng26nWejwgrurRJjz12gTLy9AsOO+eeB7OY8b88fdMNPxHq9BXyzC5z6oOJZW/RBGMMAJ6SSUBcINworH8+p4wV+Avjt8cDiUj2W0XJjG5h189U56fmj1qCeqqY0RtdwSxWIIs6KpC+GZmgmOUtPF33SLZm0Qx9Vt0ov7vWyblAauyXhzqRs5pfP+27s0yTPma/w6nITsjIQs7AWSfbX/24oTxK3UZyzmiZTMLeISo+xAJa808fxAGiDsgLxludI+eu6G0NcJGfTQOy15qMp8bE5+3WH7Jr9RbFGVZnWzD8RmfsS+PKv+XivOBAxhAESJS2thPsU5yvgVgdO34B16eii/O+dHZ/a6DteBLNjYm4F2+W68Oj8JFHGdghsBKz9eGhtfVm1xvWFL6FlION1EMLtvTmr0XJYjzgl1CnybKPt8SlZaqPglR2XP++kx/TfNMYjWEPiyq9MhIRVoSsX3BsduKgbo43XhjZFA13VTP+eZH4Uj7cTbM+Ok3HozxL78iEBvZmmE7surNVOVGtbP0mGizQ+NyPFlScWmdQoATZgTI9pJ4nxFMYs2a9o9pRoQs144XpXAqlAN/mAY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(93006095)(10201501046)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(6072148); SRVR:BY1PR0701MB1722; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1722; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 4:ojwKsDb3TM6Aiwdw0vqnZ4Gxtua6JBuJ+06PsOtpY8Z1V/NcgKckA5ntU//o8rWXx47p2kZLGarDBPKNNB9xJMfvLOhuHu/930CJvNNSSxZ/8aFtL5W3vp1xH64G8wedqdb/KWPWboTcLgCzNX7mbWMPZLEKl2LKVRKpq3XGx0owUONhUTU1H+ur+vR9gHhLQztW8EPgJkar1J6/FhieLZQEYbIeZrI0+9gTem3X5YFhr9CZfaDVB3M6CbxFSKIMmKB/YQd8GrsJxstOG+4yf+JPtXtpyRzhVAAsf487Zjrn43GYisoJMs0pTpynnbyhVnGcdIPz8G0MZ9j1849QyN4RRKZoX6C92Y2VbxbWeHeTYn2fhWsUmok0i//YfKScRnPwUSNAecL+0djex5rZKt8n9SC51+4njx7B9StdgYSvEV9IMMYVj9wic/UerY0DgzXkZIfFK9MaFnfAj2lzWxC+jPrki3weY4c6uaqXwcq74YTz09rimT3lN49p0xMTGKHBm7m9F65/kKZg8sx6RXbNc1RErvWV/tgWdXkewnDgxACoSy2BKw1LQMzOrECxLcH6M3CSr3+UmtZEahQ3tiVpLA8Pszk4hD6hRi9z6UitKDV6Vcb1TA6wCmeYY8W6u/bxtr/5v36D0fPydYJftVndurUYoFgOsoyt3CwaOBoCP1AyNvrpdkJxDxfpGRu+PQhALI/mLlIfEEzYTjISNGcP4LHtU7XKTcxInRJOyY9ok2D+tf+9dkCP52XIHYk49Hps8xsGxfeHFkatMrGqvRlGKVlmXPzea3pFbdOmLrmQW1JfRBhtwcSMcfHdwEuvJIvPh3/Ht77Q9MZI5m5pfw== X-Forefront-PRVS: 0304E36CA3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(24454002)(13464003)(57704003)(377424004)(54906002)(4001350100001)(6666003)(2950100002)(42882006)(93886004)(5660300001)(23726003)(45080400002)(38730400002)(189998001)(478600001)(1076002)(110136004)(54356999)(33716001)(76176999)(6246003)(50986999)(6496005)(83506001)(50466002)(3846002)(9686003)(54896002)(25786009)(55016002)(6862004)(6116002)(2906002)(33656002)(7736002)(4326008)(229853002)(42186005)(72206003)(81166006)(8676002)(47776003)(81156014)(66066001)(5009440100003)(53936002)(18370500001)(319084006)(408884003)(32563001)(319154004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1722; H:jerin; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1722; 23:Cm7Xr97gAnk1HU7ZzCgD/gxOzsB94PIjrlkC00L?= =?us-ascii?Q?/XRHXpLVHQ07ZBFDnBxi9Ncend61upjiXEHM43L8OeuMWHhWS76CWJAZnmET?= =?us-ascii?Q?Bwf9wc3qApwmgG+U51sqrIiYvjaFKq61pd/RAvCBx0NSThkOlzvfHLf4i+80?= =?us-ascii?Q?2sMRWFJ6qPp4zIHeB46QZLa65+8LykGxINNgMItRfWob7R42x9Kor5yMI79J?= =?us-ascii?Q?erLSF/woEkBPfYR831CVpmy+hD7Rq++jbI+2vbdUF0YHh5yU2bffyqe7iPpl?= =?us-ascii?Q?fuo87PvbzwFKZhkDlmv8X4DG9bNKjwLJe4kx2At00HOaTKTqdsbKFEd1SHQn?= =?us-ascii?Q?cPtkC/CYNS0Vgh7+ZLTPGjGTENr53RoiKzKv7+XoK6iXVgSgARHGaVVHmmX4?= =?us-ascii?Q?t1f+xlQEGN2ypF+FgHOP0ZC0tgKEDnKsj8Q8knwYNc4irRH0GtkPpS4z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tHhpSI+tOQfTIgL+3g0qLN256NzM?= =?us-ascii?Q?3C35ikRISbyL8uLLPv3z2wtxv+4OLCu/XouYVYAshPyZRSIvXYAeKVppGuji?= =?us-ascii?Q?tea66HlbUN13o0vuWNZ5nqkyEAVBb/jKFhbeKJUiEQb5cSOybdeD0?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 6:C6z6UGLOuNIH1Uf8YhT6rafvSMR5aAIDG+RamNtSGSLmhTXPC859MiAUI16j6arKfhFg+ChqZnHNk4ZOgbzFq2vGp4PuW4WlYvw2uDrwu5NSDiuVb6OSK3ojYvVLkZ2M3tEieLIcciGWzIo7ztT4rqMzy8E3jvYouDP5NEJ1UelCXGbOzHs1WOfqwy8kcEIXZpbuIsoG0v4AOCC2lNpOpLBS3xk/zzENCMUvXi0WNmBGtLyovRx5pnGQp63487o1uCkLvpJP0dV/jPlgaOvAb/WSVWrrVSTp0rPXcw5q/Xv7nsHyrl8xJVmDy5BTcym/4dd3DAAKlJmhvElcNrD0aCYZWaq6ISIqc8FUeSwtJTfhFxjfr4ExwuGgCYScEOdYIwOSKn8lndM4eU27p289OJ92RCfogJ/NT5fhkA5v3T4tEHHukDq00gM52FDLkND8j8qJXdd7B3H09aRhgiXIC/XAqJ05mn343iJaISTzQr5hu77CuIGxOdKG4yqk/6ACZWW2WKp4MXSi+bl2Ji5tZg==; 5:vca8rQj0cc1SEuWbzmjiGlB2+9ziYwZ+XUb2GkOqkD9++ZTQPnzc4iuwFmCxN5nqsDA73jU8KwrR193Cp/91AC08itlHKBS3+ZHfdLpkIYQvsCHvIFMN80ijpBqqvcibYigwANZXdTeUvdSOq1qz4g==; 24:yTgG8nsySFZL0jLBVqfTjWye/ou2iVzSVveMcYTvS5bQ8VN3MOLwTbxFLoN3roF3Pvxg16S3rVyhz0C3TNtsPGllaOyMyQj1wbfvZ8qiAek= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1722; 7:/1/GE6wmCgKMQ5EgUhCcRZ0o/YgUZF/CTToFs+xQFjy5shvJGJGPsxTUuuv336sRxn9pQMkGks/7XApZae7AdMbJqIlsm4iQoC9aej36mzfL9nDKYRSxBHy0EUwYqNuljlb6i5T0lXtuNKsNgOuPqpZxjKTd6NpwvE11w2aBWhNYIdACSW3Mql0l1SZQ6byFqWtEC0m6tWY3Xv/2W7NExFAMR4EvAcKmtqIWn1wmlrlEr5LJPvJaQrTkaDB/bwjRXLYlt1s2SFunQMkcyXTgDlTf5iLZ2mEIwsuFo/afKUIS9A6r0hVLlHL1bVlEIDi7uXvAipsXOE0GrVih7T240A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2017 06:58:17.7291 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1722 Subject: Re: [dpdk-dev] [PATCH 2/6] config: add clang support for armv8a linuxapp X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2017 06:58:24 -0000 -----Original Message----- > Date: Thu, 11 May 2017 11:07:18 +0530 > From: "Sekhar, Ashwin" > To: "Jacob, Jerin" > CC: "bruce.richardson@intel.com" , > "thomas@monjalon.net" , > "konstantin.ananyev@intel.com" , > "pablo.de.lara.guarch@intel.com" , > "Czekaj, Maciej" , "viktorin@rehivetech.com" > , "dev@dpdk.org" , > "jianbo.liu@linaro.org" > Subject: Re: [dpdk-dev] [PATCH 2/6] config: add clang support for armv8a > linuxapp > > > > > > >
On Thu, 2017-05-11 at 10:54 +0530, Jerin Jacob wrote:
> > -----Original Message-----
> > >
> > > Date: Wed, 10 May 2017 03:16:39 -0700
> > > From: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
> > > To: thomas@monjalon.net, jerin.jacob@caviumnetworks.com,
> > >  maciej.czekaj@caviumnetworks.com, viktorin@rehivetech.com,
> > >  jianbo.liu@linaro.org, bruce.richardson@intel.com,
> > >  pablo.de.lara.guarch@intel.com, konstantin.ananyev@intel.com
> > > Cc: dev@dpdk.org, Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.c
> > > om>
> > > Subject: [dpdk-dev] [PATCH 2/6] config: add clang support for
> > > armv8a
> > >  linuxapp
> > > X-Mailer: git-send-email 2.13.0.rc1
> > >
> > > Added new config arm64-armv8a-linuxapp-clang
> > >
> > > Signed-off-by: Ashwin Sekhar T K <ashwin.sekhar@caviumnetworks.com>
> > > ---
> > >  config/defconfig_arm64-armv8a-linuxapp-clang | 56
> > > ++++++++++++++++++++++++++++
> > >  1 file changed, 56 insertions(+)
> > >  create mode 100644 config/defconfig_arm64-armv8a-linuxapp-clang
> > >
> > > diff --git a/config/defconfig_arm64-armv8a-linuxapp-clang
> > > b/config/defconfig_arm64-armv8a-linuxapp-clang
> > > +#include "common_linuxapp"
> > > +
> > > +CONFIG_RTE_MACHINE="armv8a"
> > > +
> > > +CONFIG_RTE_ARCH="arm64"
> > > +CONFIG_RTE_ARCH_ARM64=y
> > > +CONFIG_RTE_ARCH_64=y
> > > +
> > > +CONFIG_RTE_FORCE_INTRINSICS=y
> > > +
> > > +CONFIG_RTE_TOOLCHAIN="clang"
> > > +CONFIG_RTE_TOOLCHAIN_CLANG=y
> > > +
> > > +# Maximum available cache line size in arm64 implementations.
> > > +# Setting to maximum available cache line size in generic config
> > > +# to address minimum DMA alignment across all arm64
> > > implementations.
> > > +CONFIG_RTE_CACHE_LINE_SIZE=128
> > > +
> > > +CONFIG_RTE_EAL_IGB_UIO=n
> > > +
> > > +CONFIG_RTE_LIBRTE_FM10K_PMD=n
> > > +CONFIG_RTE_LIBRTE_SFC_EFX_PMD=n
> > > +CONFIG_RTE_LIBRTE_AVP_PMD=n
> > > +
> > > +CONFIG_RTE_SCHED_VECTOR=n
> > IMO, It is better to create common_armv8 config and let gcc and clang
> > use that to avoid duplicating the symbols.
> >
> For x86, this is the convention that is followed. There are separate
> defconfigs for icc, gcc, clang with symbols duplicated. Do we need to
> deviate from this convention for armv8a?
x86 case it bit different as the delta between common_config and x86 is very minimal. for arm64 case, Following configs needs to be duplicated in both clang and gcc. CONFIG_RTE_CACHE_LINE_SIZE=128 CONFIG_RTE_EAL_IGB_UIO=n CONFIG_RTE_LIBRTE_FM10K_PMD=n CONFIG_RTE_LIBRTE_SFC_EFX_PMD=n CONFIG_RTE_LIBRTE_AVP_PMD=n CONFIG_RTE_SCHED_VECTOR=n That creates mutability issue. Creating a common common_armv8_linuxapp will fix that issue.