All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Kinard <kumba@gentoo.org>
To: Linux MIPS List <linux-mips@linux-mips.org>
Subject: [PATCH] MIPS: IP28: Correct IO_BASE in mach-ip28/spaces.h for proper ioremap
Date: Mon, 18 Aug 2014 22:55:02 -0400	[thread overview]
Message-ID: <53F2BC86.8000506@gentoo.org> (raw)

On SGI IP28 systems, fix an early crash at boot by setting IO_BASE to a
correct value so that ioremap works properly.

Exception: <vector=normal>
Status register: 0x34004882<CU1,CU0,FR,IM7,IM4,IPL=???,KX,MODE=KERNEL>
Cause register: 0x10<CE=0,EXC=RADE>
Exception PC: 0xa800000020654004, Exception RA: 0xa800000020654c9c
Read address error exception, bad address: 0xdfbdd600

Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Reported-by: Joshua Kinard <kumba@gentoo.org>
Suggested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Tested-by: Joshua Kinard <kumba@gentoo.org>
Fixes: ed3ce16c3d2b ("Revert "MIPS: make CAC_ADDR and UNCAC_ADDR account for
PHYS_OFFSET"")
---
 arch/mips/include/asm/mach-ip28/spaces.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/include/asm/mach-ip28/spaces.h
b/arch/mips/include/asm/mach-ip28/spaces.h
index 5d6a764..8c60fb0 100644
--- a/arch/mips/include/asm/mach-ip28/spaces.h
+++ b/arch/mips/include/asm/mach-ip28/spaces.h
@@ -18,7 +18,7 @@
 #define PHYS_OFFSET	_AC(0x20000000, UL)

 #define UNCAC_BASE	_AC(0xc0000000, UL)     /* 0xa0000000 + PHYS_OFFSET */
-#define IO_BASE		UNCAC_BASE
+#define IO_BASE		_AC(0x9000000000000000, UL)

 #include <asm/mach-generic/spaces.h>

             reply	other threads:[~2014-08-19  2:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-19  2:55 Joshua Kinard [this message]
2014-08-19  8:00 ` [PATCH] MIPS: IP28: Correct IO_BASE in mach-ip28/spaces.h for proper ioremap Ralf Baechle
2014-08-19  8:12   ` Ralf Baechle
2014-08-19 10:05   ` Thomas Bogendoerfer
2014-08-19 20:01     ` Thomas Bogendoerfer

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=53F2BC86.8000506@gentoo.org \
    --to=kumba@gentoo.org \
    --cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.