From: Robert Morin <rmorin@miranda.com>
To: Dan Malek <dan@embeddededge.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: MPC8240 PTE setup
Date: Mon, 22 Apr 2002 15:08:10 -0400 [thread overview]
Message-ID: <200204221907.g3MJ7th27102@ares.gdc.ca> (raw)
In-Reply-To: <3CC46932.4040805@embeddededge.com>
Hi Dan,
> > I have based my work on the Linux kernel 2.5.8 ....
>
> You don't want to use that yet :-) Use the 2_4_devel kernel.
>
Ok, I will look to it.
> > ....I can see with my BDI2000 that the
> > MMU is not translating correctly virtual addresses to physical
> > addresses.
>
> The mmu always translates correctly, your programming of it
> is probably incorrect :-)
>
This is my problem and I think it's related to the pSOS bootloader
but I have difficulties pointing to the problem.
> > .... I made a patch to use a BAT instead of PTE but
> > this cause only to move the problem further upstream
>
> What BAT did you change, and to what?
>
In my file mxhost2_setup.c in function mxhost2_map_io(), I've
added:
io_block_mapping(0xfdf00000, 0xfdf00000, 0x00100000, _PAGE_IO );
as a work-around and modify also my find_bridge() to prevent using the
ioremap_base.
> > I have check the parameter passed with ioremap() and it's
> > ok. With the BDI2000, I get this with the phys command:
> >
> > phys 0xfdfd0000 (virtual address returned by ioremap)
> >
> > PHYS = 0xfffff000 END = 0xffffffff
> > instead of
> > PHYS 0xfdf40000 END = 0xfdffffff
>
> So, you did 'virt = ioremap(0xfdf40000)' and virt == 0xfdfd0000?
> Where did you call ioremap()? Are you trying to remap the EUMB registers
> again (this is done in mpc10x_common.c for 82xx boards)?
>
I made my trace inside the mpc10x_common.c to have this result. I am
not making changes in the kernel, I want to keep as is as much as
possible.
For the moment, I will move my platform into 2_4_devel to see if
the situation improved.
>
> -- Dan
Thanks.
Robert
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2002-04-22 19:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 18:07 MPC8240 PTE setup Robert Morin
2002-04-22 19:49 ` Dan Malek
2002-04-22 19:08 ` Robert Morin [this message]
2002-04-23 15:20 ` Tom Rini
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=200204221907.g3MJ7th27102@ares.gdc.ca \
--to=rmorin@miranda.com \
--cc=dan@embeddededge.com \
--cc=linuxppc-embedded@lists.linuxppc.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).