Patchwork [RFC,v2,4/4] powerpc: wii: allow ioremap within the memory hole

login
register
mail settings
Submitter Albert Herranz
Date Dec. 8, 2009, 6:43 p.m.
Message ID <1260297833-17625-5-git-send-email-albert_herranz@yahoo.es>
Download mbox | patch
Permalink /patch/40664/
State Superseded
Headers show

Comments

Albert Herranz - Dec. 8, 2009, 6:43 p.m.
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
---
 arch/powerpc/platforms/embedded6xx/wii.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Benjamin Herrenschmidt - Dec. 11, 2009, 10:13 p.m.
On Tue, 2009-12-08 at 19:43 +0100, Albert Herranz wrote:
> Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
> ---
>  arch/powerpc/platforms/embedded6xx/wii.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

> diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
> index 5eaed86..0df8a91 100644
> --- a/arch/powerpc/platforms/embedded6xx/wii.c
> +++ b/arch/powerpc/platforms/embedded6xx/wii.c
> @@ -97,6 +97,9 @@ void __init wii_memory_fixups(void)
>  
>  	/* reserve the hole */
>  	lmb_reserve(wii_hole_start, wii_hole_size);
> +
> +	/* allow ioremapping the address space in the hole */
> +	__allow_ioremap_reserved = 1;
>  }
>  
>  unsigned long __init wii_mmu_mapin_mem2(unsigned long top)

Patch

diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
index 5eaed86..0df8a91 100644
--- a/arch/powerpc/platforms/embedded6xx/wii.c
+++ b/arch/powerpc/platforms/embedded6xx/wii.c
@@ -97,6 +97,9 @@  void __init wii_memory_fixups(void)
 
 	/* reserve the hole */
 	lmb_reserve(wii_hole_start, wii_hole_size);
+
+	/* allow ioremapping the address space in the hole */
+	__allow_ioremap_reserved = 1;
 }
 
 unsigned long __init wii_mmu_mapin_mem2(unsigned long top)