* bdi2000 debugging
@ 2005-02-16 9:50 Matej Kupljen
2005-02-16 10:15 ` Hans Thielemans
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Matej Kupljen @ 2005-02-16 9:50 UTC (permalink / raw)
To: linuxppc-embedded
Hi
I am trying to debug a problem in a user space application
(X windows), which when the process exits, crashes the kernel.
---------------------------------------------------------------
Oops: Exception in kernel mode, sig: 4
NIP: 000003B4 XER: 00000000 LR: C002B540 SP: C3B8DD10 REGS: c3b8dc60
TRAP: 0700 Not tainted
MSR: 00081000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
TASK = c3b8c000[55] 'Xorg.strip' Last syscall: 146
last math c36aa000 last altivec 00000000
GPR00: 00000000 C3B8DD10 C3B8C000 C3B8DD20 30105D0C 20000000 C3B8DDE0
00136DA8
GPR08: 00136DA8 00000000 00000035 000081A4 24048424 1031688C C0200000
C3B8DDE0
GPR16: C0200000 C3B7F3E0 00000000 0C3B80C5 00001032 03B8DD10 C002B580
00009032
GPR24: 00000035 00000000 00000FCB C3B80C50 00136DA8 00000000 00000035
C3B80C10
Call backtrace:
C0200000 C002B540 C002BCE8 C0090A58 C0039B64 C0039DCC C0005A7C
00000000 0FE20BFC 0FE29878 0FE29D1C 0FE29DE8 0FD7E354 0FD65D78
00000000
Oops: Exception in kernel mode, sig: 4
NIP: 000003B4 XER: 20000000 LR: 0FDF527C SP: C3BAFF40 REGS: c3baff50
TRAP: 0700 Not tainted
MSR: 00081000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
TASK = c3bae000[54] 'run_xorg.sh' Last syscall: 114
last math c36aa000 last altivec 00000000
GPR00: 00000000 C3BAFF40 30012738 C3BAFF50 0FEF1C6C 20000000 00000000
7F7F0000
GPR08: FFFFFFFD 00000000 1015E4CC 00000000 44000828 10094078 00000000
00000000
GPR16: 00000000 00000000 00000005 7FFFFA20 00001032 03BAFF40 0FE49374
0000D032
GPR24: 1009949C 00000000 00000003 00000000 7FFFFF8F 0FF0B59C 0FF09120
7FFFF8B0
Call backtrace:
C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
---------------------------------------------------------------
And that goes on for every process running :-(
Something is overwriting memory in kernel space I guess.
Now, I have the BDI 2000 and I am trying to debug this, but until
now I was unsuccessful :-(
When I debug the kernel, the BDI prints this out in the telnet
interface:
- Target MBAR is 0xF0000000
- Target XLBA is 0x8000A366
I know what MBAR is, but what the XLBA is?
The problem is that while this value remains the same everything
is fine. But sometimes it is set to 0x00000000 and then I cannot
use debugger anymore. I can make a few steps when this value
is set to 0x0, but the "stepping" is done in completely unrelated
code. I first noticed this while stepping trough hc_found_ohci
function when the return 0 is executed. When I disabled the USB
support in my kernel I could use debugger to debug a kernel.
But is still does not work all the time, because the XLBA still
gets set to 0!
I am using CVS version of DENX kernel version 2.4.25.
Has anybody seen this?
Maybe a tip how to debug this problem?
Best regards,
Matej
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 9:50 bdi2000 debugging Matej Kupljen
@ 2005-02-16 10:15 ` Hans Thielemans
2005-02-16 12:06 ` Stefan Nickl
2005-02-16 20:55 ` Sylvain Munaut
2 siblings, 0 replies; 8+ messages in thread
From: Hans Thielemans @ 2005-02-16 10:15 UTC (permalink / raw)
To: Matej Kupljen; +Cc: linuxppc-embedded
On Wed, 16 Feb 2005, Matej Kupljen wrote:
> Hi
>
> I am trying to debug a problem in a user space application
> (X windows), which when the process exits, crashes the kernel.
> ---------------------------------------------------------------
> Oops: Exception in kernel mode, sig: 4
> NIP: 000003B4 XER: 00000000 LR: C002B540 SP: C3B8DD10 REGS: c3b8dc60
> TRAP: 0700 Not tainted
> MSR: 00081000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
> TASK = c3b8c000[55] 'Xorg.strip' Last syscall: 146
> last math c36aa000 last altivec 00000000
> GPR00: 00000000 C3B8DD10 C3B8C000 C3B8DD20 30105D0C 20000000 C3B8DDE0
> 00136DA8
> GPR08: 00136DA8 00000000 00000035 000081A4 24048424 1031688C C0200000
> C3B8DDE0
> GPR16: C0200000 C3B7F3E0 00000000 0C3B80C5 00001032 03B8DD10 C002B580
> 00009032
> GPR24: 00000035 00000000 00000FCB C3B80C50 00136DA8 00000000 00000035
> C3B80C10
> Call backtrace:
> C0200000 C002B540 C002BCE8 C0090A58 C0039B64 C0039DCC C0005A7C
> 00000000 0FE20BFC 0FE29878 0FE29D1C 0FE29DE8 0FD7E354 0FD65D78
> 00000000
> Oops: Exception in kernel mode, sig: 4
> NIP: 000003B4 XER: 20000000 LR: 0FDF527C SP: C3BAFF40 REGS: c3baff50
> TRAP: 0700 Not tainted
> MSR: 00081000 EE: 0 PR: 0 FP: 0 ME: 1 IR/DR: 00
> TASK = c3bae000[54] 'run_xorg.sh' Last syscall: 114
> last math c36aa000 last altivec 00000000
> GPR00: 00000000 C3BAFF40 30012738 C3BAFF50 0FEF1C6C 20000000 00000000
> 7F7F0000
> GPR08: FFFFFFFD 00000000 1015E4CC 00000000 44000828 10094078 00000000
> 00000000
> GPR16: 00000000 00000000 00000005 7FFFFA20 00001032 03BAFF40 0FE49374
> 0000D032
> GPR24: 1009949C 00000000 00000003 00000000 7FFFFF8F 0FF0B59C 0FF09120
> 7FFFF8B0
> Call backtrace:
> C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
> C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
> C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
> C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
> C0005CC8 C0005CC8 C0005CC8 C0005CC8 C0005CC8
> ---------------------------------------------------------------
>
> And that goes on for every process running :-(
>
> Something is overwriting memory in kernel space I guess.
> Now, I have the BDI 2000 and I am trying to debug this, but until
> now I was unsuccessful :-(
>
> When I debug the kernel, the BDI prints this out in the telnet
> interface:
> - Target MBAR is 0xF0000000
> - Target XLBA is 0x8000A366
>
> I know what MBAR is, but what the XLBA is?
I would assume this is the XLB arbiter register.
> The problem is that while this value remains the same everything
> is fine. But sometimes it is set to 0x00000000 and then I cannot
> use debugger anymore. I can make a few steps when this value
> is set to 0x0, but the "stepping" is done in completely unrelated
> code. I first noticed this while stepping trough hc_found_ohci
> function when the return 0 is executed. When I disabled the USB
> support in my kernel I could use debugger to debug a kernel.
> But is still does not work all the time, because the XLBA still
> gets set to 0!
>
> I am using CVS version of DENX kernel version 2.4.25.
>
> Has anybody seen this?
>
> Maybe a tip how to debug this problem?
>
> Best regards,
> Matej
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 9:50 bdi2000 debugging Matej Kupljen
2005-02-16 10:15 ` Hans Thielemans
@ 2005-02-16 12:06 ` Stefan Nickl
2005-02-16 12:20 ` Matej Kupljen
2005-02-16 20:55 ` Sylvain Munaut
2 siblings, 1 reply; 8+ messages in thread
From: Stefan Nickl @ 2005-02-16 12:06 UTC (permalink / raw)
To: Matej Kupljen; +Cc: linuxppc-embedded
On Wed, 2005-02-16 at 10:50 +0100, Matej Kupljen wrote:
> Hi
>
> I am trying to debug a problem in a user space application
> (X windows), which when the process exits, crashes the kernel.
> ---------------------------------------------------------------
> Oops: Exception in kernel mode, sig: 4
> NIP: 000003B4 XER: 00000000 LR: C002B540 SP: C3B8DD10 REGS: c3b8dc60
Your dump says "sig: 4" (Illegal Instruction), which is different
from what I see. I get signal 11 (segfault), this is why I'm looking
after possible memory mapping issues.
Are you sure you use the right compiler/flags for mpc5200
when compiling the kernel and X?
--
Stefan Nickl
Kontron Modular Computers
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 12:06 ` Stefan Nickl
@ 2005-02-16 12:20 ` Matej Kupljen
0 siblings, 0 replies; 8+ messages in thread
From: Matej Kupljen @ 2005-02-16 12:20 UTC (permalink / raw)
To: Stefan Nickl; +Cc: linuxppc-embedded
Hi
> > I am trying to debug a problem in a user space application
> > (X windows), which when the process exits, crashes the kernel.
> > ---------------------------------------------------------------
> > Oops: Exception in kernel mode, sig: 4
> > NIP: 000003B4 XER: 00000000 LR: C002B540 SP: C3B8DD10 REGS: c3b8dc60
>
> Your dump says "sig: 4" (Illegal Instruction), which is different
> from what I see. I get signal 11 (segfault), this is why I'm looking
> after possible memory mapping issues.
>
> Are you sure you use the right compiler/flags for mpc5200
> when compiling the kernel and X?
Well, I think so, because everything else works.
Mplayer is especially peaky about the compiler, isn't it?
And it works.
Everything works, but when I quit X server, the kernel crashes :-(
NIP points to 000003B4?? Overwritten??
LR points to 0xc002b540 -- 0xc002b478 + 0x00c8 do_generic_file_write
SP seems good.
Still trying to locate it.
BR,
Matej
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 9:50 bdi2000 debugging Matej Kupljen
2005-02-16 10:15 ` Hans Thielemans
2005-02-16 12:06 ` Stefan Nickl
@ 2005-02-16 20:55 ` Sylvain Munaut
2005-02-16 21:21 ` Matej Kupljen
2 siblings, 1 reply; 8+ messages in thread
From: Sylvain Munaut @ 2005-02-16 20:55 UTC (permalink / raw)
To: Matej Kupljen, linuxppc-embedded
Hi
>Something is overwriting memory in kernel space I guess.
>Now, I have the BDI 2000 and I am trying to debug this, but until
>now I was unsuccessful :-(
>
>When I debug the kernel, the BDI prints this out in the telnet
>interface:
>- Target MBAR is 0xF0000000
>- Target XLBA is 0x8000A366
>
>I know what MBAR is, but what the XLBA is?
>The problem is that while this value remains the same everything
>is fine. But sometimes it is set to 0x00000000 and then I cannot
>use debugger anymore. I can make a few steps when this value
>is set to 0x0, but the "stepping" is done in completely unrelated
>code. I first noticed this while stepping trough hc_found_ohci
>function when the return 0 is executed. When I disabled the USB
>support in my kernel I could use debugger to debug a kernel.
>But is still does not work all the time, because the XLBA still
>gets set to 0!
>
>
The good news : I can explain you BDI2000 problem :)
The bad news : AFAIK you can't fix it :(
There is a bug in the rev <= 1.2 of the silicon of MPC5200 : When there
is another XLB Master active (like USB or any bestcomm activity), the XLB
arbiter can get confused during debugging and you can resume nor
can you access memory or do anything ... you can just reboot.
It's VERY frustrating since the BDI2000 is then kind of useless for debug
in the cases when you need those activated ...
Sylvain
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 20:55 ` Sylvain Munaut
@ 2005-02-16 21:21 ` Matej Kupljen
2005-02-16 23:44 ` Sylvain Munaut
0 siblings, 1 reply; 8+ messages in thread
From: Matej Kupljen @ 2005-02-16 21:21 UTC (permalink / raw)
To: Sylvain Munaut; +Cc: linuxppc-embedded
Hi
> The good news : I can explain you BDI2000 problem :)
Thank you for the explanation.
> The bad news : AFAIK you can't fix it :(
>
> There is a bug in the rev <= 1.2 of the silicon of MPC5200 : When there
> is another XLB Master active (like USB or any bestcomm activity), the XLB
> arbiter can get confused during debugging and you can resume nor
> can you access memory or do anything ... you can just reboot.
Hmm, this is not good. :(
How can I determine the silicon rev.?
I'll look it up in the docs.
> It's VERY frustrating since the BDI2000 is then kind of useless for debug
> in the cases when you need those activated ...
So I have to disable USB (can live without it for debugging), bestcomm
(hmm, how can I use console on serial port then?) and what else?
Thanks again for the explanation, I'd spent one more week on this.
Now I know I have to use a different approach :-(
BR,
Matej
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 21:21 ` Matej Kupljen
@ 2005-02-16 23:44 ` Sylvain Munaut
2005-02-17 9:53 ` Matej Kupljen
0 siblings, 1 reply; 8+ messages in thread
From: Sylvain Munaut @ 2005-02-16 23:44 UTC (permalink / raw)
To: Matej Kupljen, linuxppc-embedded
>>The bad news : AFAIK you can't fix it :(
>>
>>There is a bug in the rev <= 1.2 of the silicon of MPC5200 : When there
>>is another XLB Master active (like USB or any bestcomm activity), the XLB
>>arbiter can get confused during debugging and you can resume nor
>>can you access memory or do anything ... you can just reboot.
>>
>>
>
>Hmm, this is not good. :(
>
>
No kidding ;)
>How can I determine the silicon rev.?
>I'll look it up in the docs.
>
>
L25R marking on the top means rev 1.2 IIRC. That's the one I have. Also,
if you have a
rev 2, you're lucky, I'd like one ;)
>>It's VERY frustrating since the BDI2000 is then kind of useless for debug
>>in the cases when you need those activated ...
>>
>>
>
>So I have to disable USB (can live without it for debugging), bestcomm
>(hmm, how can I use console on serial port then?) and what else?
>
>
Serial port console is OK the drivers I know don't use bestcomm. But
USB, Ethernet, IDE, Codec, ....
Sylvain
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: bdi2000 debugging
2005-02-16 23:44 ` Sylvain Munaut
@ 2005-02-17 9:53 ` Matej Kupljen
0 siblings, 0 replies; 8+ messages in thread
From: Matej Kupljen @ 2005-02-17 9:53 UTC (permalink / raw)
To: Sylvain Munaut; +Cc: linuxppc-embedded
Hi
> L25R marking on the top means rev 1.2 IIRC. That's the one I have. Also,
> if you have a
> rev 2, you're lucky, I'd like one ;)
Nope, mine has: 2L25R
So
> Serial port console is OK the drivers I know don't use bestcomm. But
> USB, Ethernet, IDE, Codec, ....
O.K.
I need Ethernet, because I use NFS rootfs :-(
Thanks for the info.
BR,
Matej
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-02-17 9:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-16 9:50 bdi2000 debugging Matej Kupljen
2005-02-16 10:15 ` Hans Thielemans
2005-02-16 12:06 ` Stefan Nickl
2005-02-16 12:20 ` Matej Kupljen
2005-02-16 20:55 ` Sylvain Munaut
2005-02-16 21:21 ` Matej Kupljen
2005-02-16 23:44 ` Sylvain Munaut
2005-02-17 9:53 ` Matej Kupljen
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).