From: Zhou Rui <vancasperz@yahoo.com.cn>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Why does one "stw" fail with address translation disabled in PPC405EP?
Date: Sat, 23 Aug 2008 23:18:39 +0200 [thread overview]
Message-ID: <1219526319.7530.12.camel@localhost> (raw)
In-Reply-To: <20080822184213.GA24526@yoda.jdub.homelinux.org>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 1901 bytes --]
å¨ 2008-08-22äºç 14:42 -0400ï¼Josh Boyeråéï¼
> On Fri, Aug 22, 2008 at 08:27:15PM +0200, Zhou Rui wrote:
> >Hi, all:
> > I think I meet an odd problem with PPC405EP (PPChameleonEVB Board).
>
> What kernel version are you using?
>
> > I am running a kernel module which will execute a user space
> >application. The entry point of the application is 0x100000a0. At the
>
> That should be the first clue that you are doing it wrong. Don't do
> stuff like that in modules...
>
> >moment when the processor tries to execute the application, 0x100000a0
> >is not in TLB (this can be seen from BDI by printing out TLB entries),
> >so DTLBMiss is called automatically and then finish_tlb_load. However,
> >InstructionAccess is followed and the problem arises here.
> >InstructionAccess starts from 0x400, and after instruction "0xc0000434
> ><InstructionAccess+52>: stw r12,64(r11)", machine check occurs.
> >This instruction will store the value of r12, which is 0x0 at this
> >moment, to address 0x03072de0. I am puzzled why this action leads to
> >machine check. Is it illegal to store 0x0 in a memory address? Or is
> >there some other cause of the machine check here?
>
> I have no idea if you're using physical or virtual addresses here, so
> there isn't much we can do to help you.
>
> Do you have enough DRAM to cover that? Some of those boards only come
> with 32MiB of DRAM.
Oh, I think I just now realized that for 32MB DRAM, the physical address
should be between 0x0 and 0x1FFFFFF, but the address 0x03072da0 was out
of this range ...
To enlarge the memory size is one solution but I do not think it is
feasible for my board. Is there any solution from software side? I hope
there is.
Thank you very much!!!
Best Wishes
Zhou Rui
2008-08-23
>
> josh
__________________________________________________
¸Ï¿ì×¢²áÑÅ»¢³¬´óÈÝÁ¿Ãâ·ÑÓÊÏä?
http://cn.mail.yahoo.com
prev parent reply other threads:[~2008-08-23 20:50 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-22 18:27 Why does one "stw" fail with address translation disabled in PPC405EP? Zhou Rui
2008-08-22 18:42 ` Josh Boyer
2008-08-23 8:26 ` Zhou Rui
2008-08-23 22:49 ` Benjamin Herrenschmidt
2008-08-24 18:55 ` Wolfgang Denk
2008-08-25 19:16 ` Zhou Rui
2008-08-28 15:53 ` Zhou Rui
2008-08-31 11:50 ` [Evolves!] " Zhou Rui
2008-09-01 5:42 ` Benjamin Herrenschmidt
2008-09-01 7:22 ` Zhou Rui
2008-09-01 7:17 ` Benjamin Herrenschmidt
2008-09-01 8:19 ` Zhou Rui
2008-08-23 21:18 ` Zhou Rui [this message]
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=1219526319.7530.12.camel@localhost \
--to=vancasperz@yahoo.com.cn \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).