From: Ralf Baechle <ralf@linux-mips.org>
To: Paul Burton <paul.burton@imgtec.com>
Cc: Markos Chandras <Markos.Chandras@imgtec.com>, linux-mips@linux-mips.org
Subject: Re: [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs
Date: Tue, 4 Mar 2014 18:01:27 +0100 [thread overview]
Message-ID: <20140304170127.GR13415@linux-mips.org> (raw)
In-Reply-To: <20140303142921.GF13880@pburton-linux.le.imgtec.org>
On Mon, Mar 03, 2014 at 02:29:21PM +0000, Paul Burton wrote:
> On Mon, Mar 03, 2014 at 02:06:18PM +0000, Markos Chandras wrote:
> > On 02/21/2014 05:38 PM, Ralf Baechle wrote:
> > >On Thu, Feb 20, 2014 at 02:00:26PM +0000, Markos Chandras wrote:
> > >
> > >>From: Paul Burton <paul.burton@imgtec.com>
> > >>
> > >>For Malta defconfigs which may run on an SMP configuration without
> > >>hardware cache anti-aliasing, a 16KB page size is a safer default.
> > >>Most notably at the moment it will avoid cache aliasing issues for
> > >>multicore proAptiv systems.
> > >
> > >You're aware that this may cause binary compatibility issues with old
> > >userland? So far the defaults were chosen to maximise compatibility
> > >over performance.
> > >
> > > Ralf
> > >
> > Hi Ralf,
> >
> > Are you referring to programs hard coding the page size to 4k instead of
> > using the getpagesize()? Well yes this could be a problem. But is that a
> > real problem? We are changing the default value so whoever has such an old
> > userland can easily switch to the 4k page size. It may also be a good
> > opportunity to expose such application and get the fixed properly :) But if
> > that's not acceptable, we can drop the patch. Paul what do you think?
> >
> > --
> > markos
>
> I think the potential backwards compatibility issue is probably not a
> huge issue for Malta, but that it would make sense to dig deeper into
> why proAptiv SMP systems don't run correctly with 4KB pages. You don't
> actually have to look very far to find userland which depends upon 4KB
> pages (*cough* android *cough*). I consider this patch an acceptable
> workaround for the proAptiv problem on Malta, but I don't know enough
> at the moment to say whether there's a proper fix.
The issue I was refering to is that certain older binutils are creating
ELF segments of insufficient alignment for large page sizes to work.
Hardcoded page size is another problem - one should think that after
iterating through every power of two starting with like 512 bytes
programmers have sprung a clue.
Ralf
next prev parent reply other threads:[~2014-03-04 17:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-20 14:00 [PATCH 0/5] Update Malta defconfigs Markos Chandras
2014-02-20 14:00 ` Markos Chandras
2014-02-20 14:00 ` [PATCH 1/5] MIPS: regenerate malta defconfigs Markos Chandras
2014-02-20 14:00 ` Markos Chandras
2014-02-20 14:00 ` [PATCH 2/5] MIPS: Malta: Enable DEVTMPFS Markos Chandras
2014-02-20 14:00 ` Markos Chandras
2014-02-20 14:00 ` [PATCH 3/5] MIPS: Set page size to 16KB for malta SMP defconfigs Markos Chandras
2014-02-20 14:00 ` Markos Chandras
2014-02-21 17:38 ` Ralf Baechle
2014-03-03 14:06 ` Markos Chandras
2014-03-03 14:06 ` Markos Chandras
2014-03-03 14:29 ` Paul Burton
2014-03-03 14:29 ` Paul Burton
2014-03-04 17:01 ` Ralf Baechle [this message]
2014-03-03 22:24 ` Aaro Koskinen
2014-03-03 23:03 ` David Daney
2014-03-10 13:55 ` Aurelien Jarno
2014-03-10 17:42 ` David Daney
2014-02-20 14:00 ` [PATCH 4/5] MIPS: Default NR_CPUS=8 " Markos Chandras
2014-02-20 14:00 ` Markos Chandras
2014-02-20 14:00 ` [PATCH 5/5] MIPS: Add defconfig for Malta SMVP with EVA Markos Chandras
2014-02-20 14:00 ` Markos Chandras
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=20140304170127.GR13415@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=Markos.Chandras@imgtec.com \
--cc=linux-mips@linux-mips.org \
--cc=paul.burton@imgtec.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