用于2个QCA9892接口的ath10k wifi驱动程序

时间:2015-06-22 02:33:46

标签: linux wireless

我有2张QCA9892接口卡。我使用ath10k驱动程序。我的linux内核版本是3.10.39。插入模块时,我收到以下错误消息:

[  355.830288] ath10k_pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe01fffff 64bit]
[  355.836931] ath10k_pci 0000:01:00.0: BAR 0: set to [mem 0xe0000000-0xe01fffff 64bit] (PCI address [0xe0000000-0xe01fffff])
[  355.839136] ath10k: MSI-X didn't succeed (1), trying MSI
[  355.843242] ath10k: MSI interrupt handling
[  355.910529] ath10k: Hardware name qca988x hw2.0 version 0x4100016c
[  356.810771] ath10k: UART prints disabled
[  356.817439] ath10k: Target ready! transmit resources: 2 size:1792
[  356.817446] ath10k: ath10k_htc_build_tx_ctrl_skb: skb eeb4f6c0
[  356.817463] ath10k: ath10k_htc_notify_tx_completion: ep 0 skb eeb4f6c0
[  356.817478] ath10k: HTC Service HTT Data connect response: status: 0x0, assigned ep: 0x1
[  356.818243] ath10k: ath10k_htc_build_tx_ctrl_skb: skb ef3a2300
[  356.818265] ath10k: ath10k_htc_notify_tx_completion: ep 0 skb ef3a2300
[  356.818282] ath10k: HTC Service WMI connect response: status: 0x0, assigned ep: 0x2
[  356.818286] ath10k: ath10k_htc_build_tx_ctrl_skb: skb eeb4f780
[  356.818289] ath10k: HTC is using TX credit flow control
[  356.818304] ath10k: ath10k_htc_notify_tx_completion: ep 0 skb eeb4f780
[  356.818386] ath10k: htc rx completion ep 2 skb eeea2b00
[  356.818390] ath10k: firmware has requested 1 memory chunks
[  356.818393] ath10k: wmi mem_req_id 1 num_units 0 num_unit_info 2 unit size 404 actual units 145
[  356.818514] ath10k: wmi event service ready sw_ver 0x4100270f abi_ver 1 phy_cap 0x00000003 ht_cap 0x0000085b vht_cap 0x338001b2 vht_supp_msc 0x0000fffa sys_cap_info 0x00000000 mem_reqs 1 num_rf_chains 2
[  356.818524] ath10k: firmware 10.1.467.2-1 booted
[  356.821868] ath10k: wmi sending 1 memory chunks info.
[  356.821874] ath10k: wmi chunk 0 len 58580 requested, addr 0x2e310000
[  356.821878] ath10k: wmi init 10x
[  356.821910] ath10k: ath10k_htc_notify_tx_completion: ep 2 skb eeea2b00
[  356.830881] ath10k: htc rx completion ep 2 skb eeea2a40
[  356.830885] ath10k: WMI_DEBUG_PRINT_EVENTID
[  356.831370] ath10k: htc rx completion ep 2 skb eeea2980
[  356.831376] ath10k: wmi event ready sw_version 1090529039 abi_version 1 mac_addr f8:35:dd:c7:47:15 status 0
[  356.831412] ath10k: htc rx completion ep 1 skb eeb4f9c0
[  356.831418] ath10k: ath10k_htc_notify_tx_completion: ep 1 skb eeea2980
[  356.831424] ath10k: htt target version 2.1
[  356.834894] ath10k: ath10k_htc_notify_tx_completion: ep 1 skb eeea2980
[  356.835647] ath: EEPROM regdomain: 0x0
[  356.835650] ath: EEPROM indicates default country code should be used
[  356.835651] ath: doing EEPROM country->regdmn map search
[  356.835654] ath: country maps to regdmn code: 0x3a
[  356.835657] ath: Country alpha2 being used: US
[  356.835658] ath: Regpair used: 0x3a
[  356.837136] ath10k_pci 0000:02:00.0: BAR 0: assigned [mem 0xe0400000-0xe05fffff 64bit]
[  356.843854] ath10k_pci 0000:02:00.0: BAR 0: set to [mem 0xe0400000-0xe05fffff 64bit] (PCI address [0xe0400000-0xe05fffff])
[  356.843905] Unhandled fault: external abort on non-linefetch (0x1008) at 0xf1480000
[  356.850276] Internal error: : 1008 [#1] SMP ARM
[  356.853510] Modules linked in: ath10k_pci(+) ath10k_core ath
[  356.857920] CPU: 0 PID: 3027 Comm: insmod Not tainted 3.10.39 #11
[  356.862720] task: f02ef9c0 ti: eec64000 task.ti: eec64000
[  356.866831] PC is at ath10k_do_pci_wake+0xb0/0x100 [ath10k_pci]
[  356.871461] LR is at ath10k_pci_probe+0x21c/0x36c [ath10k_pci]
[  356.876000] pc : [<bf02fa64>]    lr : [<bf030884>]    psr: 60030013
sp : eec65ca8  ip : eec65cd0  fp : eec65ccc
[  356.884889] r10: c0a561cc  r9 : eeb119c0  r8 : 0000c350
[  356.888817] r7 : ee030dc0  r6 : ee052c00  r5 : 00000000  r4 : 00000005
[  356.894051] r3 : ee052c00  r2 : f1480000  r1 : 00000000  r0 : ee030dc0
[  356.899286] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
[  356.905130] Control: 10c53c7d  Table: 2e04c04a  DAC: 00000015
[  356.909581] Process insmod (pid: 3027, stack limit = 0xeec64238)
[  356.914293] Stack: (0xeec65ca8 to 0xeec66000)
[  356.917354] 5ca0:                   ee052c00 f03a7400 f1400000 00000000 ee030dc0 bf036000
[  356.924244] 5cc0: eec65cfc eec65cd0 bf030884 bf02f9c0 00000006 10110000 eec65cfc f03a7468
[  356.931134] 5ce0: f03a7400 00000000 bf033da0 bf033d6c eec65d24 eec65d00 c03543d8 bf030674
[  356.938023] 5d00: c035435c c0ae1608 bf033da0 f03a7468 00000000 bf033da0 eec65d4c eec65d28
[  356.944912] 5d20: c0394b18 c0354368 00000000 f03a7468 bf033da0 f03a749c 00000000 bf033dec
[  356.951801] 5d40: eec65d6c eec65d50 c0394cc4 c0394a20 f006f61c bf033da0 c0394c28 00000000
[  356.958691] 5d60: eec65d94 eec65d70 c0392fdc c0394c34 f006f61c f03aae74 f006f630 bf033da0
[  356.965580] 5d80: c0a5d4f4 f02e8c40 eec65da4 eec65d98 c03945c4 c0392f84 eec65dd4 eec65da8
[  356.972469] 5da0: c039410c c03945a8 bf033290 c0a96d00 eec65dd4 bf033da0 bf033290 c0a96d00
[  356.979360] 5dc0: 00000000 bf033dec eec65dfc eec65dd8 c0395248 c039402c c0a5d4f4 bf033290
[  356.986250] 5de0: c0a96d00 00000000 bf033dec bf036000 eec65e14 eec65e00 c03544f0 c03951cc
[  356.993139] 5e00: eec64000 bf033df8 eec65e2c eec65e18 bf03601c c03544b0 00000000 eec64000
[  357.000030] 5e20: eec65e84 eec65e30 c00087f0 bf03600c eec65e6c eec65e40 eec64000 c0048730
[  357.006920] 5e40: 00000000 bf033dec eec65e74 eec65f48 bf033df8 bf033e34 00000001 eec65f48
[  357.013809] 5e60: bf033df8 bf033e34 00000001 bf033dec eeb119c0 00000001 eec65f44 eec65e88
[  357.020698] 5e80: c006f79c c00087b8 bf033df8 00007fff c006b938 c000e948 00000000 eec65ea8
[  357.027588] 5ea0: bf033dec bf033df8 00000000 eec64000 b6f8de80 bf033f48 bf033dec eec65f20
[  357.034476] 5ec0: 6e72656b 00006c65 00000000 00000000 00000000 00000000 00000000 00000000
[  357.041366] 5ee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[  357.048255] 5f00: 00000000 00000000 00000000 00000000 00000000 00000000 00000418 00000000
[  357.055144] 5f20: 00000003 b6f8de80 0000017b c000e948 eec64000 00000000 eec65fa4 eec65f48
[  357.062034] 5f40: c006ff40 c006df6c f0c30000 00082f90 f0c8f0dc f0c8eedc f0cb230c 00005f60
[  357.068923] 5f60: 00006760 00000000 00000000 00000000 00000033 00000034 0000001b 00000000
[  357.075812] 5f80: 00000011 00000000 00000003 c81e1900 b6f89cdc b6f75f10 00000000 eec65fa8
[  357.082701] 5fa0: c000e700 c006fed4 c81e1900 b6f89cdc 00000003 b6f8de80 00000000 00000002
[  357.089590] 5fc0: c81e1900 b6f89cdc b6f75f10 0000017b 00000000 b6f89cdc b6fa0000 00000000
[  357.096481] 5fe0: bec8fbf0 bec8fbe0 b6f846c3 b6ef0812 80030030 00000003 00000000 00000000
[  357.103382] [<bf02fa64>] (ath10k_do_pci_wake+0xb0/0x100 [ath10k_pci]) from [<bf030884>] (ath10k_pci_probe+0x21c/0x36c [ath10k_pci])
[  357.113937] [<bf030884>] (ath10k_pci_probe+0x21c/0x36c [ath10k_pci]) from [<c03543d8>] (pci_device_probe+0x7c/0xa4)
[  357.123095] [<c03543d8>] (pci_device_probe+0x7c/0xa4) from [<c0394b18>] (driver_probe_device+0x104/0x214)
[  357.131381] [<c0394b18>] (driver_probe_device+0x104/0x214) from [<c0394cc4>] (__driver_attach+0x9c/0xa0)
[  357.139579] [<c0394cc4>] (__driver_attach+0x9c/0xa0) from [<c0392fdc>] (bus_for_each_dev+0x64/0x98)
[  357.147342] [<c0392fdc>] (bus_for_each_dev+0x64/0x98) from [<c03945c4>] (driver_attach+0x28/0x34)
[  357.154930] [<c03945c4>] (driver_attach+0x28/0x34) from [<c039410c>] (bus_add_driver+0xec/0x23c)
[  357.162432] [<c039410c>] (bus_add_driver+0xec/0x23c) from [<c0395248>] (driver_register+0x88/0x154)
[  357.170193] [<c0395248>] (driver_register+0x88/0x154) from [<c03544f0>] (__pci_register_driver+0x4c/0x58)
[  357.178482] [<c03544f0>] (__pci_register_driver+0x4c/0x58) from [<bf03601c>] (ath10k_pci_init+0x1c/0x4c [ath10k_pci])
[  357.187815] [<bf03601c>] (ath10k_pci_init+0x1c/0x4c [ath10k_pci]) from [<c00087f0>] (do_one_initcall+0x44/0x168)
[  357.196710] [<c00087f0>] (do_one_initcall+0x44/0x168) from [<c006f79c>] (load_module+0x183c/0x1e78)
[  357.204473] [<c006f79c>] (load_module+0x183c/0x1e78) from [<c006ff40>] (SyS_finit_module+0x78/0x7c)
[  357.212236] [<c006ff40>] (SyS_finit_module+0x78/0x7c) from [<c000e700>] (ret_fast_syscall+0x0/0x30)
[  357.219998] Code: d2844005 e5973150 e593200c e2822702 (e5923000) 
[  357.224799] ---[ end trace 7337fbe0cbac3479 ]---

第二个无法初始化。但第一个是工作,我可以扫描SSID,连接正常。

我不确定发生了什么。请给我一些建议。感谢。

sudo insmod ath.ko
sudo insmod ath10k_core.ko debug_mask=0x16
sudo insmod ath10k_pci.ko

lspci的:

01:00.0 Network controller: Qualcomm Atheros QCA988x 802.11ac Wireless Network Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 61
    Memory at e0000000 (64-bit, non-prefetchable) [size=2M]
    [virtual] Expansion ROM at e0200000 [disabled] [size=64K]
    Capabilities: [40] Power Management version 2
    Capabilities: [50] MSI: Enable- Count=1/8 Maskable+ 64bit-
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Virtual Channel
    Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
    Kernel driver in use: ath10k_pci

02:00.0 Network controller: Qualcomm Atheros QCA988x 802.11ac Wireless Network Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 65
    Memory at e0400000 (64-bit, non-prefetchable) [size=2M]
    [virtual] Expansion ROM at e0300000 [disabled] [size=64K]
    Capabilities: [40] Power Management version 2
    Capabilities: [50] MSI: Enable- Count=1/8 Maskable+ 64bit-
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Virtual Channel
    Capabilities: [160] Device Serial Number 00-00-00-00-00-00-00-00
    Kernel driver in use: ath10k_pci

1 个答案:

答案 0 :(得分:0)

最新的ath10k驱动程序一次只支持单卡。

支持两张卡(接口)。你必须移动你的驱动程序

两张牌。

像你的大多数结构和数组必须是两个接口等

谢谢