* [Xenomai] Reg:Linux-3.10.32-xen-2.6.3 kernel panic
@ 2014-12-30 11:04 Sureshvs
2014-12-30 13:08 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Sureshvs @ 2014-12-30 11:04 UTC (permalink / raw)
To: xenomai; +Cc: Srikanth
Hi
Arch: powerpc 32bit
Target Processor : 8641D
Linux kernel: 3.10.32 with SMP
Xenomai : 2.6.3
Boot parameter root=/dev/nfs rw nfsroot=10.5.2.26:/opt/fc17fs_sband ip=10.5.2.20:10.5.2.26:10.5.18.4:255.255.255.0:VPX1234:eth0:off console=ttyS0,115200
While testing 1553B Linux driver with SMP kernel option enabled we are getting oops message mentioned below.\
We are not getting any problem in non-smp mode.
We are using spin_lock_irqsave for updating the global status between ISR and task.
While debugging we found that spin_lock_irqsave is giving problem.so kindly help us to solve the problem as soon as possible.
[ 253.985335] Unable to handle kernel paging request for unknown fault
[ 253.991687] Faulting instruction address: 0xa051e718
[ 253.996655] Oops: Kernel access of bad area, sig: 7 [#1]
[ 254.001957] SMP NR_CPUS=2 VPX
[ 254.004921] Modules linked in: dp1553bxt(O)
[ 254.009109] CPU: 0 PID: 1864 Comm: dp1553bxt_bcapp Tainted: G O 3.10.32-dpvpx0689 #155
[ 254.017885] task: cf34d140 ti: cfff6000 task.ti: ce352000
[ 254.023274] NIP: a051e718 LR: a051e6fc CTR: a051e6e4
[ 254.028230] REGS: cfff7c80 TRAP: 0600 Tainted: G O (3.10.32-dpvpx0689)
[ 254.035875] MSR: 00009032 <EE,ME,IR,DR,RI> CR: 24002448 XER: 00000000
[ 254.042515] DAR: cf4fccf6, DSISR: 00010940
[ 254.046601]
GPR00: d359c9e4 cfff7d30 cf34d140 00000000 cf65e300 00000001 01146000 00000001
GPR08: 00000001 00000000 00000001 00000000 a051e6e4 1002d964 10110000 10110000
GPR16: 100d757c 10110000 cf55ca80 00000000 d359f0b4 00008000 cf65e300 00000001
GPR24: 00000001 00000000 cf55c000 0000004d 00000000 00000000 cf55c058 cf4fccf6
[ 254.076379] NIP [a051e718] _raw_spin_lock_irqsave+0x34/0x98
[ 254.081944] LR [a051e6fc] _raw_spin_lock_irqsave+0x18/0x98
[ 254.087419] Call Trace:
[ 254.089859] [cfff7d30] [cf41d000] 0xcf41d000 (unreliable)
[ 254.095267] [cfff7d40] [d359c9e4] DP1553BXT_ISR+0xcdc/0x111c [dp1553bxt]
[ 254.101969] [cfff7f90] [a0074c74] handle_irq_event_percpu+0x60/0x174
[ 254.108319] [cfff7fc0] [a0074dcc] handle_irq_event+0x44/0x74
[ 254.113976] [cfff7fe0] [a0078884] handle_edge_irq+0xcc/0x1b4
[ 254.119635] [cfff7ff0] [a000e6b8] call_handle_irq+0x18/0x28
[ 254.125207] [ce353a90] [a00061b0] handle_one_irq+0x94/0xf0
[ 254.130689] [ce353ab0] [a000f5f4] __ipipe_do_IRQ+0x8c/0xc0
[ 254.136175] [ce353ad0] [a007f99c] __ipipe_do_sync_stage+0x214/0x224
[ 254.142438] [ce353b00] [a007fc48] ipipe_unstall_root+0x74/0x90
[ 254.148272] [ce353b10] [a0024a90] vprintk_emit+0x1b0/0x498
[ 254.153756] [ce353b60] [a0521d08] printk+0x128/0x1c0
[ 254.158719] [ce353bb0] [d358cb78] DP1553BXT_BC_CreateOpcodes+0x3c8/0x6d8 [dp1553bxt]
[ 254.166461] [ce353de0] [d358de50] DP1553BXT_BC_CreateMinorFrame+0x394/0x514 [dp1553bxt]
[ 254.174462] [ce353e30] [d3587154] dp1553bxt_ioctl+0x8ec/0x1ac4 [dp1553bxt]
[ 254.181332] [ce353ea0] [a012ccac] do_vfs_ioctl+0x98/0x768
[ 254.186726] [ce353f10] [a012d3bc] SyS_ioctl+0x40/0x74
[ 254.191776] [ce353f40] [a0011788] ret_from_syscall+0x0/0x38
[ 254.197343] --- Exception: c01 at 0xfec3098
[ 254.197343] LR = 0xfec3000
[ 254.204556] Instruction dump:
[ 254.207517] 7c0802a6 93e1000c 7c7f1b78 90010014 4baf0ca9 7c630034 5463d97e 54637820
[ 254.215282] 39400001 7d20f828 2c090000 40820010 <7d40f92d> 40a2fff0 4c00012c 2f890000
[ 254.246333] ---[ end trace 18a6c7160b20ef21 ]---
[ 254.250940]
[ 255.252470] Kernel panic - not syncing: Fatal exception in interrupt
[ 255.258821] drm_kms_helper: panic occurred, switching back to text console
[ 255.265786] Rebooting in 180 seconds..H¨H¨Õ\x12½½ÑÉÁÁå¹ÁÙ¡9½ÙÁÝÉÁÅѵÅÉéÅÕéÍá¥.Ñ.A.ÑÑ.ɹÍAYAaÁÙáåM
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai] Reg:Linux-3.10.32-xen-2.6.3 kernel panic
2014-12-30 11:04 [Xenomai] Reg:Linux-3.10.32-xen-2.6.3 kernel panic Sureshvs
@ 2014-12-30 13:08 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2014-12-30 13:08 UTC (permalink / raw)
To: Sureshvs; +Cc: Srikanth, xenomai
On Tue, Dec 30, 2014 at 04:34:59PM +0530, Sureshvs wrote:
> Hi
>
> Arch: powerpc 32bit
> Target Processor : 8641D
> Linux kernel: 3.10.32 with SMP
> Xenomai : 2.6.3
> Boot parameter root=/dev/nfs rw nfsroot=10.5.2.26:/opt/fc17fs_sband ip=10.5.2.20:10.5.2.26:10.5.18.4:255.255.255.0:VPX1234:eth0:off console=ttyS0,115200
>
>
> While testing 1553B Linux driver with SMP kernel option enabled we are getting oops message mentioned below.\
> We are not getting any problem in non-smp mode.
>
> We are using spin_lock_irqsave for updating the global status between ISR and task.
> While debugging we found that spin_lock_irqsave is giving problem.so kindly help us to solve the problem as soon as possible.
Your driver should probably be using the RTDM API and the spinlock
it provides:
https://xenomai.org/documentation/xenomai-2.6/html/api/group__rtdmsync.html#ga985473873f9e32af688fe8a23634693d
If you insist on using spin_lock_irqsave, you should note that
Linux spinlocks are obviously not safe to be called from real-time
domain, so, you should define the spinlock as ipipe_spinlock_t.
Also note that calling your kernel -xen- may be confusing, as xen is
something which exists, very distinct from xenomai.
--
Gilles.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-30 13:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-30 11:04 [Xenomai] Reg:Linux-3.10.32-xen-2.6.3 kernel panic Sureshvs
2014-12-30 13:08 ` Gilles Chanteperdrix
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.