All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Joshua Kinard <kumba@gentoo.org>
Cc: Linux MIPS List <linux-mips@linux-mips.org>
Subject: Re: [PATCH] MIPS: IP27: Update/restructure CPU overrides
Date: Wed, 3 Jun 2015 10:07:00 +0200	[thread overview]
Message-ID: <20150603080700.GG9839@linux-mips.org> (raw)
In-Reply-To: <556E2833.8060407@gentoo.org>

On Tue, Jun 02, 2015 at 06:03:31PM -0400, Joshua Kinard wrote:

> From: Joshua Kinard <kumba@gentoo.org>
> 
> Inspired by Maciej's recent patch to update DEC cpu-feature-overrides.h,
> I updated IP27's as well to disable features known to not apply to the
> IP27 platform or the R10K-series of CPUs.
> 
> Before:
>    text    data     bss     dec     hex filename
> 8616648  463200  472240 9552088  91c0d8 vmlinux
> 
> After:
>    text    data     bss     dec     hex filename
> 8592256  471392  472240 9535888  918190 vmlinux
> 
> I believe the increase in the size of the data section is for the same
> reasons as in the DEC patch.
> 
> Signed-off-by: Joshua Kinard <kumba@gentoo.org>
> ---
>  arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h |   92 ++++++----
>  1 file changed, 57 insertions(+), 35 deletions(-)
> 
> The number of changes is due to restructuring the file to be similar to
> IP30's, so that eventually, all of the SGI platforms will have a similar
> look to their cpu-feature-overrides.h file, making it easier to update
> in the future.  I'll also send one for IP32 shortly, as that needs some
> more careful updating due to the various CPUs it supports.

Kernel bloat due to incomplete overrides.h files is a well known problem.
It's also somewhat hard problem since writing one requires intimate
knowledge of the CPU.  That used to be easy for the classic discrete
CPUs but with synthesizable cores many options can differ between
instances of that core.  Anyway, the solution I'm thinking off should
be no more complex that for example saying

#include <asm/cpus/r4000.h>
#include <asm/cpus/r4600.h>
#include <asm/cpus/r5000.h>

for an IP22.  Or something similarly obvious.

Patch queued for 4.2.

Thanks!

  Ralf

      reply	other threads:[~2015-06-03  8:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 22:03 [PATCH] MIPS: IP27: Update/restructure CPU overrides Joshua Kinard
2015-06-03  8:07 ` Ralf Baechle [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=20150603080700.GG9839@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=kumba@gentoo.org \
    --cc=linux-mips@linux-mips.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 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.