* ioremap problem with kernel 2.6.11 on mpc8270
@ 2005-04-23 15:07 clasu
2005-04-23 21:25 ` Dan Malek
0 siblings, 1 reply; 2+ messages in thread
From: clasu @ 2005-04-23 15:07 UTC (permalink / raw)
To: linuxppc-embedded
Hi there,
I'm porting kernel version 2.6.11 to a custom board with an MPC8270 control=
ler.
The kernel is booting and when it runs the init routine of a custom nand dr=
iver it
generates a machine check exception.
The call to ioremap(0x40000000, 0x2000000) returns an address of
0xe1000000 and the exception is caused by an iowrite8() call to the address
returned by ioremap(). The same happens if the memory address is read.
In further investigations I have found out that the writes and reads are no=
t
mapped to the physical address 0x40000000. ioremap() returned 0xe1000000
and that is also the physical address where the writes and reads are mapped=
to.
(=3Dno mapping).
The same driver (minor changes to struct names) works on the same board in
a linux kernel 2.6.7-rc1. In this kernel ioremap returns the same address
(0xe1000000) as in version 2.6.11 but all accesses are mapped to 0x40000000
as they should be.
I use the same board and same u-boot (1.1.2) to start both kernels.
It seems to me that the ioremap call fails somehow in 2.6.11 and that the p=
age
tables are not updated correctly.
I have not been able to find out what causes this but it would make may day=
if
someone could help me a bit.
Best regards,
-Claus-
...................................................................
Luukku Plus paketilla p=E4=E4set eroon tila- ja turvallisuusongelmista.
Hanki Luukku Plus ja helpotat el=E4m=E4=E4si. http://www.mtv3.fi/luukku
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ioremap problem with kernel 2.6.11 on mpc8270
2005-04-23 15:07 ioremap problem with kernel 2.6.11 on mpc8270 clasu
@ 2005-04-23 21:25 ` Dan Malek
0 siblings, 0 replies; 2+ messages in thread
From: Dan Malek @ 2005-04-23 21:25 UTC (permalink / raw)
To: clasu; +Cc: linuxppc-embedded
On Apr 23, 2005, at 11:07 AM, clasu@luukku.com wrote:
> It seems to me that the ioremap call fails somehow in 2.6.11 and that
> the page
> tables are not updated correctly.
I can't find any obvious differences that would cause this. I suspect
something
may be different in your platform specific set up or there was some
minor
changes that are required moving your platform specific set up to the
newer
kernel sources.
> I have not been able to find out what causes this but it would make
> may day if
> someone could help me a bit.
In arch/ppc/mm/pgtable.c, about line 481, change the
#define HAVE_BATS 1
to
#define HAVE_BATS 0
and report if that makes any difference.
Thanks.
-- Dan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-23 21:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-23 15:07 ioremap problem with kernel 2.6.11 on mpc8270 clasu
2005-04-23 21:25 ` Dan Malek
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).