All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sinan Kaya <okaya@kernel.org>
To: Andrey Zhizhikin <andrey.z@gmail.com>
Cc: Sinan Kaya <sinan.kaya@microsoft.com>,
	openembeded-devel <openembedded-devel@lists.openembedded.org>,
	Changyu Li <Changyu.Li@microsoft.com>
Subject: Re: [meta-oe][PATCH v2] abseil-cpp: add recipe for git version
Date: Mon, 10 Feb 2020 14:31:11 -0500	[thread overview]
Message-ID: <0bf0b668-9fd5-aae9-bf7b-7b741beb84bd@kernel.org> (raw)
In-Reply-To: <CAHtQpK4FHyyhkmayDhcNJXs+0kp9+K1fULG21q9P+C=OtFDpLw@mail.gmail.com>

On 2/10/2020 1:17 PM, Andrey Zhizhikin wrote:
>> +TARGET_CXXFLAGS += "${@bb.utils.contains('TARGET_ARCH', 'aarch64', '
>> -march=armv8-a+crypto', '', d)}"
> This cannot be enforced, as it would break those AArch64 derivatives,
> which does not have Crypto extension. See my comment above, where I
> extracted 2 sets of tune features for Cortex-A53. That means that
> there are SoCs there from different vendors, and some vendors decided
> to license Crypto extensions from ARM to include it in their RTL, but
> some opted out to save either space on a die or cost of the processor.
> 
> If you would base your build with '+crypto' unconditionally, then the
> binary would segfault on those SoCs which has Crypto opted out.
> 
> Moreover, enabling crypto extension in GCC automatically enables
> inlined NEON and VFP opcodes (see [1]), and there are more side
> effects to be expected on those SOCs which does not have those
> integrated.
> 

I agree. I dropped this line on v3.

I was curious about

TARGET_CXXFLAGS += "${@bb.utils.contains('TARGET_ARCH', 'x64', ' -maes
-msse4.1', '', d)}"

do we have a feature flag for this too?

Code doesn't compile without arch crypt support.


  reply	other threads:[~2020-02-10 19:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-10 17:47 [meta-oe][PATCH v2] abseil-cpp: add recipe for git version Sinan Kaya
2020-02-10 18:17 ` Andrey Zhizhikin
2020-02-10 19:31   ` Sinan Kaya [this message]
2020-02-10 19:36     ` Khem Raj
2020-02-11  7:06       ` Khem Raj
2020-02-11 16:41         ` Sinan Kaya
2020-02-11 16:43       ` Sinan Kaya

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0bf0b668-9fd5-aae9-bf7b-7b741beb84bd@kernel.org \
    --to=okaya@kernel.org \
    --cc=Changyu.Li@microsoft.com \
    --cc=andrey.z@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=sinan.kaya@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.