query: ubuntu: 3.8 kernel: Reboot crash

On ubuntu 12.10 with 3.8 kernel on BeagleBone A6,
On issuing a "reboot", the kernel crashes in USB driver.

Anyone seen this or knows a fix before i delve deeper?

Logs:

root@arm:~# reboot
root@arm:~#
Broadcast message from ubuntu@arm
        (/dev/ttyO0) at 2:41 ...

The system is going down for reboot NOW!
* Stopping web server apache2 apache2: Could not reliably
determine the server's fully qualified domain name, ue
[ OK ]aiting
[ OK ]ing all remaining processes to terminate...
[ OK ] processes ended within 1 seconds....
[ OK ]ctivating swap...
[ OK ]ounting local filesystems...
* Will now restart
[ 112.083044] (NULL device *): gadget not registered.
[ 112.088710] Unable to handle kernel paging request at virtual
address 76656457
[ 112.096339] pgd = cf6dc000
[ 112.099209] [76656457] *pgd=00000000
[ 112.102997] Internal error: Oops: 5 [#1] SMP ARM
[ 112.107842] Modules linked in: ipv6
[ 112.111527] CPU: 0 Not tainted (3.8.1-bone5 #1)
[ 112.116661] PC is at kobject_put+0x10/0x78
[ 112.120972] LR is at dsps_musb_exit+0x48/0x54
[ 112.125540] pc : [<c03798b4>] lr : [<c04bbfc4>] psr: 20000013
[ 112.125540] sp : ce11de30 ip : 6db26db1 fp : 00000000
[ 112.137593] r10: 00000000 r9 : ce11c000 r8 : c095e4c8
[ 112.143077] r7 : c0a1b66c r6 : ce02c100 r5 : cf108900 r4 : 76656437
[ 112.149930] r3 : f9e10620 r2 : 00000000 r1 : 3c186004 r0 : 76656437
[ 112.156779] Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 112.164268] Control: 10c5387d Table: 8f6dc019 DAC: 00000015
[ 112.170289] Process reboot (pid: 926, stack limit = 0xce11c240)
[ 112.176499] Stack: (0xce11de30 to 0xce11e000)
[ 112.181074] de20: cf153a10
cf108900 cf153a10 c04bbfc4
[ 112.189664] de40: 00000000 ce02c100 60000013 c04b511c cf153a10
cf153a1c cf153a44 c040ea84
[ 112.198262] de60: cf153a44 c040a27c 00000000 00000000 fee1dead
00000003 c000dcc4 c0055bd4
[ 112.206858] de80: c0622004 c0055c28 01234567 c0055dd4 c08ead00
00000000 00000000 0000000b
[ 112.215453] dea0: ce11df54 ce11dee4 b597ffff 00000000 003b597f
ce11dee4 ce80319c c0139328
[ 112.224029] dec0: ce11df24 c00e1d54 ce11deec ce11df18 ffffffff
c00d8cec 0000000e c0362b98
[ 112.232620] dee0: ce11dee8 00000000 00000000 ce11deec ce11deec
ce11def4 ce11def4 00000000
[ 112.241212] df00: 00000000 00000000 ce80319c c00e0038 00000000
c00d8e08 7fffffff 00000000
[ 112.249793] df20: 00000000 00000000 ffffffff ffffffff ffffffff
b597ffff 00000003 00000000
[ 112.258386] df40: c08ee340 c0139328 c08f593c c00d8d9c b597ffff
00000003 ce9e8188 ce8030c8
[ 112.266982] df60: ce80319c ce9e8188 ce803120 c0140c58 c092de28
00000000 ce8030c8 00000000
[ 112.275571] df80: beca1e44 c01261f4 00000000 00000000 beca1e44
00000000 00000000 beca1e44
[ 112.284154] dfa0: 00000058 c000db40 00000000 00000000 fee1dead
28121969 01234567 00000003
[ 112.292744] dfc0: 00000000 00000000 beca1e44 00000058 00000000
00000000 b6f93f34 00000000
[ 112.301339] dfe0: 00000058 beca1cb4 b6ef981d b6e841e6 20000030
fee1dead 00000000 00000000
[ 112.309956] [<c03798b4>] (kobject_put+0x10/0x78) from [<c04bbfc4>]
(dsps_musb_exit+0x48/0x54)
[ 112.318913] [<c04bbfc4>] (dsps_musb_exit+0x48/0x54) from
[<c04b511c>] (musb_shutdown+0xbc/0xcc)
[ 112.328072] [<c04b511c>] (musb_shutdown+0xbc/0xcc) from
[<c040ea84>] (platform_drv_shutdown+0x1c/0x24)
[ 112.337863] [<c040ea84>] (platform_drv_shutdown+0x1c/0x24) from
[<c040a27c>] (device_shutdown+0x138/0x1bc)
[ 112.348019] [<c040a27c>] (device_shutdown+0x138/0x1bc) from
[<c0055bd4>] (kernel_restart_prepare+0x30/0x44)
[ 112.358261] [<c0055bd4>] (kernel_restart_prepare+0x30/0x44) from
[<c0055c28>] (kernel_restart+0xc/0x4c)
[ 112.368134] [<c0055c28>] (kernel_restart+0xc/0x4c) from
[<c0055dd4>] (sys_reboot+0x164/0x1c4)
[ 112.377112] [<c0055dd4>] (sys_reboot+0x164/0x1c4) from [<c000db40>]
(ret_fast_syscall+0x0/0x30)
[ 112.386246] Code: e92d4010 e2504000 e24dd008 0a000015 (e5d43020)
[ 112.392749] ---[ end trace 853e9a9fcd2f58bb ]---
Segmentation fault

Yeap, it doesn't reset... and getting the usb working in the first
place was a hack.. :wink:

Regards,

On ubuntu 12.10 with 3.8 kernel on BeagleBone A6,
On issuing a "reboot", the kernel crashes in USB driver.

Anyone seen this or knows a fix before i delve deeper?

Yeap, it doesn't reset... and getting the usb working in the first
place was a hack.. :wink:

Could you refer to what hack you are talking about?
Switching to 3.8 has lot of Device Tree working issues.

Eg: SPI device is not visible and i have not worked on DT enough why
spi driver probe will not get called. Any pointers?

On ubuntu 12.10 with 3.8 kernel on BeagleBone A6,
On issuing a "reboot", the kernel crashes in USB driver.

Anyone seen this or knows a fix before i delve deeper?

Yeap, it doesn't reset... and getting the usb working in the first
place was a hack.. :wink:

Could you refer to what hack you are talking about?

https://github.com/RobertCNelson/linux-dev/blob/am33x-v3.8/patches/usb/0009-MUSB-Hack-around-to-make-host-port-to-work.patch

Switching to 3.8 has lot of Device Tree working issues.

But DT is the future!

Eg: SPI device is not visible and i have not worked on DT enough why
spi driver probe will not get called. Any pointers?

I agree, the SPI device seems to be buried somewhere is under /sys/
under a new device tree directory..

Regards,