linux-mips
[Top] [All Lists]

Re: Toshiba JMR 3927 working setup?

To: gregor.waltz@raritan.com
Subject: Re: Toshiba JMR 3927 working setup?
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Fri, 18 Jan 2008 10:05:01 +0900 (JST)
Cc: linux-mips@linux-mips.org, ralf@linux-mips.org
In-reply-to: <478F8758.1010105@raritan.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <478E22A4.4070604@raritan.com> <20080117.010459.51867104.anemo@mba.ocn.ne.jp> <478F8758.1010105@raritan.com>
Sender: linux-mips-bounce@linux-mips.org
On Thu, 17 Jan 2008 11:50:32 -0500, Gregor Waltz <gregor.waltz@raritan.com> 
wrote:
> What ought to be done to fix the init_IRQ()/kmalloc problem?

Oops, that was my mistake.  The txx9_irq_init() assumes its baseaddr
can be remapped without TLB.  This is true but plat_ioremap for
jmr3927 was wrong.

Could you try this patch?  (can be used for 2.6.23 and current git)


Subject: [MIPS] Fix plat_ioremap for JMR3927

TX39XX's "reserved" segment in CKSEG3 area is 0xff000000-0xfffeffff.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/include/asm-mips/mach-jmr3927/ioremap.h 
b/include/asm-mips/mach-jmr3927/ioremap.h
index aa131ad..ac3be35 100644
--- a/include/asm-mips/mach-jmr3927/ioremap.h
+++ b/include/asm-mips/mach-jmr3927/ioremap.h
@@ -25,7 +25,7 @@ static inline void __iomem *plat_ioremap(phys_t offset, 
unsigned long size,
 {
 #define TXX9_DIRECTMAP_BASE    0xff000000ul
        if (offset >= TXX9_DIRECTMAP_BASE &&
-           offset < TXX9_DIRECTMAP_BASE + 0xf0000)
+           offset < TXX9_DIRECTMAP_BASE + 0xff000)
                return (void __iomem *)offset;
        return NULL;
 }

<Prev in Thread] Current Thread [Next in Thread>