From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavan Nikhilesh Subject: Re: [PATCH v5 2/2] build: add support for detecting march on ARM Date: Mon, 22 Jan 2018 20:14:43 +0530 Message-ID: <20180122144442.hnpnih73h4dgj42u@Pavan-LT> References: <20171219105338.198727-1-bruce.richardson@intel.com> <20180122114649.5907-1-pbhagavatula@caviumnetworks.com> <20180122114649.5907-2-pbhagavatula@caviumnetworks.com> <20180122123053.GA19076@bricha3-MOBL3.ger.corp.intel.com> <20180122123717.7ku5z6yr5dz6mit3@Pavan-LT> <20180122140927.GA9108@bricha3-MOBL3.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Bruce Richardson , jerin.jacob@caviumnetworks.com, harry.van.haaren@intel.com, herbert.guan@arm.com, hemant.agrawal@nxp.com Return-path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0060.outbound.protection.outlook.com [104.47.32.60]) by dpdk.org (Postfix) with ESMTP id CBA0A58CE for ; Mon, 22 Jan 2018 15:45:06 +0100 (CET) Content-Disposition: inline In-Reply-To: <20180122140927.GA9108@bricha3-MOBL3.ger.corp.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, Jan 22, 2018 at 02:09:28PM +0000, Bruce Richardson wrote: > On Mon, Jan 22, 2018 at 06:07:18PM +0530, Pavan Nikhilesh wrote: > > On Mon, Jan 22, 2018 at 12:30:53PM +0000, Bruce Richardson wrote: > > > On Mon, Jan 22, 2018 at 05:16:49PM +0530, Pavan Nikhilesh wrote: > > > > Added support for detecting march and mcpu by reading midr_el1 > > > > register. The implementer, primary part number values read can be > > > > used to figure out the underlying arm cpu. > > > > > > > > Signed-off-by: Pavan Nikhilesh > > > > --- app/test-pmd/meson.build | 2 +- > > > > config/arm/armv8_machine.py | 18 +++++++++ config/arm/meson.build > > > > | 95 +++++++++++++++++++++++++++++++++++++++++---- > > > > config/meson.build | 19 ++++----- drivers/meson.build > > > > | 2 +- examples/meson.build | 2 +- lib/meson.build > > > > | 2 +- meson.build | 2 +- test/test/meson.build > > > > | 2 +- 9 files changed, 121 insertions(+), 23 deletions(-) create > > > > mode 100755 config/arm/armv8_machine.py > > > > > > > > > > + + if machine == 'generic' + machine = > > > > impl_generic + cmd_output = cmd_generic + endif + > > > > + message('Implementer : ' + machine[0]) > > > > > > When cross-compiling for arm I get an error at this line: > > > > > > Meson encountered an error in file config/arm/meson.build, line > > > 69, column 1: Index 0 out of bounds of array of size 0. > > > > > Will be sending v2 of the cross patch soon(once directory structure > > and file name is fininlized) that would resolve this issue. > > > So is there an expected patch ordering here? I believe the set for > adding Octeon drivers to build is ok to merge, though there is a small > change for renaming machine_arg to machine_args in it if these patches > are not applied first. Will I take that set, if my recent rebase on top > of mainline has not broken it, and you can rebase these to take account > of that extra driver? Now that the cross files naming and directory structure is agreed upon I will merge the patches as a single set and send it fixing the machine_args part for app/test-eventdev. > > /Bruce Thanks, Pavan.