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: realview compulsory enables CONFIG_ARM_PATCH_PHYS_VIRT on me
Date: Tue, 6 Dec 2011 00:46:54 +0000	[thread overview]
Message-ID: <20111206004654.GK14542@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <alpine.LFD.2.02.1112051934000.2357@xanadu.home>

On Mon, Dec 05, 2011 at 07:37:26PM -0500, Nicolas Pitre wrote:
> On Mon, 5 Dec 2011, Russell King - ARM Linux wrote:
> 
> > On Mon, Dec 05, 2011 at 05:08:12PM -0500, Nicolas Pitre wrote:
> > > On Mon, 5 Dec 2011, Rob Herring wrote:
> > > 
> > > > On 12/05/2011 03:22 PM, Linus Walleij wrote:
> > > > > Hi Nico,
> > > > > 
> > > > > now I'm lost, I discussed by boot problems on ARM PB1176
> > > > > with Marc and after some investigation I found this strange thing on
> > > > > the lastest rc:s since -rc1:
> > > > > 
> > > > > In arch/arm/Kconfig ARM_PATCH_PHYS_VIRT is forcibly
> > > > > disabled like so:
> > > > > 
> > > > > depends on !ARCH_REALVIEW || !SPARSEMEM
> > > > 
> > > > should be !ARCH_REALVIEW && !SPARSEMEM ?
> > > 
> > > Indeed.
> > 
> > No, it's correct.  None of you are understanding the logic.
> > 
> > If you don't understand it, draw up a truth table:
> > 
> > ARCH_REALVIEW	SPARSEMEM	result
> > n		n		y
> > n		y		y
> > y		n		y
> > y		y		n
> > 
> > And this clearly shows that if we have realview _and_ sparsemem enabled,
> > then we don't want P2V patching in place.
> 
> I didn't look closely at Realview.  However the usefulness of P2V 
> patching when sparsemem is used is somewhat questionable I would say. 

No it isn't.

Provided there's a linear v:p mapping, P2V can be used.  Only when
there's a non-linear mapping does P2V fail.  That's got nothing to do
with sparsemem, as you can be using sparsemem and still have a linear
v:p mapping (and several platforms do.)

  reply	other threads:[~2011-12-06  0:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-05 21:22 realview compulsory enables CONFIG_ARM_PATCH_PHYS_VIRT on me Linus Walleij
2011-12-05 21:57 ` Rob Herring
2011-12-05 22:08   ` Nicolas Pitre
2011-12-05 23:36     ` Russell King - ARM Linux
2011-12-06  0:37       ` Nicolas Pitre
2011-12-06  0:46         ` Russell King - ARM Linux [this message]
2011-12-06  8:29       ` Colin Tuckley
2011-12-06 10:30 ` Linus Walleij

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=20111206004654.GK14542@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).