Kernel panic with Gadget CDC/ECM

2013-07-23 Thread tong li
Hello,

I run our board(not a common one) as a Gadget CDC/ECM device with linux-3.0.39.
At the outset it is running normally when I plug it into
HostPC(Ubuntu12.04),I test it with iperf.
But if I leave it connected for a long time(actually not certain),
I unplug/plug the usb cable again I get the kernel panic.
And it happened infrequently which made me difficult to find the real reason.
Has anyone else seen this or know what could be causing it?

Best regards

LiTong

[  590.481517] g_ether.0 gadget: high speed config #1: CDC Ethernet (ECM)
[ 2870.342555] g_ether.0 gadget: high speed config #1: CDC Ethernet (ECM)
[ 2871.535677] [ cut here ]
[ 2871.540373] WARNING: at /work/linux-3.0.39/net/core/dev.c:2925
net_tx_action+0x6c/0x1a8()
[ 2871.548872] Modules linked in: g_ether
[ 2871.552776] Backtrace:
[ 2871.555318] [80032b04] (dump_backtrace+0x0/0x10c) from
[80295c4c] (dump_stack+0x18/0x1c)
[ 2871.563898]  r6:80331ebf r5:0b6d r4: r3:bf832000
[ 2871.569671] [80295c34] (dump_stack+0x0/0x1c) from [8004a6ac]
(warn_slowpath_common+0x54/0x6c)
[ 2871.578706] [8004a658] (warn_slowpath_common+0x0/0x6c) from
[8004a6e8] (warn_slowpath_null+0x24/0x2c)
[ 2871.588402]  r8: r7:00b69000 r6:80b92080 r5:80029080 r4:bf039f00
[ 2871.595095] r3:0009
[ 2871.597773] [8004a6c4] (warn_slowpath_null+0x0/0x2c) from
[80212300] (net_tx_action+0x6c/0x1a8)
[ 2871.606967] [80212294] (net_tx_action+0x0/0x1a8) from
[8004fd04] (__do_softirq+0xb4/0x15c)
[ 2871.615707]  r8:000a r7:0101 r6:80356048 r5:0001 r4:bf832000
[ 2871.622283] r3:80212294
[ 2871.625048] [8004fc50] (__do_softirq+0x0/0x15c) from [8004fe78]
(run_ksoftirqd+0xcc/0x1ec)
[ 2871.633833] [8004fdac] (run_ksoftirqd+0x0/0x1ec) from
[80063914] (kthread+0x90/0x98)
[ 2871.641960]  r7:0013 r6:8004fdac r5: r4:bf82ff20
[ 2871.647925] [80063884] (kthread+0x0/0x98) from [8004d7c4]
(do_exit+0x0/0x64c)
[ 2871.667897]  r6:8004d7c4 r5:80063884 r4:bf82ff20
[ 2871.672651] ---[ end trace 3f7079ce04858111 ]---
[ 2871.682535] [ cut here ]
[ 2871.687242] WARNING: at /work/linux-3.0.39-B/net/core/dev.c:2925
net_tx_action+0x6c/0x1a8()
[ 2871.695721] Modules linked in: g_ether
[ 2871.699505] Backtrace:
[ 2871.702066] [80032b04] (dump_backtrace+0x0/0x10c) from
[80295c4c] (dump_stack+0x18/0x1c)
[ 2871.710642]  r6:80331ebf r5:0b6d r4: r3:bf8fa000
[ 2871.716504] [80295c34] (dump_stack+0x0/0x1c) from [8004a6ac]
(warn_slowpath_common+0x54/0x6c)
[ 2871.725523] [8004a658] (warn_slowpath_common+0x0/0x6c) from
[8004a6e8] (warn_slowpath_null+0x24/0x2c)
[ 2871.735226]  r8:bf107480 r7:00b69000 r6:80b92080 r5:80029080 r4:bf107a20
[ 2871.741801] r3:0009
[ 2871.744585] [8004a6c4] (warn_slowpath_null+0x0/0x2c) from
[80212300] (net_tx_action+0x6c/0x1a8)
[ 2871.753810] [80212294] (net_tx_action+0x0/0x1a8) from
[8004fd04] (__do_softirq+0xb4/0x15c)
[ 2871.762650]  r8:000a r7:0103 r6:80356048 r5:0081 r4:bf8fa000
[ 2871.769232] r3:80212294
[ 2871.771890] [8004fc50] (__do_softirq+0x0/0x15c) from [80050224]
(irq_exit+0x50/0xac)
[ 2871.780155] [800501d4] (irq_exit+0x0/0xac) from [8002a298]
(do_local_timer+0x64/0x94)
[ 2871.788601]  r4: r3:029c
[ 2871.792978] [8002a234] (do_local_timer+0x0/0x94) from
[8002f60c] (__irq_svc+0x4c/0xe0)
[ 2871.805491] Unable to handle kernel paging request at virtual
address 00100104
[ 2871.812744] pgd = 80004000
[ 2871.815457] [00100104] *pgd=
[ 2871.819056] Internal error: Oops: 817 [#1] PREEMPT SMP
[ 2871.824210] Modules linked in: g_ether
[ 2871.827985] CPU: 0Tainted: GW(3.0.39 #50)
[ 2871.833444] PC is at gether_disconnect+0x108/0x1a0 [g_ether]
[ 2871.839144] LR is at _raw_spin_lock+0x10/0x14
[ 2871.843520] pc : [7f003a68]lr : [8029a8ac]psr: 8193
[ 2871.843530] sp : bf8fba90  ip : 00200200  fp : bf8fbaac
[ 2871.855038] r10:   r9 : bf8fa000  r8 : bf9b0400
[ 2871.860279] r7 : beca0238  r6 : bf9fc3b4  r5 : bf970b40  r4 : bf9fc3a0
[ 2871.866825] r3 : 00200200  r2 : 00100100  r1 : 0001  r0 : bf9fc3b4
[ 2871.873373] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM
Segment kernel
[ 2871.880797] Control: 10c5387d  Table: 7f0d004a  DAC: 0015
[ 2871.886563] Process kworker/0:1 (pid: 17, stack limit = 0xbf8fa2f0)
[ 2871.892850] Stack: (0xbf8fba90 to 0xbf8fc000)
[ 2871.897225] ba80: bf970b40
bf0fff60  0001
[ 2871.905436] baa0: bf8fbac4 bf8fbab0 7f003cc0 7f00396c 7f003c9c
bf970b40 bf8fbae4 bf8fbac8
[ 2871.913647] bac0: 7f00010c 7f003ca8  bf0fff60 bf0ba1a0
7f0046d0 bf8fbb44 bf8fbae8
[ 2871.921859] bae0: 7f00263c 7fe8   803754d8
80375112 803754d8 bf0fff9c
[ 2871.930071] bb00: bf9b0400  8015c5d8 8015c278 
 695f5f00 bf9b0400
[ 2871.938283] bb20:  7f00201c bf9b04ec fcc1 bf8fa000
 bf8fbb84 bf8fbb48
[ 2871.946495] bb40: 801f086c 7f002028   00010900
 bf8fbb8c 00270127
[ 2871.954708] 

Re: Kernel panic with Gadget CDC/ECM

2013-07-23 Thread Greg KH
On Wed, Jul 24, 2013 at 09:38:02AM +0800, tong li wrote:
 Hello,
 
 I run our board(not a common one) as a Gadget CDC/ECM device with 
 linux-3.0.39.

Any chance to use a newer (i.e. something the community can help with),
kernel version?  Or, if you are stuck with 3.0, please get support from
your vendor, as you did pay for it already.

sorry,

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Kernel panic with Gadget CDC/ECM

2013-07-23 Thread Rajaram R
On Wed, Jul 24, 2013 at 7:08 AM, tong li fddllit...@gmail.com wrote:
 Hello,

 I run our board(not a common one) as a Gadget CDC/ECM device with 
 linux-3.0.39.
 At the outset it is running normally when I plug it into
 HostPC(Ubuntu12.04),I test it with iperf.
 But if I leave it connected for a long time(actually not certain),
 I unplug/plug the usb cable again I get the kernel panic.
 And it happened infrequently which made me difficult to find the real reason.
 Has anyone else seen this or know what could be causing it?

During 3.0 PM framework changes got integrated and it was work in
progress.That could be a reason. What is the controller driver below ?
As Greg said you might want to go for some newer stable kernel.



 Best regards

 LiTong

 [  590.481517] g_ether.0 gadget: high speed config #1: CDC Ethernet (ECM)
 [ 2870.342555] g_ether.0 gadget: high speed config #1: CDC Ethernet (ECM)
 [ 2871.535677] [ cut here ]
 [ 2871.540373] WARNING: at /work/linux-3.0.39/net/core/dev.c:2925
 net_tx_action+0x6c/0x1a8()
 [ 2871.548872] Modules linked in: g_ether
 [ 2871.552776] Backtrace:
 [ 2871.555318] [80032b04] (dump_backtrace+0x0/0x10c) from
 [80295c4c] (dump_stack+0x18/0x1c)
 [ 2871.563898]  r6:80331ebf r5:0b6d r4: r3:bf832000
 [ 2871.569671] [80295c34] (dump_stack+0x0/0x1c) from [8004a6ac]
 (warn_slowpath_common+0x54/0x6c)
 [ 2871.578706] [8004a658] (warn_slowpath_common+0x0/0x6c) from
 [8004a6e8] (warn_slowpath_null+0x24/0x2c)
 [ 2871.588402]  r8: r7:00b69000 r6:80b92080 r5:80029080 r4:bf039f00
 [ 2871.595095] r3:0009
 [ 2871.597773] [8004a6c4] (warn_slowpath_null+0x0/0x2c) from
 [80212300] (net_tx_action+0x6c/0x1a8)
 [ 2871.606967] [80212294] (net_tx_action+0x0/0x1a8) from
 [8004fd04] (__do_softirq+0xb4/0x15c)
 [ 2871.615707]  r8:000a r7:0101 r6:80356048 r5:0001 r4:bf832000
 [ 2871.622283] r3:80212294
 [ 2871.625048] [8004fc50] (__do_softirq+0x0/0x15c) from [8004fe78]
 (run_ksoftirqd+0xcc/0x1ec)
 [ 2871.633833] [8004fdac] (run_ksoftirqd+0x0/0x1ec) from
 [80063914] (kthread+0x90/0x98)
 [ 2871.641960]  r7:0013 r6:8004fdac r5: r4:bf82ff20
 [ 2871.647925] [80063884] (kthread+0x0/0x98) from [8004d7c4]
 (do_exit+0x0/0x64c)
 [ 2871.667897]  r6:8004d7c4 r5:80063884 r4:bf82ff20
 [ 2871.672651] ---[ end trace 3f7079ce04858111 ]---
 [ 2871.682535] [ cut here ]
 [ 2871.687242] WARNING: at /work/linux-3.0.39-B/net/core/dev.c:2925
 net_tx_action+0x6c/0x1a8()
 [ 2871.695721] Modules linked in: g_ether
 [ 2871.699505] Backtrace:
 [ 2871.702066] [80032b04] (dump_backtrace+0x0/0x10c) from
 [80295c4c] (dump_stack+0x18/0x1c)
 [ 2871.710642]  r6:80331ebf r5:0b6d r4: r3:bf8fa000
 [ 2871.716504] [80295c34] (dump_stack+0x0/0x1c) from [8004a6ac]
 (warn_slowpath_common+0x54/0x6c)
 [ 2871.725523] [8004a658] (warn_slowpath_common+0x0/0x6c) from
 [8004a6e8] (warn_slowpath_null+0x24/0x2c)
 [ 2871.735226]  r8:bf107480 r7:00b69000 r6:80b92080 r5:80029080 r4:bf107a20
 [ 2871.741801] r3:0009
 [ 2871.744585] [8004a6c4] (warn_slowpath_null+0x0/0x2c) from
 [80212300] (net_tx_action+0x6c/0x1a8)
 [ 2871.753810] [80212294] (net_tx_action+0x0/0x1a8) from
 [8004fd04] (__do_softirq+0xb4/0x15c)
 [ 2871.762650]  r8:000a r7:0103 r6:80356048 r5:0081 r4:bf8fa000
 [ 2871.769232] r3:80212294
 [ 2871.771890] [8004fc50] (__do_softirq+0x0/0x15c) from [80050224]
 (irq_exit+0x50/0xac)
 [ 2871.780155] [800501d4] (irq_exit+0x0/0xac) from [8002a298]
 (do_local_timer+0x64/0x94)
 [ 2871.788601]  r4: r3:029c
 [ 2871.792978] [8002a234] (do_local_timer+0x0/0x94) from
 [8002f60c] (__irq_svc+0x4c/0xe0)
 [ 2871.805491] Unable to handle kernel paging request at virtual
 address 00100104
 [ 2871.812744] pgd = 80004000
 [ 2871.815457] [00100104] *pgd=
 [ 2871.819056] Internal error: Oops: 817 [#1] PREEMPT SMP
 [ 2871.824210] Modules linked in: g_ether
 [ 2871.827985] CPU: 0Tainted: GW(3.0.39 #50)
 [ 2871.833444] PC is at gether_disconnect+0x108/0x1a0 [g_ether]
 [ 2871.839144] LR is at _raw_spin_lock+0x10/0x14
 [ 2871.843520] pc : [7f003a68]lr : [8029a8ac]psr: 8193
 [ 2871.843530] sp : bf8fba90  ip : 00200200  fp : bf8fbaac
 [ 2871.855038] r10:   r9 : bf8fa000  r8 : bf9b0400
 [ 2871.860279] r7 : beca0238  r6 : bf9fc3b4  r5 : bf970b40  r4 : bf9fc3a0
 [ 2871.866825] r3 : 00200200  r2 : 00100100  r1 : 0001  r0 : bf9fc3b4
 [ 2871.873373] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM
 Segment kernel
 [ 2871.880797] Control: 10c5387d  Table: 7f0d004a  DAC: 0015
 [ 2871.886563] Process kworker/0:1 (pid: 17, stack limit = 0xbf8fa2f0)
 [ 2871.892850] Stack: (0xbf8fba90 to 0xbf8fc000)
 [ 2871.897225] ba80: bf970b40
 bf0fff60  0001
 [ 2871.905436] baa0: bf8fbac4 bf8fbab0 7f003cc0 7f00396c 7f003c9c
 bf970b40 bf8fbae4 bf8fbac8
 [ 2871.913647] bac0: 7f00010c 7f003ca8  bf0fff60 bf0ba1a0
 7f0046d0 bf8fbb44 bf8fbae8
 [ 2871.921859] bae0: