From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Markus Gothe <markus.gothe@27m.se>
Cc: colin <colin@realtek.com.tw>, linux-mips@linux-mips.org
Subject: Re: [SPAM] Linux 2.6.12 cannot run on 24K. Please give me some clues.
Date: Sun, 29 Jul 2007 19:13:17 +0400 [thread overview]
Message-ID: <46ACAE8D.2050800@ru.mvista.com> (raw)
In-Reply-To: <5C55354F-E857-4E83-A347-9C4A4EEA85E2@27m.se>
Hello.
Markus Gothe wrote:
> Seems to me that running in EXkLusive/supervisor mode is the culprit.
EXL doesn't mean "exclusive", it means "exception level". And you'll
always see this bit set in an oops happening when the kernel is handling
exception (I'm not saying that it's actually set during all that time, just
that the handler is entered with EXL=1 and that walue of the Status regs is
saved on stack and later dumped along with the other regs)
> Try changing that before you get to userspace...
> On 24 Jul, 2007, at 09:09 , colin wrote:
>
>>
>> Hi all,
>> Could you help me on porting MIPS Linux?
>>
>> Our first embedded system using 4Kec is running very well on Linux
>> 2.6.12.
>> Now the second chip using 24K has problems. I found that mtf0 and
>> mtc0 have
>> hazard problem and I have solved it.
>> static inline void unmask_mips_irq(unsigned int irq)
>> {
>> set_c0_status(0x100 << (irq - mips_cpu_irq_base));
>> irq_enable_hazard();
>> }
>>
>> Now Linux can continue running and then it will encounter problems when
>> running the first application, init. I will appreciate your clues for
>> helping me on this probem. :D
>>
>> Colin
>>
>> ÿttyS0 at MMIO 0x0 (irq = 3) is a 16550A
>> ttyS1 at MMIO 0x0 (irq = 3) is a 16550A
>> io scheduler noop registered
>> Freeing prom memory: 0kb freed
>> Reclaim bootloader memory from 80010000 to 800f0000
>> Freeing unused kernel memory: 252k freed
>> CPU 0 Unable to handle kernel paging request at virtual address
>> ffffff88,
>> epc == 00440f10, ra == 004000e4
It's not a kernel address, BTW...
>> Oops in arch/mips/mm/fault.c::do_page_fault, line 167[#1]:
>> Cpu 0
>> $ 0 : 00000000 10000990 00400090 00000000
>> $ 4 : 7fdd5ed0 7fdd5f94 00000000 7fdd5f94
>> $ 8 : 00000000 00000000 80001cb2 00000b3b
>> $12 : 7f1c0300 0001ffff 0001ffff 00000115
>> $16 : 801f5e04 00000000 00000000 00000000
>> $20 : 00000000 00000000 00000000 00000000
>> $24 : 00000000 00440f00
>> $28 : 10008c70 7fdd5e18 7fdd5e38 004000e4
>> Hi : 00000000
>> Lo : 00000000
>> epc : 00440f10 Not tainted
>> ra : 004000e4 Status: 00006802 KERNEL EXL
>> Cause : 0880400c
>> BadVA : ffffff88
>> PrId : 00019378
>> Process init (pid: 1, threadinfo=80848000, task=80854bd8)
>> Stack : 00000000 00000000 10008c70 00000000 10008c70 7fdd5e38 10008c70
>> 004276e4
>> 00000000 00000000 00000000 00000000 10008c70 00000000 7fdd5f9c
>> 00000000
>> 00000000 00000000 00000000 00000000 00000000 00000000 00000003
>> 00400034
>> 00000004 00000020 00000005 00000002 00000006 00001000 00000007
>> 000000
WBR, Sergei
next prev parent reply other threads:[~2007-07-29 15:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 7:09 Linux 2.6.12 cannot run on 24K. Please give me some clues colin
2007-07-24 7:09 ` colin
2007-07-24 12:20 ` Maciej W. Rozycki
2007-07-26 7:03 ` [SPAM] " Markus Gothe
2007-07-26 7:03 ` Markus Gothe
2007-07-26 10:57 ` Maciej W. Rozycki
2007-07-29 15:13 ` Sergei Shtylyov [this message]
2007-07-30 3:45 ` colin
2007-07-30 3:45 ` colin
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=46ACAE8D.2050800@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=colin@realtek.com.tw \
--cc=linux-mips@linux-mips.org \
--cc=markus.gothe@27m.se \
/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.