Skip to contentSkip to conversation

Oops on PPC405EP

Xenomai-help Dirk Eibach 5 participants 9 messages Aug 21, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw
Quoted 19 lines · [email protected] wrote:
Quoted 14 lines · Dirk Eibach
Oops: Exception in kernel mode, sig: 4 [#1]
NIP: C016772C LR: C003C7B0 SP: C1A19E50 REGS: c1a19da0 TRAP: 0700

Not tainted
MSR: 0002b030 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 11
TASK = c1a10b60[500] 'sampling-497' THREAD: c1a18000
Last syscall: 50332203
GPR00: C1A10D48 C1A19E50 C1A10B60 C1A10D48 C0005940 0002B030 0007C45F C1A10B5F
GPR08: 00000001 00400000 00000001 C0260040 00000000 10020184 01FEF400 00000000
GPR16: 00000001 FFFFFFFF 00000000 00000000 0FFAC420 00000000 C1A19F50 C021C420
GPR24: 0000000E C0250000 C0260000 00000000 00000018 C0261350 C0362768 C0261380

Quoted 3 lines
Call trace: [c00421fc]  [c0042668]  [c0043530]  [c0035708]  [c000b418]

[c0002bf4]

Quoted 3 lines

Oops indeed. Could you objdump the kernel, and locate the symbols close to the addresses 0xC016772C and 0xC003C7B0? TIA,

Just compiled symbols into the kernel. Now it should be human readable ;)

Oops: Exception in kernel mode, sig: 4 [#1]
NIP: C016892C LR: C003D8CC SP: C1A39E50 REGS: c1a39da0 TRAP: 0700    Not

tainted
MSR: 0002b030 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 11
TASK = c1a2fb40[501] 'sampling-498' THREAD: c1a38000
Last syscall: 50332203
GPR00: C1A2FD28 C1A39E50 C1A2FB40 C1A2FD28 C0005960 0002B030 000634DF C1A2FB3F
GPR08: 00000001 00400000 00000001 C027E040 00000000 10020184 01FEF400 00000000
GPR16: 00000001 FFFFFFFF 00000000 00000000 0FFAC420 00000000 C1A39F50 C021D4A0
GPR24: 0000000E C0270000 C0280000 00000000 00000018 C027F350 C0382768 C027F380
NIP [c016892c] rthal_restore_fpu+0x10/0xe4
LR [c003d8cc] xnpod_switch_fpu+0x94/0x12c

Call trace:
  [c0043318] xnshadow_harden+0xd0/0xfc
  [c0043784] xnshadow_wait_barrier+0x100/0x114
  [c004464c] losyscall_event+0xc0/0x194
  [c0036824] __ipipe_dispatch_event+0x88/0x148
  [c000b488] __ipipe_syscall_root+0x50/0xd0
  [c0002c14] DoSyscall+0x24/0x6c

Cheers.

Signature · 5 lines
Dirk Eibach <[email protected]>
Guntermann & Drunck Systementwicklung GmbH
F & E
Dortmunder Str. 4a, D-57234 Wilnsdorf
Tel.: +49 (0) 2739 8901 100, Fax.: +49 (0) 2739 8901 120
#1 lore raw

Dirk Eibach kirjoitti:

Quoted 44 lines
Quoted 20 lines · [email protected] wrote:
Quoted 14 lines · Dirk Eibach
Oops: Exception in kernel mode, sig: 4 [#1]
NIP: C016772C LR: C003C7B0 SP: C1A19E50 REGS: c1a19da0 TRAP: 0700

Not tainted
MSR: 0002b030 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 11
TASK = c1a10b60[500] 'sampling-497' THREAD: c1a18000
Last syscall: 50332203
GPR00: C1A10D48 C1A19E50 C1A10B60 C1A10D48 C0005940 0002B030 0007C45F C1A10B5F
GPR08: 00000001 00400000 00000001 C0260040 00000000 10020184 01FEF400 00000000
GPR16: 00000001 FFFFFFFF 00000000 00000000 0FFAC420 00000000 C1A19F50 C021C420
GPR24: 0000000E C0250000 C0260000 00000000 00000018 C0261350 C0362768 C0261380

Quoted 3 lines
Call trace: [c00421fc]  [c0042668]  [c0043530]  [c0035708]  [c000b418]

[c0002bf4]

Quoted 3 lines

Oops indeed. Could you objdump the kernel, and locate the symbols close to the addresses 0xC016772C and 0xC003C7B0? TIA,

Just compiled symbols into the kernel. Now it should be human readable ;)

Oops: Exception in kernel mode, sig: 4 [#1]
NIP: C016892C LR: C003D8CC SP: C1A39E50 REGS: c1a39da0 TRAP: 0700    Not

tainted
MSR: 0002b030 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 11
TASK = c1a2fb40[501] 'sampling-498' THREAD: c1a38000
Last syscall: 50332203
GPR00: C1A2FD28 C1A39E50 C1A2FB40 C1A2FD28 C0005960 0002B030 000634DF C1A2FB3F
GPR08: 00000001 00400000 00000001 C027E040 00000000 10020184 01FEF400 00000000
GPR16: 00000001 FFFFFFFF 00000000 00000000 0FFAC420 00000000 C1A39F50 C021D4A0
GPR24: 0000000E C0270000 C0280000 00000000 00000018 C027F350 C0382768 C027F380
NIP [c016892c] rthal_restore_fpu+0x10/0xe4
LR [c003d8cc] xnpod_switch_fpu+0x94/0x12c

Quoted 7 lines
Call trace:
  [c0043318] xnshadow_harden+0xd0/0xfc
  [c0043784] xnshadow_wait_barrier+0x100/0x114
  [c004464c] losyscall_event+0xc0/0x194
  [c0036824] __ipipe_dispatch_event+0x88/0x148
  [c000b488] __ipipe_syscall_root+0x50/0xd0
  [c0002c14] DoSyscall+0x24/0x6c

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

-- Heikki Lindholm

#8 lore raw
In reply to Dirk Eibach
Quoted 2 lines · Dirk Eibach

NIP [c016892c] rthal_restore_fpu+0x10/0xe4
LR [c003d8cc] xnpod_switch_fpu+0x94/0x12c

Could you run "switchtest" ? If there is a FPU context switch error, you should get an (hopefully more clear) error message.

Signature · 1 line
					    Gilles Chanteperdrix.
#2 lore raw
In reply to Heikki Lindholm
Quoted 51 lines · [email protected] wrote:

Dirk Eibach kirjoitti:

Quoted 42 lines
Quoted 19 lines · [email protected] wrote:
Quoted 14 lines · Dirk Eibach
Oops: Exception in kernel mode, sig: 4 [#1]
NIP: C016772C LR: C003C7B0 SP: C1A19E50 REGS: c1a19da0 TRAP: 0700

Not tainted
MSR: 0002b030 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 11
TASK = c1a10b60[500] 'sampling-497' THREAD: c1a18000
Last syscall: 50332203
GPR00: C1A10D48 C1A19E50 C1A10B60 C1A10D48 C0005940 0002B030 0007C45F C1A10B5F
GPR08: 00000001 00400000 00000001 C0260040 00000000 10020184 01FEF400 00000000
GPR16: 00000001 FFFFFFFF 00000000 00000000 0FFAC420 00000000 C1A19F50 C021C420
GPR24: 0000000E C0250000 C0260000 00000000 00000018 C0261350 C0362768 C0261380

Quoted 3 lines
Call trace: [c00421fc]  [c0042668]  [c0043530]  [c0035708]  [c000b418]

[c0002bf4]

Quoted 3 lines

Oops indeed. Could you objdump the kernel, and locate the symbols close to the addresses 0xC016772C and 0xC003C7B0? TIA,

Just compiled symbols into the kernel. Now it should be human readable ;)

Oops: Exception in kernel mode, sig: 4 [#1]
NIP: C016892C LR: C003D8CC SP: C1A39E50 REGS: c1a39da0 TRAP: 0700    Not

tainted
MSR: 0002b030 EE: 1 PR: 0 FP: 1 ME: 1 IR/DR: 11
TASK = c1a2fb40[501] 'sampling-498' THREAD: c1a38000
Last syscall: 50332203
GPR00: C1A2FD28 C1A39E50 C1A2FB40 C1A2FD28 C0005960 0002B030 000634DF C1A2FB3F
GPR08: 00000001 00400000 00000001 C027E040 00000000 10020184 01FEF400 00000000
GPR16: 00000001 FFFFFFFF 00000000 00000000 0FFAC420 00000000 C1A39F50 C021D4A0
GPR24: 0000000E C0270000 C0280000 00000000 00000018 C027F350 C0382768 C027F380
NIP [c016892c] rthal_restore_fpu+0x10/0xe4
LR [c003d8cc] xnpod_switch_fpu+0x94/0x12c

Quoted 7 lines
Call trace:
  [c0043318] xnshadow_harden+0xd0/0xfc
  [c0043784] xnshadow_wait_barrier+0x100/0x114
  [c004464c] losyscall_event+0xc0/0x194
  [c0036824] __ipipe_dispatch_event+0x88/0x148
  [c000b488] __ipipe_syscall_root+0x50/0xd0
  [c0002c14] DoSyscall+0x24/0x6c
Quoted 7 lines

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

-- Heikki Lindholm

To: [email protected]
Cc: [email protected]

You are certainly right, PPC 405EP does not have an FPU. I just did not realize I had to turn it off in Real-time sub-system. Sorry.

Now the first test is running :)

Cheers.

Signature · 5 lines
Dirk Eibach <[email protected]>
Guntermann & Drunck Systementwicklung GmbH
F & E
Dortmunder Str. 4a, D-57234 Wilnsdorf
Tel.: +49 (0) 2739 8901 100, Fax.: +49 (0) 2739 8901 120
#3 lore raw
In reply to Heikki Lindholm
Quoted 2 lines · Heikki Lindholm

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

Maybe we could prevent this mistake in Kconfig ?

Signature · 1 line
					    Gilles Chanteperdrix.
arch/powerpc/Kconfig +1 -0
Index: ksrc/arch/powerpc/Kconfig
===================================================================
@@ -6,6 +6,7 @@
 
 config XENO_HW_FPU
 	bool "Enable FPU support"
+	depends on PPC_FPU
 	default y
 	help
 	The FPU executes instructions from the processor's normal
#4 lore raw
Quoted 6 lines · Gilles Chanteperdrix
Quoted 2 lines · Heikki Lindholm

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

Maybe we could prevent this mistake in Kconfig ?

I already wanted to ask the same.

Do we have such a dependency on other archs as well?

Jan

#7 lore raw
In reply to Gilles Chanteperdrix
Quoted 5 lines · Gilles Chanteperdrix
Quoted 2 lines · Heikki Lindholm

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

Maybe we could prevent this mistake in Kconfig ?

Yes, at least for 2.6. Applied, thanks.

Quoted 18 lines

plain text document attachment (xeno-hw-fpu-depends-on-ppc-fpu.patch)
Index: ksrc/arch/powerpc/Kconfig
===================================================================

arch/powerpc/Kconfig +1 -0
@@ -6,6 +6,7 @@
 
 config XENO_HW_FPU
 	bool "Enable FPU support"
+	depends on PPC_FPU
 	default y
 	help
 	The FPU executes instructions from the processor's normal

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#5 lore raw
In reply to Jan Kiszka
Quoted 11 lines · Jan Kiszka
Quoted 6 lines · Gilles Chanteperdrix
Quoted 2 lines · Heikki Lindholm

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

Maybe we could prevent this mistake in Kconfig ?

I already wanted to ask the same.

Do we have such a dependency on other archs as well?

Yep, ARM.

Quoted 7 lines

Jan

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#6 lore raw
Quoted 6 lines · Philippe Gerum
Quoted 5 lines · Jan Kiszka
Quoted 4 lines · Gilles Chanteperdrix
Quoted 2 lines · Heikki Lindholm

Since your hardware AFAIK does not have an FPU, shouldn't you be compiling Xenomai without hardware FPU support?

Quoted 9 lines
Quoted 6 lines
Quoted 2 lines

Maybe we could prevent this mistake in Kconfig ?

I already wanted to ask the same.

Do we have such a dependency on other archs as well?

Yep, ARM.

This said, we don't support hw FP for this arch, so this should not be an issue.

Quoted 7 lines
Quoted 7 lines

Jan

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.