This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

musb kernel oops error after streaming with usb wireless module

Hi,

 

In DM365 IPNC board, I could able to stream with realtek 8192 reference board. But after some time >5 mins, kernel oops error comes, and sometimes stream became stuck. I tried the same driver in Desktop PC, where it worked without any issue. The kernel trace indicates some issues with musb.

 

Unable to handle kernel NULL pointer dereference at virtual address 00000038

pgd = c0004000

[00000038] *pgd=00000000

Internal error: Oops: 17 [#1]

Modules linked in: 8192cu sbull iscsi_tcp libiscsi scsi_transport_iscsi usbmon musb_hdrc usbcore ppp_deflate ppp_async ppp_synctty ppp_generic slhc tun loop 

nfsd exportfs nls_utf8 nls_ascii sha1 md5 des deflate crc32c cfq_iosched deadline_iosched libcrc32c crc_ccitt dm365mmap irqk edmak cmemk drv csl

CPU: 0

PC is at musb_start_urb+0x5c/0x7a4 [musb_hdrc]

LR is at musb_urb_enqueue+0x384/0x3d4 [musb_hdrc]

.......................

 

Details are given in the attached file. Could you please help me in this?

Thanks and regards

tvs1447.DM365_Kernel_2.6.18_dvsdk_2.10.01.18.txt

  • hello tvs :

    i have the same problem with you , and my wireless module is realtek 8712u.

    i also tried this usb wireless module on PC..., it's ok!!!

    do you solve this problem???

    can you share your experience with me, or any one could help??

    thank  you very much~~~

  • mUSB with DMA is "very broken" on AM3335/DM816x/DM814x so I wouldn't be surprised if the same was true for the DM365.

    I have been trying to get *any* USB wireless device to work properly with these processors for several months with no joy.

    Try disabling DMA on the USB host.  Performance is poorer for other things (eg USB storage) but I do have rt8712 (rt8192) devices working at around 70Mbit/sec on a DM814xEVM by disabling DMA.

    I hope we can convince TI to help to investigate this issue - it appears to be deep in the guts of the mUSB DMA stuff, so I'm struggling to debug it myself.

  • hello Jeffray, thanks for reply and your advice is really useful to me.

    i disable mUSB DMA in kernel (device drivers ---> USB support ---> [*]Disable DMA(always use PIO), and my

    streaming bit rate :5000Kbps,

    MTU: 1500.

    i could able to stream with realtek 8712u usb module over than 30mins, although kernel oops error still comes,

    before disable mUSB DMA, the kernel oops error comes in 5mins.

    when bit rate is lowered, more time could be normal operation...

    i tried another module, ralink rt3070sta without disabling DMA, and the settings of bit rate and MTU are the same as the aforementioned.

    it could work normally over than 5 hrs.

    perhaps because the difference of  max transfer rate between 8712u(150Mbps) and rt3070sta(300Mbps),....i am not very sure.

    (maybe we can modify source code to fix this problem..??)