Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Santosh Shilimkar
On Thursday 06 October 2011 03:36 AM, Tony Lindgren wrote: * Nicolas Pitre n...@fluxnic.net [111004 17:26]: On Tue, 4 Oct 2011, Tony Lindgren wrote: This allows mapping external memory such as SRAM for use. This is needed for some small chunks of code, such as reprogramming SDRAM memory

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [111006 23:06]: On Thursday 06 October 2011 03:36 AM, Tony Lindgren wrote: * Nicolas Pitre n...@fluxnic.net [111004 17:26]: On Tue, 4 Oct 2011, Tony Lindgren wrote: +void __iomem * +__arm_ioremap_exec(unsigned long phys_addr, size_t size, int

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Santosh Shilimkar
On Friday 07 October 2011 08:13 PM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [111006 23:06]: On Thursday 06 October 2011 03:36 AM, Tony Lindgren wrote: * Nicolas Pitre n...@fluxnic.net [111004 17:26]: On Tue, 4 Oct 2011, Tony Lindgren wrote: +void __iomem *

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [111007 07:29]: On Friday 07 October 2011 08:13 PM, Tony Lindgren wrote: ..so I think we should just have a separate static mapping for the omap4 errata fix SO page, and just limit the memory available for SRAM code to ioremap. How does

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Santosh Shilimkar
On Friday 07 October 2011 08:41 PM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [111007 07:29]: On Friday 07 October 2011 08:13 PM, Tony Lindgren wrote: ..so I think we should just have a separate static mapping for the omap4 errata fix SO page, and just limit the memory

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [111007 10:05]: I initially tried some thing similar but the issue was GP and HS devices. SRAM_PA isn't same on GP and EMU device and hence did that dynamically. One way is I can make GP and HS device SRAM_PA same for OMAP4 (Will loose 16 KB of

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Santosh Shilimkar
On Friday 07 October 2011 11:46 PM, Tony Lindgren wrote: * Santosh Shilimkar santosh.shilim...@ti.com [111007 10:05]: I initially tried some thing similar but the issue was GP and HS devices. SRAM_PA isn't same on GP and EMU device and hence did that dynamically. One way is I can make GP and

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-07 Thread Tony Lindgren
* Santosh Shilimkar santosh.shilim...@ti.com [111007 10:46]: On Friday 07 October 2011 11:46 PM, Tony Lindgren wrote: I assume now you can add the mapping to io.c instead? If so, then it's easier to apply the patches whatever way makes more sense. io.c change I took as you suggested.

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-05 Thread Tony Lindgren
* Nicolas Pitre n...@fluxnic.net [111004 17:26]: On Tue, 4 Oct 2011, Tony Lindgren wrote: This allows mapping external memory such as SRAM for use. This is needed for some small chunks of code, such as reprogramming SDRAM memory source clocks that can't be executed in SDRAM. Other

[PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-04 Thread Tony Lindgren
This allows mapping external memory such as SRAM for use. This is needed for some small chunks of code, such as reprogramming SDRAM memory source clocks that can't be executed in SDRAM. Other use cases include some PM related code. Signed-off-by: Tony Lindgren t...@atomide.com ---

Re: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY

2011-10-04 Thread Nicolas Pitre
On Tue, 4 Oct 2011, Tony Lindgren wrote: This allows mapping external memory such as SRAM for use. This is needed for some small chunks of code, such as reprogramming SDRAM memory source clocks that can't be executed in SDRAM. Other use cases include some PM related code. Signed-off-by: