qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] help! usb wifi device lost, even crash!


From: xiucai
Subject: [Qemu-devel] help! usb wifi device lost, even crash!
Date: Thu, 11 May 2017 19:41:19 +0800

Hi,
    Here some usb wifi devices connect to host through an usb hub on centos 
linux release 7.2.1511.


    Execute "lsusb":
        Bus 002 Device 005: ID 0557:2419 ATEN International Co., Ltd 
        Bus 002 Device 004: ID 0557:7000 ATEN International Co., Ltd Hub
        Bus 002 Device 003: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
        Bus 002 Device 002: ID 8087:8002 Intel Corp. 
        Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
        Bus 001 Device 026: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 025: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 024: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 023: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 018: ID 1a40:0101 Terminus Technology Inc. Hub
        Bus 001 Device 017: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 016: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 015: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 014: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 013: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 012: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port 
Hub
        Bus 001 Device 022: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 021: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 020: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 019: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 011: ID 1a40:0101 Terminus Technology Inc. Hub
        Bus 001 Device 010: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 009: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 008: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 007: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 006: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 005: ID 0cf3:9271 Atheros Communications, Inc. AR9271 
802.11n
        Bus 001 Device 003: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port 
Hub
        Bus 001 Device 002: ID 8087:800a Intel Corp. 
        Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


    Each usb wifi devices will map to every virtual machine based on 
libvirt(kvm).
    Several problems come out:
        a, the wifi devices will disappear after its virtual machine shutdown, 
only restart host it can reuse!
        b, even crash occurs, puzzle!
    So, anyone who had ever met these cases.
    Thans for response!


    Here are 2 logs for a/b, separated by "=====...".


    BTW, i can not subscribe to linux-wireless/netdev maillist after several 
tries, i do not know why, so i can not report to them.


================================================== a.log 
==================================================
Apr  13  16:25:14  simpleMST  kernel:  ------------[  cut  here  ]------------
Apr  13  16:25:14  simpleMST  kernel:  WARNING:  CPU:  0  PID:  0  at  
drivers/usb/host/xhci-ring.c:1598  handle_cmd_completion+0xdb5/0xe60()
Apr  13  16:25:14  simpleMST  kernel:  Modules  linked  in:  vhost_net  vhost  
macvtap  macvlan  tun  fuse  ebtable_filter  ebtables  ip6table_filter  
ip6_tables  bonding  openvswitch  gre  vxlan  libcrc32c  nf_conntrack_ipv4  
nf_defrag_ipv4  xt_comment  xt_multiport  xt_conntrack  nf_conntrack  
iptable_filter  arc4  ath9k_htc  ath9k_common  ath9k_hw  ath  mac80211  
cfg80211  x86_pkg_temp_thermal  intel_powerclamp  coretemp  kvm_intel  kvm  
rfkill  crc32_pclmul  ghash_clmulni_intel  aesni_intel  lrw  gf128mul  
glue_helper  ablk_helper  iTCO_wdt  mei_me  cryptd  mei  iTCO_vendor_support  
ata_generic  pcspkr  ioatdma  sg  i2c_i801  lpc_ich  pata_acpi  mfd_core  
shpchp  ipmi_si  ipmi_msghandler  wmi  acpi_power_meter  nfsd  auth_rpcgss  
nfs_acl  lockd  sunrpc  ip_tables  ext4  mbcache  jbd2  sd_mod  crc_t10dif  
crct10dif_generic  ast  syscopyarea  sysfillrect  sysimgblt  drm_kms_helper  
ttm  drm  igb  ahci
Apr  13  16:25:14  simpleMST  kernel:  libahci  libata  ptp  crct10dif_pclmul  
crct10dif_common  pps_core  megaraid_sas  crc32c_intel  dca  i2c_algo_bit  
i2c_core  dm_mirror  dm_region_hash  dm_log  dm_mod
Apr  13  16:25:14  simpleMST  kernel:  CPU:  0  PID:  0  Comm:  swapper/0  Not  
tainted  3.15.6  #1
Apr  13  16:25:14  simpleMST  kernel:  Hardware  name:  Powerleader  
PR2510G2/SC612DI-8F,  BIOS  2.0a  06/17/2016
Apr  13  16:25:14  simpleMST  kernel:  0000000000000000  3cd0391b2f2511b6  
ffff88085fc03d68  ffffffff8161eabb
Apr  13  16:25:14  simpleMST  kernel:  0000000000000000  ffff88085fc03da0  
ffffffff8106db1d  ffff8808539af6f0
Apr  13  16:25:14  simpleMST  kernel:  00000008539af040  0000000000000008  
ffff8808539af040  ffff880851f18000
Apr  13  16:25:14  simpleMST  kernel:  Call  Trace:
Apr  13  16:25:14  simpleMST  kernel:  <IRQ>    [<ffffffff8161eabb>]  
dump_stack+0x45/0x56
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff8106db1d>]  
warn_slowpath_common+0x7d/0xa0
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff8106dc4a>]  
warn_slowpath_null+0x1a/0x20
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff8146be05>]  
handle_cmd_completion+0xdb5/0xe60
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff814bdb8c>]  ?  
intel_pstate_timer_func+0x34c/0x420
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff8146d903>]  
xhci_irq+0x333/0xa60
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff814296d6>]  
usb_hcd_irq+0x26/0x40
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff810ca4fe>]  
handle_irq_event_percpu+0x3e/0x1a0
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff810ca69d>]  
handle_irq_event+0x3d/0x60
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff810cdcb1>]  
handle_fasteoi_irq+0x81/0x150
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff81015ccf>]  
handle_irq+0xbf/0x150
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff8162a8ba>]  ?  
atomic_notifier_call_chain+0x1a/0x20
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff81631b4f>]  do_IRQ+0x4f/0xf0
Apr  13  16:25:14  simpleMST  kernel:  [<ffffffff816267ed>]  
common_interrupt+0x6d/0x6d
Apr  13  16:25:14  simpleMST  kernel:  <EOI>    [<fff




================================================== b.log 
==================================================
May 11 11:16:28 mst kernel: ------------[ cut here ]------------
May 11 11:16:28 mst kernel: WARNING: CPU: 0 PID: 0 at 
drivers/usb/core/urb.c:450 usb_submit_urb.part.6+0x15a/0x5d0()
May 11 11:16:28 mst kernel: usb 1-1.5.7.2: BOGUS urb xfer, pipe 1 != type 3
May 11 11:16:28 mst kernel: Modules linked in: vhost_net vhost macvtap macvlan 
fuse xt_CHECKSUM iptable_mangle ipt_MASQUERADE iptable_nat nf_nat_ipv4 nf_nat 
ipt_REJECT tun bridge stp llc ebtable_filter ebtables ip6table_filter 
ip6_tables bonding nf_conntrack_ipv4 nf_defrag_ipv4 openvswitch xt_comment 
xt_multiport xt_conntrack nf_conntrack gre vxlan libcrc32c iptable_filter arc4 
ath9k_htc ath9k_common ath9k_hw ath mac80211 cfg80211 x86_pkg_temp_thermal 
intel_powerclamp coretemp rfkill kvm_intel kvm crc32_pclmul ghash_clmulni_intel 
aesni_intel lrw gf128mul glue_helper ablk_helper iTCO_wdt sg cryptd 
iTCO_vendor_support shpchp ipmi_si lpc_ich i2c_i801 pcspkr ioatdma mei_me 
ipmi_msghandler mfd_core ata_generic pata_acpi mei wmi acpi_power_meter nfsd 
auth_rpcgss nfs_acl lockd sunrpc ip_tables ext4 mbcache jbd2 sd_mod
May 11 11:16:28 mst kernel: crc_t10dif crct10dif_generic ast syscopyarea 
sysfillrect sysimgblt drm_kms_helper ttm drm igb ahci libahci libata ptp 
megaraid_sas crct10dif_pclmul crct10dif_common crc32c_intel pps_core dca 
i2c_algo_bit i2c_core dm_mirror dm_region_hash dm_log dm_mod
May 11 11:16:28 mst kernel: CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W   
  3.15.6 #1
May 11 11:16:28 mst kernel: Hardware name: Powerleader PR2510G2/SC612DI-8F, 
BIOS 2.0a 06/17/2016
May 11 11:16:28 mst kernel: 0000000000000000 1e83a650b0008a72 ffff88085fc03d18 
ffffffff8161eabb
May 11 11:16:28 mst kernel: ffff88085fc03d60 ffff88085fc03d50 ffffffff8106db1d 
ffff880842518e40
May 11 11:16:28 mst kernel: 0000000000000002 0000000000000001 0000000000000002 
ffff88084faf1000
May 11 11:16:28 mst kernel: Call Trace:
May 11 11:16:28 mst kernel: <IRQ>  [<ffffffff8161eabb>] dump_stack+0x45/0x56
May 11 11:16:28 mst kernel: [<ffffffff8106db1d>] warn_slowpath_common+0x7d/0xa0
May 11 11:16:28 mst kernel: [<ffffffff8106db9c>] warn_slowpath_fmt+0x5c/0x80
May 11 11:16:28 mst kernel: [<ffffffff81500421>] ? 
__kmalloc_reserve.isra.25+0x31/0x90
May 11 11:16:28 mst kernel: [<ffffffff8142d62a>] 
usb_submit_urb.part.6+0x15a/0x5d0
May 11 11:16:28 mst kernel: [<ffffffff8142dad5>] usb_submit_urb+0x35/0x80
May 11 11:16:28 mst kernel: [<ffffffffa03f4a2e>] 
ath9k_hif_usb_reg_in_cb+0x11e/0x1b0 [ath9k_htc]
May 11 11:16:28 mst kernel: [<ffffffff8142a217>] 
__usb_hcd_giveback_urb+0x77/0x100
May 11 11:16:28 mst kernel: [<ffffffff8142b003>] usb_giveback_urb_bh+0xb3/0x150
May 11 11:16:28 mst kernel: [<ffffffff81072e63>] tasklet_hi_action+0xf3/0x100
May 11 11:16:28 mst kernel: [<ffffffff81073275>] __do_softirq+0xf5/0x2e0
May 11 11:16:28 mst kernel: [<ffffffff8107373d>] irq_exit+0x10d/0x120
May 11 11:16:28 mst kernel: [<ffffffff81631b58>] do_IRQ+0x58/0xf0
May 11 11:16:28 mst kernel: [<ffffffff816267ed>] common_interrupt+0x6d/0x6d
May 11 11:16:28 mst kernel: <EOI>  [<ffffffff814be382>] ? 
cpuidle_enter_state+0x52/0xc0
May 11 11:16:28 mst kernel: [<ffffffff814be378>] ? cpuidle_enter_state+0x48/0xc0
May 11 11:16:28 mst kernel: [<ffffffff814be427>] cpuidle_enter+0x17/0x20
May 11 11:16:28 mst kernel: [<ffffffff810b7384>] cpu_startup_entry+0x304/0x410
May 11 11:16:28 mst kernel: [<ffffffff8160c537>] rest_init+0x77/0x80
May 11 11:16:28 mst kernel: [<ffffffff81a91fdb>] start_kernel+0x45d/0x47e
May 11 11:16:28 mst kernel: [<ffffffff81a91987>] ? repair_env_string+0x5c/0x5c
May 11 11:16:28 mst kernel: [<ffffffff81a91120>] ? 
early_idt_handlers+0x120/0x120
May 11 11:16:28 mst kernel: [<ffffffff81a915ee>] 
x86_64_start_reservations+0x2a/0x2c
May 11 11:16:28 mst kernel: [<ffffffff81a91742>] x86_64_start_kernel+0x152/0x175
May 11 11:16:28 mst kernel: ---[ end trace 677e204f5ffdc531 ]---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]