From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luca Boccassi Subject: Re: [PATCH] config: change default cache line size for ARMv8 with meson Date: Wed, 09 Jan 2019 15:41:33 +0000 Message-ID: <1547048493.6022.65.camel@debian.org> References: <20190109093915.40882-1-yskoh@mellanox.com> <3649611.6SvQ7ZztEu@xps> <6f5a14e478d7c92d1f08a749afac8bb785b3b492.camel@marvell.com> <4346565.rU6Rjy1soH@xps> <043755be57a2f0b30a16d620180bbaa1f5c3144e.camel@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: "shahafs@mellanox.com" , "honnappa.nagarahalli@arm.com" , "Gavin.Hu@arm.com" , "tspeier@qti.qualcomm.com" , "dev@dpdk.org" To: Jerin Jacob Kollanukkaran , "thomas@monjalon.net" , "yskoh@mellanox.com" Return-path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by dpdk.org (Postfix) with ESMTP id 329451B4AF for ; Wed, 9 Jan 2019 16:41:35 +0100 (CET) Received: by mail-wr1-f65.google.com with SMTP id c14so8193172wrr.0 for ; Wed, 09 Jan 2019 07:41:35 -0800 (PST) In-Reply-To: <043755be57a2f0b30a16d620180bbaa1f5c3144e.camel@marvell.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 Wed, 2019-01-09 at 15:34 +0000, Jerin Jacob Kollanukkaran wrote: > > > Please check below thread and patch. > > >=20 > > > http://mails.dpdk.org/archives/dev/2019-January/122676.html > > > https://patches.dpdk.org/patch/49477/ > > >=20 > > > Debian folks are building like this for the _generic_ image. > > > What ever works for every distros, I am fine with that. > > >=20 > > > meson configure -Dmachine=3Ddefault > > > meson build > > > cd build > > > ninja > > > ninja install > >=20 > > I think we agree on the idea of having different configs > > for unmodified A72 core and generic build working for all. >=20 > Yes, I agree. config or some scheme to address the generic and > default > usecase. >=20 > > The remaining bits to discuss are: > > - do we want to use the armv8 config for unmodified A72? > > - what should be the name of the generic config? >=20 > If all distros following "meson configure -Dmachine=3Ddefault" scheme > why not follow that to make generic image. i.e when machine=3Ddefault > set then Cache lize size 128B CL specific stuff be kicked in else > it probe the value based on MIDR from sysfs. >=20 >=20 > > When digging more the config files in meson, I found this: > > =09 > > http://mesonbuild.com/Cross-compilation.html#cross-file-locations > > It says that distros or compilers should provide some config files. > > It means we should check if some standard names are emerging > > and try to follow the same naming, or even re-use existing config > > files. >=20 > I think this for cross compilation. if I understand it correctly, > distro folks build arm64 image on arm64 target(not on x86) with > generic > images with lowest denominator cpu flags and such that works for all > platforms. >=20 > Something similar found in arch linux website for arm64. > https://archlinuxarm.org/platforms/armv8/generic >=20 > See Platforms: ARMv8 >=20 > Anyway I am leaving this decision to distro folks or whoever is > expert > in meson based distro build generic creation. Just a comment to confirm that yes, in general distributions do not do cross-builds, but native builds. That is certainly the case for Debian, and I am 99% sure it is also the case for Ubuntu and SUSE. --=20 Kind regards, Luca Boccassi