From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] ARM: runtime patching of __virt_to_phys() and __phys_to_virt()
Date: Tue, 4 Jan 2011 16:53:47 +0000 [thread overview]
Message-ID: <20110104165347.GA24935@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <alpine.LFD.2.00.1101040926100.22191@xanadu.home>
On Tue, Jan 04, 2011 at 09:32:41AM -0500, Nicolas Pitre wrote:
> On Tue, 4 Jan 2011, Russell King - ARM Linux wrote:
> > This is basically my patch with a few blank lines removed, a couple
> > of \n's also removed, a #error if __virt_to_phys is defined by a platform,
> > a minor tweak to the assembly and it being only usable on PXA.
> >
> > I much prefer my patch over this as anyone can use it. That's one of
> > the reasons why I arranged the code testing for __virt_to_phys as I
> > did, so the config option could be offered without having a big long
> > dependency list attached to it.
>
> I don't think offering the option that people can turn on and not having
> the code effectively perform as expected is a good idea. People might
> be expecting the feature to be there while in practice it is ignored
> which would lead to confusion.
Our aims are different then. My aim is to move the code to a point where
it works for _everyone_ it possibly can - and theoretically that's every
platform except:
1. MSM due to their PHYS_OFFSET being 2MB aligned, rather than the more
normal 256MB alignment.
2. Anyone with complex V:P mappings
(1) is dealt with easily by a dependency in the configuration preventing
the option being visible. (2) is dealt with at runtime by ignoring the
configuration option - resulting in the p2v tables being empty. The end
result will still run on the platform, but it won't do the relocation
stuff. (2) could also be dealt with by adding the necessary dependencies
to the configuration option which is the longer term solution.
Lastly, marking the option as 'EXPERIMENTAL' is there to convey that it
may not work for everyone, and people should expect things not to work if
they enable such an option (and report when that's the case.)
Another reason why selecting this option is wrong is that it is incompatible
with XIP. If you're going to unconditionally enable it for platforms like
PXA, make sure you strip out all of PXA's XIP support before you do so,
otherwise you'll build a kernel which has absolutely no way of ever booting.
> As to the authorship, since I drafted the original design, Eric Miao did
> the first implementation to validate the concept, and the code surviving
> is mostly yours, I didn't know who to singularly attribute the patch to
> in the author field. I can put yourself there if you feel this is more
> appropriate.
The correct thing to do is to ensure that it has Eric's and my sign-offs.
If you compare Eric's to my version, mine has a fair amount of changes.
next prev parent reply other threads:[~2011-01-04 16:53 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 8:20 [PATCH 0/4] variable PHYS_OFFSET support Nicolas Pitre
2011-01-04 8:20 ` [PATCH 1/4] ARM: runtime patching of __virt_to_phys() and __phys_to_virt() Nicolas Pitre
2011-01-04 8:45 ` Russell King - ARM Linux
2011-01-04 14:32 ` Nicolas Pitre
2011-01-04 16:53 ` Russell King - ARM Linux [this message]
2011-01-04 17:50 ` Nicolas Pitre
2011-01-04 18:06 ` Russell King - ARM Linux
2011-01-04 18:25 ` David Brown
2011-01-04 18:33 ` Nicolas Pitre
2011-01-04 19:00 ` David Brown
2011-01-04 20:17 ` Russell King - ARM Linux
2011-01-04 18:29 ` Nicolas Pitre
2011-01-04 8:20 ` [PATCH 2/4] ARM: make PHYS_OFFSET actually variable Nicolas Pitre
2011-01-04 12:30 ` Russell King - ARM Linux
2011-01-04 17:54 ` Nicolas Pitre
2011-01-04 8:20 ` [PATCH 3/4] ARM: module support for CONFIG_ARM_PATCH_PHYS_VIRT Nicolas Pitre
2011-01-04 10:06 ` Russell King - ARM Linux
2011-01-04 8:20 ` [PATCH 4/4] ARM: support for Thumb-2 instructions with CONFIG_ARM_PATCH_PHYS_VIRT Nicolas Pitre
2011-01-10 22:20 ` Dave Martin
2011-01-10 22:45 ` Nicolas Pitre
2011-01-10 23:24 ` Russell King - ARM Linux
2011-01-10 23:57 ` Nicolas Pitre
2011-01-04 10:41 ` [PATCH 0/4] variable PHYS_OFFSET support Russell King - ARM Linux
2011-01-04 14:37 ` Nicolas Pitre
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=20110104165347.GA24935@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).