LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hao <haokexin@gmail.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Scott Wood <scottwood@freescale.com>
Cc: linuxppc <linuxppc-dev@lists.ozlabs.org>
Subject: [PATCH 0/2] powerpc: split the match emulation into two parts
Date: Tue, 16 Jul 2013 19:57:14 +0800	[thread overview]
Message-ID: <1373975836-11928-1-git-send-email-haokexin@gmail.com> (raw)

On some FSL BookE cores (such as e500mc, e5500 and e6500) there does have
a FPU. But some floating point instructions are not supported by the FPU.
Introduce a kernel option so we can make the kernel only support to
emulate these unimplemented instructions. This will definitely reduce
the footprint of the kernel. And it also trim down the kernel build time
a little as predicted by Scott.

Before the patch:
  Name          Size     
  .text         00618948

After the patch:
  Name          Size     
  .text         00605328 


The kernel build time(I have reboot the build server before each kernel build)
Before the patch:
  real    2m29.653s
  user    10m21.776s
  sys     0m32.832s

After the patch:
  real    2m27.767s
  user    10m11.808s
  sys     0m32.717s

Kevin Hao (2):
  powerpc: split the math emulation into two parts
  powerpc/mpc85xx: only emulate the unimplemented FP instructions on    
    corenet64

 arch/powerpc/Kconfig                         | 20 ++++++++++++++++++++
 arch/powerpc/configs/corenet64_smp_defconfig |  1 +
 arch/powerpc/math-emu/Makefile               | 24 ++++++++++++------------
 arch/powerpc/math-emu/math.c                 | 20 ++++++++++++++------
 4 files changed, 47 insertions(+), 18 deletions(-)

-- 
1.8.1.4

             reply	other threads:[~2013-07-16 11:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 11:57 Kevin Hao [this message]
2013-07-16 11:57 ` [PATCH 1/2] powerpc: split the math emulation into two parts Kevin Hao
2013-07-22 14:36   ` Kumar Gala
2013-07-22 17:25     ` Scott Wood
2013-07-16 11:57 ` [PATCH 2/2] powerpc/mpc85xx: only emulate the unimplemented FP instructions on corenet64 Kevin Hao

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=1373975836-11928-1-git-send-email-haokexin@gmail.com \
    --to=haokexin@gmail.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=scottwood@freescale.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox