From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Golle Date: Mon, 2 Jul 2012 03:31:10 +0300 Subject: [ath9k-devel] AR9380 on Kirkwood 88FR131 In-Reply-To: References: <4FF007E6.3080709@allnet.de> Message-ID: <4FF0EBCE.3020308@allnet.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On 01/07/12 22:51, Adrian Chadd wrote: > That looks quite odd. What endian-ness is it all supposed to be? Little Endian Could it be a byte-swapping issue...? root at OpenWrt:/# lspci -vv 00:00.0 Memory controller: Marvell Technology Group Ltd. 88F6281 [Kirkwood] ARM SoC (rev 03) Subsystem: Marvell Technology Group Ltd. Device 11ab Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- (64-bit, prefetchable) Capabilities: [40] Power Management version 3 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME- Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 Capabilities: [60] Express (v1) Root Port (Slot-), MSI 00 DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <256ns, L1 <1us ExtTag- RBE+ FLReset- DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported- RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop- MaxPayload 128 bytes, MaxReadReq 512 bytes DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend- LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <256ns, L1 unlimited ClockPM+ Surprise- LLActRep- BwNot- LnkCtl: ASPM Disabled; RCB 128 bytes Disabled- Retrain- CommClk- ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt- LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt- RootCtl: ErrCorrectable- ErrNon-Fatal- ErrFatal- PMEIntEna- CRSVisible- RootCap: CRSVisible- RootSta: PME ReqID 0000, PMEStatus- PMEPending- Capabilities: [100 v1] Advanced Error Reporting UESta: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol- UESvrt: DLP+ SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol- CESta: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr- CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+ AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn- 00:01.0 Network controller: Atheros Communications Inc. AR9300 Wireless LAN adaptor (rev 01) Subsystem: Atheros Communications Inc. Device 3112 Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- On 1 July 2012 01:18, Daniel Golle wrote: >> Hi! >> I'm trying to use a Senao EMP7606 module (AR9380) on a Marvell Kirkwood >> 88FR131-based board running OpenWrt r32511 with Linux 3.3.8 and >> compat-wireless-2012-06-14. >> I'm unable to figure out the reason for the card not working properly. Please >> advise me on how I should go on debugging/investigating the issue. >> ath9k_hw_reset is quite complex and I can't figure out why it returns -EIO. >> >> Initially, everything seems to work fine (scanning, creating interfaces, >> hostapd/wpa_supplicant, ...), it fails once there is any traffic: >> >> [143531.857501] ath: phy1: Unable to reset channel, reset status -5 >> [143531.863721] ath: phy1: Unable to set channel >> [143531.978747] ath: phy1: Could not kill baseband RX >> [143532.817467] ath: phy1: Unable to reset channel, reset status -5 >> [143532.823664] ath: phy1: Unable to set channel >> [143532.938686] ath: phy1: Could not kill baseband RX >> <7>[143533.424522] ath: phy1: NF calibrated [ctl] [chain 1] is -99 >> <7>[143541.165276] ath: phy1: TPC[23] 0x00000000 >> <7>[143541.824957] ath: phy1: LOOP-Ctlidx 0: cfgCtl 0x10 pCtlMode 0x06 ctlIndex >> 0x10 chan 5220 >> <7>[143542.784839] ath: phy1: TPC[26] 0x00000000 >> <7>[143542.965311] ath: phy1: TPC[04] 0x00000000 >> [143544.205106] ath: phy1: Unable to reset channel, reset status -5 >> [143544.211328] ath: phy1: Unable to set channel >> [143544.439405] ath: phy1: Unable to reset channel, reset status -5 >> [143544.445606] ath: phy1: Unable to set channel >> [143544.560614] ath: phy1: Could not kill baseband RX >> [143553.557001] ath: phy1: Unable to reset channel, reset status -5 >> [143553.563285] ath: phy1: Unable to set channel >> [143553.678305] ath: phy1: Could not kill baseband RX >> [143554.517471] ath: phy1: Unable to reset channel, reset status -5 >> [143554.523673] ath: phy1: Unable to set channel >> [143554.638692] ath: phy1: Could not kill baseband RX >> <7>[143563.554433] ath: phy1: qnum: 0, txq depth: 1 >> <7>[143566.105190] ath: phy1: TPC[14] 0x0000001e >> <7>[143567.424684] ath: phy1: TPC[07] 0x00000000 >> <7>[143576.124649] ath: phy1: TPC[04] 0x00000000 >> <7>[143576.907763] ath: phy1: AWAKE -> FULL-SLEEP >> <7>[143578.044838] ath: phy1: TPC[19] 0x0000001c >> <7>[143578.224765] ath: phy1: TPC[19] 0x00000014 >> <7>[143591.065833] ath: phy1: **** ofdmlevel 3=>3, rssi=0[lo=7 hi=40] >> <7>[143599.105129] ath: phy1: TPC[16] 0x00000014 >> [143604.126032] ath: phy1: Unable to reset channel, reset status -5 >> [143604.132272] ath: phy1: Unable to set channel >> [143604.247294] ath: phy1: Could not kill baseband RX >> [143605.077538] ath: phy1: Unable to reset channel, reset status -5 >> [143605.083743] ath: phy1: Unable to set channel >> [143605.198762] ath: phy1: Could not kill baseband RX >> <7>[143609.349690] ath: phy1: TPC[12] 0x00000016 >> <7>[143615.238106] ath: phy1: chain 0: mag mismatch=0 phase mismatch=0 >> <7>[143622.685104] ath: phy1: TPC[04] 0x0000001e >> <7>[143623.044849] ath: phy1: TPC[30] 0x00000000 >> <7>[143625.081839] ath: phy1: chain 0: mag mismatch=0 phase mismatch=0 >> <7>[143628.635917] ath: phy1: Enable MIB counters >> <7>[143632.534854] ath: phy1: TPC[29] 0x00000000 >> ... >> >> root at OpenWrt:/proc# lspci >> 00:00.0 Memory controller: Marvell Technology Group Ltd. 88F6281 [Kirkwood] ARM >> SoC (rev 03) >> 00:01.0 Network controller: Atheros Communications Inc. AR9300 Wireless LAN >> adaptor (rev 01) >> >> root at OpenWrt:/proc# cat iomem >> 00000000-07ffffff : System RAM >> 00008000-0030dfff : Kernel code >> 0032e000-0035a9cb : Kernel data >> e0000000-e7ffffff : PCIe 0 MEM >> e0000000-e001ffff : 0000:00:01.0 >> e0000000-e001ffff : ath9k >> e0020000-e002ffff : 0000:00:01.0 >> f1010300-f101031f : rtc-mv >> f1011000-f101101f : mv64xxx_i2c.0 >> f1011000-f101101f : mv64xxx_i2c adapter >> f1012000-f10120ff : serial8250.0 >> f1012000-f101201f : serial >> f1030000-f103ffff : regs >> f1030800-f10308cf : regs control and error >> f1030a00-f1030a24 : regs deco >> f1050000-f1050fff : orion-ehci.0 >> f1050000-f1050fff : ehci_hcd >> f1060800-f10608ff : xor 0 low >> f1060900-f10609ff : xor 1 low >> f1060a00-f1060aff : xor 0 high >> f1060b00-f1060bff : xor 1 high >> f1072000-f1075fff : ge00 base >> f1076000-f1079fff : ge01 base >> f1080000-f1084fff : sata base >> f1090000-f10903ff : mvsdio >> f1090000-f10903ff : mvsdio >> f4000000-f40003ff : orion_nand >> f5000000-f50007ff : sram >> >> root at OpenWrt:/proc# cat /proc/interrupts >> CPU0 >> 1: 14378078 orion_irq orion_tick >> 5: 2 orion_irq mv_xor.0 >> 6: 2 orion_irq mv_xor.1 >> 7: 2 orion_irq mv_xor.2 >> 8: 2 orion_irq mv_xor.3 >> 9: 5495 orion_irq ath9k >> 19: 70 orion_irq ehci_hcd:usb1 >> 22: 0 orion_irq mv_crypto >> 28: 52 orion_irq mvsdio >> 29: 34 orion_irq mv64xxx_i2c >> 33: 3370 orion_irq serial >> 46: 21 orion_irq mv643xx_eth >> 47: 0 orion_irq mv643xx_eth >> 49: 0 orion_irq mv_tdma >> 92: 1 - mvsdio cd >> Err: 0 >> >> >> Thanks a lot for the support! >> >> >> Best regards >> >> >> Daniel >> _______________________________________________ >> ath9k-devel mailing list >> ath9k-devel at lists.ath9k.org >> https://lists.ath9k.org/mailman/listinfo/ath9k-devel -- ALLNET GmbH ; Maistr. 2 ; D-82110 Germering ; Germany Tel. +49-89-89422222 - Fax +49-89-89422233 http://www.allnet.de email: Daniel Golle Schulungs-/Veranstaltungsprogramm: http://www.802lab.de Gesch?ftsf?hrer: Wolfgang Marcus Bauer Handelsregister M?nchen B 95922 ; UST-ID-Nr. DE 128214294 ; St.-Nr.117/115/00164 WEEE-Reg.-NR. DE 13101093 Bankverbindung: Sparkasse F?rstenfeldbruck KTO: 2774594 ; BLZ: 70053070 Swift-Code: BYLADEM1FFB ; IBAN: DE61700530700002774594