Re: PROBLEM: kernel 3.14.4-1.gbebeb6f + USB3 card (xhci driver) --> call trace + failed boot

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

 



Hi

On 05/28/2014 03:00 AM, grantksupport@xxxxxxxxxxxxx wrote:
> Hi,
> 
> I run Opensuse with kernel == 3.14.4-1.gbebeb6f.  Whenever I insert a
> new USB3 card, I get a CallTrace from the kernelm, and a failed boot.
> 
> In #kernel irc, I was told that the bug should be reported at Opensuse
> because it's an Opensuse kernel.
> 
> I did that
> 
> 	Bug 878489 - Opensuse 13.1 throws CALL TRACE and fails to boot
> 	when USB3 (xhci_hcd) card is added.
> 	https://bugzilla.novell.com/show_bug.cgi?id=878489
> 
> and was told there to take it upstream; upstream said it's an Opensuse
> kernel ... Ping. Pong.
> 
> I finally figured out how to install an un-patched 'vanilla' kernel from
> upstream, and can reproduce the problem.  Iiuc, that indicates it IS a
> kernel bug.  I was told that if I can reproduce it with an unpatched,
> upstream-only kernel, hten I should contact the subsystem maintainer
> directly, which appears to be you:
> 

Thats right, looking at the log it seems a reset device command fails because the
slot that the reset command reports was reset does not match the slot that was
originally commanded to be reset.

It might be possible that we got the command and its completion event out of sync
and are just comparing the wrong things.

There was a big rewrite of the whole xhci command queue which is on its way to
3.16. which might fix this.

For now, could you add the following line to you kernel command line, and then reboot:
trace_event=xhci_cmd_completion

and show the content of the trace file:
cat /sys/kernel/debug/tracing/trace
(mount debugfs with "mount -t debugfs none /sys/kenel/debug" if file does not exist)

Also output of "lsusb -v" and "lspci -v" could contains some interesting info

Thanks
-Mathias

(keeping trace here for reference)
> 
> This is what I see in the logs, with the vanilla kernel installed and
> the USB3 card inserted, on boot:
> 
> 
> May 27 16:16:28 gdesk kernel: ------------[ cut here ]------------
> May 27 16:16:28 gdesk kernel: WARNING: CPU: 3 PID: 0 at
> /home/abuild/rpmbuild/BUILD/kernel-vanilla-3.14.4/linux-3.14/drivers/usb/host/xhci-ring.c:1582
> handle_cmd_completion+0xe1c/0xe70 [xhci_hcd]()
> May 27 16:16:28 gdesk kernel: Modules linked in: ohci_hcd(+) ehci_pci(+)
> xhci_hcd ehci_hcd usbcore usb_common scsi_dh_hp_sw scsi_dh_rdac
> scsi_dh_alua scsi_dh_emc scsi_dh dm_mirror dm_region_hash dm_log
> forcedeth edd fan ata_generic sata_nv pata_amd thermal processor dummy
> sha512_generic sha256_generic glue_helper lrw gf128mul ablk_helper
> cryptd aes_x86_64 vfat fat udf crc_itu_t xfs libcrc32c dm_snapshot
> dm_bufio dm_crypt dm_mod raid456 async_raid6_recov async_memcpy async_pq
> async_xor async_tx xor raid6_pq raid10 raid1 raid0 md_mod
> May 27 16:16:28 gdesk kernel: CPU: 3 PID: 0 Comm: swapper/3 Not tainted
> 3.14.4-1.gbebeb6f-vanilla #1
> May 27 16:16:28 gdesk kernel: Hardware name: System manufacturer System
> Product Name/M4A78T-E, BIOS 3503    04/13/2011
> May 27 16:16:28 gdesk kernel:  0000000000000009 ffff88042fcc3da8
> ffffffff815db1b8 0000000000000000
> May 27 16:16:28 gdesk kernel:  ffff88042fcc3de0 ffffffff81059acd
> ffff880417881480 0000000000000000
> May 27 16:16:28 gdesk kernel:  ffff880417881020 0000000417881020
> ffff8804183ea000 ffff88042fcc3df0
> May 27 16:16:28 gdesk kernel: Call Trace:
> May 27 16:16:28 gdesk kernel:  <IRQ>  [<ffffffff815db1b8>]
> dump_stack+0x45/0x56
> May 27 16:16:28 gdesk kernel:  [<ffffffff81059acd>]
> warn_slowpath_common+0x7d/0xa0
> May 27 16:16:28 gdesk kernel:  [<ffffffff81059baa>]
> warn_slowpath_null+0x1a/0x20
> May 27 16:16:28 gdesk kernel:  [<ffffffffa036f9bc>]
> handle_cmd_completion+0xe1c/0xe70 [xhci_hcd]
> May 27 16:16:28 gdesk kernel:  [<ffffffff8108d282>] ?
> try_to_wake_up+0x212/0x2d0
> May 27 16:16:28 gdesk kernel:  [<ffffffff81065180>] ?
> ftrace_raw_output_tick_stop+0x70/0x70
> May 27 16:16:28 gdesk kernel:  [<ffffffffa03713c3>] xhci_irq+0x2f3/0xa00
> [xhci_hcd]
> May 27 16:16:28 gdesk kernel:  [<ffffffff810651c6>] ?
> call_timer_fn+0x36/0x100
> May 27 16:16:28 gdesk kernel:  [<ffffffffa0371ae1>]
> xhci_msi_irq+0x11/0x20 [xhci_hcd]
> May 27 16:16:28 gdesk kernel:  [<ffffffff810b4efe>]
> handle_irq_event_percpu+0x3e/0x1d0
> May 27 16:16:28 gdesk kernel:  [<ffffffff810b50cd>]
> handle_irq_event+0x3d/0x60
> May 27 16:16:28 gdesk kernel:  [<ffffffff810b7c15>]
> handle_edge_irq+0x85/0x150
> May 27 16:16:28 gdesk kernel:  [<ffffffff81004cb1>] handle_irq+0x21/0x30
> May 27 16:16:28 gdesk kernel:  [<ffffffff815ec73f>] do_IRQ+0x4f/0xf0
> May 27 16:16:28 gdesk kernel:  [<ffffffff815e1aed>]
> common_interrupt+0x6d/0x6d
> May 27 16:16:28 gdesk kernel:  <EOI>  [<ffffffff810422c6>] ?
> native_safe_halt+0x6/0x10
> May 27 16:16:28 gdesk kernel:  [<ffffffff8100bc3f>]
> default_idle+0x1f/0xc0
> May 27 16:16:28 gdesk kernel:  [<ffffffff8100c506>]
> arch_cpu_idle+0x26/0x30
> May 27 16:16:28 gdesk kernel:  [<ffffffff810b41d5>]
> cpu_startup_entry+0xe5/0x290
> May 27 16:16:28 gdesk kernel:  [<ffffffff81033008>]
> start_secondary+0x218/0x2c0
> May 27 16:16:28 gdesk kernel: ---[ end trace 1482c0989732cff6 ]---
> 
> I was told to submit that ^^.  If there's any additional info you need,
> pls let me know.
> 


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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux