From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id DCA1BA0547;
	Wed, 19 May 2021 11:59:38 +0200 (CEST)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id C976B40143;
	Wed, 19 May 2021 11:59:38 +0200 (CEST)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com
 [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 939994003F
 for <dev@dpdk.org>; Wed, 19 May 2021 11:59:37 +0200 (CEST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46])
 by mailout.nyi.internal (Postfix) with ESMTP id 2AB175C0190;
 Wed, 19 May 2021 05:59:37 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute6.internal (MEProxy); Wed, 19 May 2021 05:59:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 from:to:cc:subject:date:message-id:in-reply-to:references
 :mime-version:content-transfer-encoding:content-type; s=fm1; bh=
 ERfv9QUP+eKaqJUdmfIsIl8QCiYwg70mJSfCE6Lr3nY=; b=BLM6v5pjg/Tr8QxN
 cb9dEPwbJ4smNtLwGMrM18tzvBiN7oghDm4pczBwjYXvDTwLXV/q05WxqElHtGfy
 DBCN1ZyQYUN/oSREFruupegBjrs7e/wDc62o0AUJ6tFSf8KJ+qASItSMmWsZYhNF
 MftUo2H9njEiUOxaMNABK0AkRaSvLL4/gnDjY4UT59ULATmJZwY7Bws4oLXZch9z
 HhUm658ACspURTG96e27Yb4VxNbcPd1T7g2NsLrBWcn7Tqx6qEGd6XaO+eQKMbES
 xUT5o8WBYqxwIaCzBwoAJhw3zQV9Cu7kOwNuL/GASK4S5SxuhU8QrpOcOuUN63hN
 xKqpEA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :date:from:in-reply-to:message-id:mime-version:references
 :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender
 :x-sasl-enc; s=fm2; bh=ERfv9QUP+eKaqJUdmfIsIl8QCiYwg70mJSfCE6Lr3
 nY=; b=jFz7lB7CerKMWfyUN9ysDf8zEx+xj0RfRGpn6Tn5ZFpoCGBVk/2mr7KsT
 7XqdvD2KDi5qoXtSvci8zjtVsSb+HwEq8KZjYMtyxkx+XzU9ymmT2wIYNdu5ID6j
 VniYmobICxTMMsGaM5I3wmhTF97NUL/4VCde1Gf0yLBZZuLucm4uepTia2BYh+b3
 EugXf6Wc5lX1l0b+iX3QAXs8RSFOP1iUyQh14vXyachtYUNipplfOj84a3XMf9ZT
 +lyaBgr4KQFhPm7p38CUFURu0GwA3gBeEi7ld6JDe4MHvtEe/byi2tMbF3CGB72Z
 VVMbaPq2Zfc59KFo5r+xdAJlyTvMA==
X-ME-Sender: <xms:iOGkYAT6F5ByKZcSYBTarHGqWTez9aAbaqC5Xxea4m8A1iTacrpMvw>
 <xme:iOGkYNwneyDv7M7mNgZfvjhLT_-kKgurnTjwoIYjWYg_p0M1VVuznJ7HR5FWk2Qod
 7mBaV0wvkvueBPMqg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeiledgvddvucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr
 shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg
 ftrfgrthhtvghrnhepffdvffejueetleefieeludduuefgteejleevfeekjeefieegheet
 ffdvkeefgedunecuffhomhgrihhnpeguphgukhdrohhrghenucfkphepjeejrddufeegrd
 dvtdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf
 rhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth
X-ME-Proxy: <xmx:iOGkYN34b_jD_pvB2bXX-iAYqbsaokRM0_WLWAeSVS9Ah1egjrjlsg>
 <xmx:iOGkYEDw4rdclyFfIv42QoSRFUwhMns7WFmaSPhou7cs-4zkbFLUlA>
 <xmx:iOGkYJiPvWYBqMadFRizJahuhGh6bzVnFFA1CZuvPGwqMK-22lP_6Q>
 <xmx:ieGkYJJ0PvUpAK272o8KuSG57QiAoxfCxraNS_ADA4a6Q3VTIpa5zg>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA;
 Wed, 19 May 2021 05:59:36 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Piotr Kubaj <pkubaj@anongoth.pl>
Cc: dev@dpdk.org, David Christensen <drc@linux.vnet.ibm.com>
Date: Wed, 19 May 2021 11:59:35 +0200
Message-ID: <3175316.hIkBcZur5t@thomas>
In-Reply-To: <YKThADLi0sDAdBHO@KGPE-D16>
References: <20210517004621.64357-1-pkubaj@FreeBSD.org>
 <3311287.AeGyiQBo7m@thomas> <YKThADLi0sDAdBHO@KGPE-D16>
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
Subject: Re: [dpdk-dev] [PATCH] ppc64le: fix build without glibc and using
 Clang
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

19/05/2021 11:57, Piotr Kubaj:
> Well, isn't FreeBSD already supported?
> 
> Even https://www.dpdk.org/ mentions supporting FreeBSD.

Yes it is supposed to be supported.
But why are you adding all this code for PPC?
It doesn't seem to be all related to clang only.

PS: please do not top-post.


> On 21-05-19 09:53:16, Thomas Monjalon wrote:
> > 18/05/2021 22:42, David Christensen:
> > > On 5/16/21 5:46 PM, Piotr Kubaj wrote:
> > > > __ppc_get_timebase() is only present when glibc is used.
> > > > 
> > > > Signed-off-by: Piotr Kubaj <pkubaj@FreeBSD.org>
> > > > ---
> > > >   lib/eal/ppc/include/rte_altivec.h |  3 +++
> > > >   lib/eal/ppc/include/rte_cycles.h  | 12 ++++++++++++
> > > >   lib/eal/ppc/rte_cycles.c          | 16 ++++++++++++++++
> > > >   3 files changed, 31 insertions(+)
> > > 
> > > Reviewed-by: David Christensen <drc@linux.vnet.ibm.com>
> > 
> > This patch does a lot more than what is described.
> > It seems adding support for FreeBSD.
> > For testing OS, please use #ifdef RTE_EXEC_ENV_*