linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: imx_v6_v7_defconfig: use v7 optimized atomic64* instead of GENERIC_ATOMIC64?
Date: Fri, 14 Dec 2012 10:00:07 +0000	[thread overview]
Message-ID: <20121214100007.GI14363@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <20121214033313.GA3604@S2101-09.ap.freescale.net>

On Fri, Dec 14, 2012 at 11:33:16AM +0800, Shawn Guo wrote:
> To maintain the compatibility between v6 and v7 build, we have to live
> with that.  Actually, there are much more than just this atomic64
> optimization losing.  For example, compiler has some level of
> optimization for Cortex-A series cpus with -march=armv7-a flag, but
> arch/arm/Makefile will force it to be -march=armv6k when you build
> the kernel for you v7 device using imx_v6_v7_defconfig.

Well, the way this stuff is supposed to work is that -march is used to
select the instructions to be used, and -mtune is used to control the
optimization of those instructions.

We're doing mostly the right thing - in that if we have a v6+v7 kernel, we
build for v6 (because a v6 CPU won't have the additional v7 instructions).
However, what we're completely missing is any -mtune for v7 CPUs, which
means the optimizer will schedule instructions for some v6 CPU rather
than v7.  Whether there's much difference or not I don't know, but maybe
that's something which should be looked at?

      reply	other threads:[~2012-12-14 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-12 13:21 imx_v6_v7_defconfig: use v7 optimized atomic64* instead of GENERIC_ATOMIC64? Dirk Behme
2012-12-14  3:33 ` Shawn Guo
2012-12-14 10:00   ` Russell King - ARM Linux [this message]

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=20121214100007.GI14363@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).