Re: usb_8dev - WARN_ON(in_irq())

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Oliver,

On Fri, Dec 13 2019, Oliver Hartkopp wrote:
> Hi Michal,
>
> On 11/12/2019 12.48, Michal Sojka wrote:
>
>> I use usb_8dev USB2CAN converter and I'm getting non-killable processes
>> and the following warnings in dmesg. Any idea, how to fix it?
>
>> 
>> Dec 11 10:27:38 kernel: usb 1-5.2: new full-speed USB device number 12 using xhci_hcd
>> Dec 11 10:27:38 kernel: usb 1-5.2: New USB device found, idVendor=0483, idProduct=1234, bcdDevice= 1.00
>> Dec 11 10:27:38 kernel: usb 1-5.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
>> Dec 11 10:27:38 kernel: usb 1-5.2: Product: USB2CAN converter
>> Dec 11 10:27:38 kernel: usb 1-5.2: Manufacturer: 8Devices
>> Dec 11 10:27:38 kernel: usb 1-5.2: SerialNumber: 7272B673
>> Dec 11 10:27:38 kernel: usb_8dev 1-5.2:1.0 can0: firmware: 2.1, hardware: 2.0
>
> Is this the new version with the blue housing?
> https://www.8devices.com/products/usb2can_korlan

Yes, it is the new one. Originally, it had firmware 2.0 and the warnings
were the same. I upgraded it to 2.1 and nothing changed.

>> ...
>> Dec 11 10:28:54 kernel: ------------[ cut here ]------------
>> Dec 11 10:28:54 kernel: WARNING: CPU: 5 PID: 0 at net/core/skbuff.c:651 skb_release_head_state.cold+0xc/0x17
>
>> Dec 11 10:28:54 kernel: CPU: 5 PID: 0 Comm: swapper/5 Not tainted 5.3.0-1-amd64 #1 Debian 5.3.7-1
>
>> Dec 11 10:28:54 kernel: RIP: 0010:skb_release_head_state.cold+0xc/0x17
>> Dec 11 10:28:54 kernel: Code: 54 24 08 e8 1c 57 ae ff 0f 0b 48 8b 54 24 08 48 8b 74 24 10 4c 63 4c 24 1c e9 b2 93 ff ff 48 c7 c7 60 4b c6 8d e8 fa 56 ae ff <0f> 0b 48 8b 43 60 e9 1d 9e ff ff 44 89 ce 48 c7 c7 c8 6a d0 8d e8
>> Dec 11 10:28:54 kernel: RSP: 0018:ffffb8cf401c8cb8 EFLAGS: 00010046
>> Dec 11 10:28:54 kernel: RAX: 0000000000000024 RBX: ffff93e8bb326d00 RCX: 0000000000000000
>> Dec 11 10:28:54 kernel: RDX: 0000000000000000 RSI: ffff93e8bdb57688 RDI: ffff93e8bdb57688
>> Dec 11 10:28:54 kernel: RBP: ffff93e8bb326d00 R08: ffff93e8bdb57688 R09: 0000000000000004
>> Dec 11 10:28:54 kernel: R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff8d413959
>> Dec 11 10:28:54 kernel: R13: ffff93e8bb326d00 R14: 0000000000000082 R15: ffff93e8bdb6b64c
>> Dec 11 10:28:54 kernel: FS:  0000000000000000(0000) GS:ffff93e8bdb40000(0000) knlGS:0000000000000000
>> Dec 11 10:28:54 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
>> Dec 11 10:28:54 kernel: CR2: 00000042084c6000 CR3: 0000000344a0a005 CR4: 00000000003606e0
>> Dec 11 10:28:54 kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
>> Dec 11 10:28:54 kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
>> Dec 11 10:28:54 kernel: Call Trace:
>> Dec 11 10:28:54 kernel:  <IRQ>
>> Dec 11 10:28:54 kernel:  skb_release_all+0xe/0x30
>> Dec 11 10:28:54 kernel:  kfree_skb+0x32/0xa0
>> Dec 11 10:28:54 kernel:  enqueue_to_backlog+0x99/0x230
>> Dec 11 10:28:54 kernel:  ? recalibrate_cpu_khz+0x10/0x10
>> Dec 11 10:28:54 kernel:  netif_rx_internal+0x41/0x100
>> Dec 11 10:28:54 kernel:  netif_rx+0x18/0xb0
>> Dec 11 10:28:54 kernel:  can_get_echo_skb+0x32/0x60 [can_dev]
>> Dec 11 10:28:54 kernel:  usb_8dev_write_bulk_callback+0x7d/0xb0 [usb_8dev]
>> Dec 11 10:28:54 kernel:  __usb_hcd_giveback_urb+0x6f/0x120 [usbcore]
>
> Did you do anything weird (e.g. pulling the USB plug on the run) to get 
> this problem?

No, I just connected it to an ECU and started sending messages on the
bus. The behaviour was like if the messages were not acknowledged, i.e.,
initially, candump on my laptop showed the messages sent, but after some
time (perhaps after TX buffers were full), candump stopped. I was also
not able to see any messages sent by the ECU (both before and after I
sent my messages).

When I used the same ECU and all the wiring with peak_usb, communication
with the ECU was without any problems.

It could be that the 8dev device is somehow broken - it is brand new and
haven't used it for anything else before. But even if it is the case, I
think the above warnings should not appear.

-Michal



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux