[RFC 5/5] ARM: P2V: extend to 16-bit translation offsets

3 messages, 3 authors, 2011-02-07 · open the first message on its own page

[RFC 5/5] ARM: P2V: extend to 16-bit translation offsets

From: David Brown <hidden>
Date: 2011-01-04 23:18:46

On Tue, Jan 04 2011, Russell King - ARM Linux wrote:
MSM's memory is aligned to 2MB, which is more than we can do with our
existing method as we're limited to the upper 8 bits.  Extend this by
using two instructions to 16 bits, automatically selected when MSM is
enabled.
I should also add that this series adds a warning to my build when
CONFIG_ARM_PATCH_PHYS_VIRT is not defined:

  arch/arm/kernel/module.c:279: error: 'find_mod_section' defined but not used

David

-- 
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.

[RFC 5/5] ARM: P2V: extend to 16-bit translation offsets

From: Russell King - ARM Linux <hidden>
Date: 2011-01-05 00:13:59

On Tue, Jan 04, 2011 at 03:18:46PM -0800, David Brown wrote:
On Tue, Jan 04 2011, Russell King - ARM Linux wrote:
quoted
MSM's memory is aligned to 2MB, which is more than we can do with our
existing method as we're limited to the upper 8 bits.  Extend this by
using two instructions to 16 bits, automatically selected when MSM is
enabled.
I should also add that this series adds a warning to my build when
CONFIG_ARM_PATCH_PHYS_VIRT is not defined:

  arch/arm/kernel/module.c:279: error: 'find_mod_section' defined but not used
Hmm, probably best to mark this with __maybe_unused.

Also note that I messed up the 16-23 bit shift value in this patch - it
needs:

-	orr	r0, r0, #0x400  @ mask in rotate right 8 bits
+	orr	r0, r0, #0x800  @ mask in rotate right 16 bits

[RFC 5/5] ARM: P2V: extend to 16-bit translation offsets

From: tony@atomide.com (Tony Lindgren)
Date: 2011-02-07 16:19:40

* Russell King - ARM Linux [off-list ref] [110104 16:27]:
On Tue, Jan 04, 2011 at 03:18:46PM -0800, David Brown wrote:
quoted
On Tue, Jan 04 2011, Russell King - ARM Linux wrote:
quoted
MSM's memory is aligned to 2MB, which is more than we can do with our
existing method as we're limited to the upper 8 bits.  Extend this by
using two instructions to 16 bits, automatically selected when MSM is
enabled.
I should also add that this series adds a warning to my build when
CONFIG_ARM_PATCH_PHYS_VIRT is not defined:

  arch/arm/kernel/module.c:279: error: 'find_mod_section' defined but not used
Hmm, probably best to mark this with __maybe_unused.

Also note that I messed up the 16-23 bit shift value in this patch - it
needs:

-	orr	r0, r0, #0x400  @ mask in rotate right 8 bits
+	orr	r0, r0, #0x800  @ mask in rotate right 16 bits
Can't really test this one, but things still keep working so:

Acked-by: Tony Lindgren <tony@atomide.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help