Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Phil Blundell <philb@gnu.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [CONSOLIDATED PULL 03/19] tune: Add hard floating point variants of cortexa8 tunes
Date: Tue, 23 Aug 2011 10:30:55 +0100	[thread overview]
Message-ID: <1314091855.6733.319.camel@phil-desktop> (raw)
In-Reply-To: <9367246f3304f18ffb82a2b588337a073d830b51.1314043945.git.sgw@linux.intel.com>

On Mon, 2011-08-22 at 14:51 -0700, Saul Wold wrote:
> From: Darren Hart <dvhart@linux.intel.com>
> 
> Enable machines or distros to select the hard floating point abi for cortexa8
> machines. I left out the arm7a thumb+neon combinations as they were not
> present in the original non-hf set.
> 
> Signed-off-by: Darren Hart <dvhart@linux.intel.com>
> CC: Jason Kridner <jkridner@beagleboard.org>
> CC: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  meta/conf/machine/include/tune-cortexa8.inc |   16 +++++++++++++---
>  1 files changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/conf/machine/include/tune-cortexa8.inc b/meta/conf/machine/include/tune-cortexa8.inc
> index 67c5f0b..edd1717 100644
> --- a/meta/conf/machine/include/tune-cortexa8.inc
> +++ b/meta/conf/machine/include/tune-cortexa8.inc
> @@ -5,12 +5,22 @@ require conf/machine/include/arm/arch-armv7a.inc
>  TUNEVALID[cortexa8] = "Enable Cortex-A8 specific processor optimizations"
>  TUNE_CCARGS += "${@bb.utils.contains("TUNE_FEATURES", "cortexa8", "-mtune=cortex-a8", "", d)}"
>  
> -AVAILTUNES += "cortexa8 cortexa8t"
> +# Little Endian base configs
> +AVAILTUNES += "cortexa8 cortexa8t cortexa8-neon"
>  TUNE_FEATURES_tune-cortexa8 = "${TUNE_FEATURES_tune-armv7a} cortexa8"
>  TUNE_FEATURES_tune-cortexa8t = "${TUNE_FEATURES_tune-armv7at} cortexa8"
> -TUNE_FEATURES_tune-cortexa8-neon = "${TUNE_FEATURES_tune-cortexa8} neon"
> -
> +TUNE_FEATURES_tune-cortexa8-neon = "${TUNE_FEATURES_tune-armv7a-neon} cortexa8"
>  PACKAGE_EXTRA_ARCHS_tune-cortexa8 = "${PACKAGE_EXTRA_ARCHS_tune-armv7a}"
>  PACKAGE_EXTRA_ARCHS_tune-cortexa8t = "${PACKAGE_EXTRA_ARCHS_tune-armv7at}"
>  PACKAGE_EXTRA_ARCHS_tune-cortexa8-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7a-neon}"

This part of the patch doesn't seem to match any of the description in
the checkin comment.

> +# VFP Tunes
> +AVAILTUNES += "cortexa8hf cortexa8thf cortexa8hf-neon"
> +TUNE_FEATURES_tune-cortexa8hf ?= "${TUNE_FEATURES_tune-armv7ahf} cortexa8"
> +TUNE_FEATURES_tune-cortexa8thf ?= "${TUNE_FEATURES_tune-armv7athf} cortexa8"
> +TUNE_FEATURES_tune-cortexa8hf-neon ?= "${TUNE_FEATURES_tune-armv7ahf-neon} cortexa8"
> +PACKAGE_EXTRA_ARCHS_tune-cortexa8hf = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf}"
> +PACKAGE_EXTRA_ARCHS_tune-cortexa8thf = "${PACKAGE_EXTRA_ARCHS_tune-armv7athf}"
> +PACKAGE_EXTRA_ARCHS_tune-cortexa8hf-neon = "${PACKAGE_EXTRA_ARCHS_tune-armv7ahf-neon}"

I don't think "VFP Tunes" is a very good description of these, since it
might lead folks to think that they need to enable these tunes to get
vfp instructions (which is untrue: the vfp ISA is controlled by the
"vfp" tune feature and this is set for both armv6 and armv7a
automatically).  If they are hard-float ABI tunes, which seems to be the
case, then let's call them that. 

Also, on a broader issue, I continue to feel that adding more and more
terms to what is already quite a large cross product is not a very good
way to proceed.  There's nothing very cortexa8 specific about the
hardfloat API and, to do this comprehensively, we'd have to add an -hf
version of every existing tune definition which has vfp enabled.  I
think it would be better to find a way to express this sort of thing
which captures the orthogonality of the different options and avoids the
need to write out every permutation in longhand.

Also also, on a more tangential note, I remain skeptical that the
hardfloat ABI is actually a useful thing to support.  I'd be interested
to see any benchmark results which demonstrate that it's worthwhile.

p.





  reply	other threads:[~2011-08-23  9:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-22 21:51 [CONSOLIDATED PULL 00/19] various fixes and updates Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 01/19] tune: add missing closing quote to arch-armv7a.inc for AVAILTUNES Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 02/19] tune: remove thumb flag from non-thumb cortexa8 tune variables Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 03/19] tune: Add hard floating point variants of cortexa8 tunes Saul Wold
2011-08-23  9:30   ` Phil Blundell [this message]
2011-08-23 18:19     ` Darren Hart
2011-08-24 10:46       ` Phil Blundell
2011-08-22 21:51 ` [CONSOLIDATED PULL 04/19] recipes: Delete patch=1, its default and replace pnum with striplevel Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 05/19] libpcre: the generated libtool uses HOST_SYS Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 06/19] rpm: be certain we don't prefix our binaries Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 07/19] image_types_uboot: add uboot mkimage fs types Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 08/19] adt-installer: Removed the hard coded repo url Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 09/19] at: fix RDEPENDS -> RDEPENDS_${PN} Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 10/19] linux-yocto: move more default values into linux-yocto.inc Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 11/19] linux-yocto: update SRCREVs for 3.0.3 Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 12/19] bitbake meta-toolchain with gcc 4.5.1 failed Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 13/19] Use OECORE_DISTRO_VERSION instead of POKY_DISTRO_VERSION Saul Wold
2011-08-22 21:51 ` [CONSOLIDATED PULL 14/19] kernel.bbclass: save kernel image name into $kerneldir Saul Wold
2011-08-22 21:52 ` [CONSOLIDATED PULL 15/19] scripts/runqemu: add support to pass bootparams to kernel Saul Wold
2011-08-22 21:52 ` [CONSOLIDATED PULL 16/19] scripts/combo-layer: fix configuration file handling Saul Wold
2011-08-22 21:52 ` [CONSOLIDATED PULL 17/19] libsdl: do not inherit nativesdk Saul Wold
2011-08-22 21:52 ` [CONSOLIDATED PULL 18/19] task-core-x11-sato: add libsdl into sato image Saul Wold
2011-08-22 21:52 ` [CONSOLIDATED PULL 19/19] utils.bbclass: skip empty paths when handling FILESEXTRAPATHS Saul Wold
2011-08-24  1:26 ` [CONSOLIDATED PULL 00/19] various fixes and updates Richard Purdie

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=1314091855.6733.319.camel@phil-desktop \
    --to=philb@gnu.org \
    --cc=openembedded-core@lists.openembedded.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox