From: Wolfgang Denk <wd@denx.de>
To: Zhou Rui <vancasperz@yahoo.com.cn>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Why does one "stw" fail with address translation disabled in PPC405EP?
Date: Sun, 24 Aug 2008 20:55:47 +0200 [thread overview]
Message-ID: <20080824185547.94A0724899@gemini.denx.de> (raw)
In-Reply-To: <1219479992.7565.17.camel@localhost>
Dear Zhou Rui,
In message <1219479992.7565.17.camel@localhost> you wrote:
>
> > > 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...
>
> Oh, but our project needs a function like that ...
You should really think about this. Why do you think you need this?
What exactly are you trying to do? [Probably there are better
approaches to solve your problem...]
> It is physical address at this moment. Address translation is disabled
> automatically (MSR[IR, DR] = [0, 0]) because of TLB Miss Exception and
> Instrunction Storage Exception.
Hm.. are you absolutely sure that the 0x100000a0 mentioned above is a
physical address?
> > Do you have enough DRAM to cover that? Some of those boards only come
> > with 32MiB of DRAM.
>
> My board only has 32MB DRAM. Do you mean 32MB is not enough for that?
Well, 0x1000'00A0 is above 256 MB, while you have only 32 MB RAM
which is most probably mapped from 0x0000'0000...0x01FF'FFFF... So
what you claim to be a physical address (and I think your claim is
wrong) is far outside available physical memory.
> The same codes can run well in a PPC440EP (Yosemite Board) which owns
> 256MB DRAM. At the beginning of my work, I thought memory size may be
> the cause of failure. But I did not know how to demonstrate it. So if
> the limitation of 32MB DRAM leads to the failure, are there any methods
> for the codes to solve it?
I think you got lost on the wrong track. Please describe which task
you want to implement, and there might be another, better approach
for it.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
The management question ... is not _whether_ to build a pilot system
and throw it away. You _will_ do that. The only question is whether
to plan in advance to build a throwaway, or to promise to deliver the
throwaway to customers. - Fred Brooks, "The Mythical Man Month"
next prev parent reply other threads:[~2008-08-24 18:55 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 [this message]
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
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=20080824185547.94A0724899@gemini.denx.de \
--to=wd@denx.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=vancasperz@yahoo.com.cn \
/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).