if_ath advice required

From: Darron Broad <darron_at_kewl.org>
Date: Sat, 25 Oct 2003 13:54:15 +0100
Hi there,

I have a D-Link g650 cardbus atheros wireless device and I have been getting serious problems with it.

It attaches fine, then I configure it, it connects to the USR8054 AP, or in fact any AP I have tested
it against, then soon after it stops working. Sometimes after transferring data, more often than not
before any major traffic.

When it fails, the card sits there flashing the Act light.

My kernel is mostly modular in nature, and I load if_ath in loader.conf, eg:

FreeBSD satan.noc.kewl.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Oct 22 17:45:59 BST 2003
root_at_satan.noc.kewl.org:/usr/src/sys/i386/compile/MODULAR-DEBUG  i386

/boot/loader.conf:

wlan_load="YES"
if_ath_load="YES"
cardbus_load="YES"
pccard_load="YES"
cbb_load="YES"

The cardbus device attaches as follows:

cbb0: <ToPIC95B PCI-CardBus Bridge> irq 11 at device 13.0 on pci2
cbb0: PCI Memory allocated: f7d00000
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: [MPSAFE]
cbb1: <ToPIC95B PCI-CardBus Bridge> irq 11 at device 13.1 on pci2
cbb1: PCI Memory allocated: f7d01000
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
cbb1: [MPSAFE]

The atheros device as:

Oct 25 13:31:24 satan kernel: CBB EVENT 0x6
Oct 25 13:31:24 satan kernel: Waking up thread
Oct 25 13:31:24 satan kernel: CBB EVENT 0x6
Oct 25 13:31:24 satan kernel: Waking up thread
Oct 25 13:31:25 satan kernel: CBB EVENT 0x6
Oct 25 13:31:25 satan kernel: Waking up thread
Oct 25 13:31:26 satan kernel: Status is 0x30000820
Oct 25 13:31:26 satan kernel: cbb1: card inserted: event=0x00000000, state=30000820
Oct 25 13:31:26 satan kernel: cbb1: cbb_power: 3V
Oct 25 13:31:26 satan kernel: TUPLE: LINKTARGET [3]: 43 49 53
Oct 25 13:31:26 satan kernel: Manufacturer ID: 71021200
Oct 25 13:31:26 satan kernel: TUPLE: Unknown(0x04) [6]: 03 01 00 00 00 00
Oct 25 13:31:26 satan kernel: TUPLE: Unknown(0x05) [14]: 41 b1 39 b5 1e 2d 4e 56 30 ff ff 02 e9 00
Oct 25 13:31:26 satan kernel: cardbus1: Opening BAR: type=MEM, bar=10, len=10000
Oct 25 13:31:26 satan kernel: CIS reading done
Oct 25 13:31:26 satan kernel: cardbus1: Non-prefetchable memory at f7d10000-f7d1ffff
Oct 25 13:31:26 satan kernel: ath0: <Atheros 5212> mem 0xf7d10000-0xf7d1ffff irq 11 at device 0.0 on cardbus1
Oct 25 13:31:27 satan kernel: ath0: [MPSAFE]
Oct 25 13:31:27 satan kernel: ath_attach: devid 0x13
Oct 25 13:31:27 satan kernel: ath_desc_alloc: DMA map: 0xd30aa000 (22924) -> 0x39e000 (22924)
Oct 25 13:31:27 satan kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Oct 25 13:31:27 satan kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Oct 25 13:31:27 satan kernel: ath0: 802.11 address: 00:40:05:5f:23:e9
Oct 25 13:31:27 satan kernel: CBB EVENT 0x1
Oct 25 13:31:27 satan kernel: ath_intr: if_flags 0x8802

When the device starts to malfunction, the following info is logged:

Oct 25 13:36:44 satan kernel: ath0: ath_intr: status 0x40004009
Oct 25 13:36:44 satan kernel: 
Oct 25 13:36:44 satan kernel: ar5212 register state:
Oct 25 13:36:44 satan kernel: 
Oct 25 13:36:44 satan kernel: CR       f7d10008  RXDP     f7d1000c  CFG      f7d10014  IER      f7d10024
Oct 25 13:36:44 satan kernel: TXCFG    f7d10030  RXCFG    f7d10034  MIBC     f7d10040  TOPS     f7d10044
Oct 25 13:36:44 satan kernel: RXNPTO   f7d10048  TXNPTO   f7d1004c  RPGTO    f7d10050  RPCNT    f7d10054
Oct 25 13:36:44 satan kernel: MACMISC  f7d10058  D_SIFS   f7d11030  D_SLOT   f7d11070  D_EIFS   f7d110b0
Oct 25 13:36:44 satan kernel: D_MISC   f7d110f0  D_FPCTL  f7d11230  D_TXPSE  f7d11270  RC       f7d14000
Oct 25 13:36:44 satan kernel: SCR      f7d14004  INTPEND  f7d14008  SFR      f7d1400c  PCICFG   f7d14010
Oct 25 13:36:44 satan kernel: GPIOCR   f7d14014  SREV     f7d14020  STA_ID0  f7d18000  STA_ID1  f7d18004
Oct 25 13:36:44 satan kernel: BSS_ID0  f7d18008  BSS_ID1  f7d1800c  SLOT_TIM f7d18010  TIME_OUT f7d18014
Oct 25 13:36:44 satan kernel: RSSI_THR f7d18018  USEC     f7d1801c  BEACON   f7d18020  CFP_PER  f7d18024
Oct 25 13:36:44 satan kernel: TIMER0   f7d18028  TIMER1   f7d1802c  TIMER2   f7d18030  TIMER3   f7d18034
Oct 25 13:36:44 satan kernel: CFP_DUR  f7d18038  RX_FILTR f7d1803c  MCAST_0  f7d18040  MCAST_1  f7d18044
Oct 25 13:36:44 satan kernel: DIAG_SW  f7d18048  TSF_L32  f7d1804c  TSF_U32  f7d18050  TST_ADAC f7d18054
Oct 25 13:36:44 satan kernel: DEF_ANT  f7d18058  LAST_TST f7d18080  NAV      f7d18084  RTS_OK   f7d18088
Oct 25 13:36:44 satan kernel: RTS_FAIL f7d1808c  ACK_FAIL f7d18090  FCS_FAIL f7d18094  BEAC_CNT f7d18098
Oct 25 13:36:44 satan kernel: SLEEP1   f7d180d4  SLEEP2   f7d180d8  SLEEP3   f7d180dc  BSSMSKL  f7d180e0
Oct 25 13:36:44 satan kernel: BSSMSKU  f7d180e4  TPC      f7d180e8  PHY_ERR  f7d1810c  TFCNT    f7d180ec
Oct 25 13:36:44 satan kernel: RFCNT    f7d180f0  RCCNT    f7d180f4  CCCNT    f7d180f8
Oct 25 13:36:44 satan kernel: IMR: f7d100a0 S0 f7d100a4 S1 f7d100a8 S2 f7d100ac S3 f7d100b0 S4 f7d100b4
Oct 25 13:36:44 satan kernel: ISR: f7d100c0 S0 f7d100c4 S1 f7d100c8 S2 f7d100cc S3 f7d100d0 S4 f7d100d4
Oct 25 13:36:44 satan kernel: 
Oct 25 13:36:44 satan kernel: Q_TXE    f7d10840  Q_TXD    f7d10880  Q_RDYTIMSHD f7d10a40
Oct 25 13:36:44 satan kernel: Q_ONESHOTARM_SC f7d10940  Q_ONESHOTARM_CC f7d10980
Oct 25 13:36:44 satan kernel: Q[0] TXDP f7d10800 CBR f7d108c0 RDYT f7d10900 MISC f7d109c0 STS f7d10a00
Oct 25 13:36:44 satan kernel: Q[1] TXDP f7d10804 CBR f7d108c4 RDYT f7d10904 MISC f7d109c4 STS f7d10a04
Oct 25 13:36:44 satan kernel: Q[2] TXDP f7d10808 CBR f7d108c8 RDYT f7d10908 MISC f7d109c8 STS f7d10a08
Oct 25 13:36:45 satan kernel: Q[3] TXDP f7d1080c CBR f7d108cc RDYT f7d1090c MISC f7d109cc STS f7d10a0c
Oct 25 13:36:45 satan kernel: Q[4] TXDP f7d10810 CBR f7d108d0 RDYT f7d10910 MISC f7d109d0 STS f7d10a10
Oct 25 13:36:45 satan kernel: Q[5] TXDP f7d10814 CBR f7d108d4 RDYT f7d10914 MISC f7d109d4 STS f7d10a14
Oct 25 13:36:45 satan kernel: Q[6] TXDP f7d10818 CBR f7d108d8 RDYT f7d10918 MISC f7d109d8 STS f7d10a18
Oct 25 13:36:45 satan kernel: Q[7] TXDP f7d1081c CBR f7d108dc RDYT f7d1091c MISC f7d109dc STS f7d10a1c
Oct 25 13:36:45 satan kernel: Q[8] TXDP f7d10820 CBR f7d108e0 RDYT f7d10920 MISC f7d109e0 STS f7d10a20
Oct 25 13:36:45 satan kernel: Q[9] TXDP f7d10824 CBR f7d108e4 RDYT f7d10924 MISC f7d109e4 STS f7d10a24
Oct 25 13:36:45 satan kernel: 
Oct 25 13:36:45 satan kernel: D[0] MASK f7d11000 IFS f7d11040 RTRY f7d11080 CHNT f7d110c0 MISC f7d11100 SEQ f7d11140
Oct 25 13:36:45 satan kernel: D[1] MASK f7d11004 IFS f7d11044 RTRY f7d11084 CHNT f7d110c4 MISC f7d11104 SEQ f7d11144
Oct 25 13:36:45 satan kernel: D[2] MASK f7d11008 IFS f7d11048 RTRY f7d11088 CHNT f7d110c8 MISC f7d11108 SEQ f7d11148
Oct 25 13:36:45 satan kernel: D[3] MASK f7d1100c IFS f7d1104c RTRY f7d1108c CHNT f7d110cc MISC f7d1110c SEQ f7d1114c
Oct 25 13:36:45 satan kernel: D[4] MASK f7d11010 IFS f7d11050 RTRY f7d11090 CHNT f7d110d0 MISC f7d11110 SEQ f7d11150
Oct 25 13:36:45 satan kernel: D[5] MASK f7d11014 IFS f7d11054 RTRY f7d11094 CHNT f7d110d4 MISC f7d11114 SEQ f7d11154
Oct 25 13:36:45 satan kernel: D[6] MASK f7d11018 IFS f7d11058 RTRY f7d11098 CHNT f7d110d8 MISC f7d11118 SEQ f7d11158
Oct 25 13:36:45 satan kernel: D[7] MASK f7d1101c IFS f7d1105c RTRY f7d1109c CHNT f7d110dc MISC f7d1111c SEQ f7d1115c
Oct 25 13:36:45 satan kernel: D[8] MASK f7d11020 IFS f7d11060 RTRY f7d110a0 CHNT f7d110e0 MISC f7d11120 SEQ f7d11160
Oct 25 13:36:45 satan kernel: D[9] MASK f7d11024 IFS f7d11064 RTRY f7d110a4 CHNT f7d110e4 MISC f7d11124 SEQ f7d11164
Oct 25 13:36:45 satan kernel: D[0] XMIT MASK f7d11038 f7d11078 f7d110b8 f7d110f8
Oct 25 13:36:45 satan kernel: D[1] XMIT MASK f7d11138 f7d11178 f7d111b8 f7d111f8
Oct 25 13:36:45 satan kernel: D[2] XMIT MASK f7d11238 f7d11278 f7d112b8 f7d112f8
Oct 25 13:36:45 satan kernel: D[3] XMIT MASK f7d11338 f7d11378 f7d113b8 f7d113f8
Oct 25 13:36:45 satan kernel: D[4] XMIT MASK f7d11438 f7d11478 f7d114b8 f7d114f8
Oct 25 13:36:45 satan kernel: D[5] XMIT MASK f7d11538 f7d11578 f7d115b8 f7d115f8
Oct 25 13:36:45 satan kernel: D[6] XMIT MASK f7d11638 f7d11678 f7d116b8 f7d116f8
Oct 25 13:36:45 satan kernel: D[7] XMIT MASK f7d11738 f7d11778 f7d117b8 f7d117f8
Oct 25 13:36:45 satan kernel: D[8] XMIT MASK f7d11838 f7d11878 f7d118b8 f7d118f8
Oct 25 13:36:45 satan kernel: D[9] XMIT MASK f7d11938 f7d11978 f7d119b8 f7d119f8
Oct 25 13:36:45 satan kernel: ath0: hardware error; resetting
Oct 25 13:36:45 satan kernel: ath_draintxq: tx queue 0xf7d10800, link 0
Oct 25 13:36:45 satan kernel: ath_draintxq: beacon queue 0xf7d10824
Oct 25 13:36:45 satan kernel: ath_stoprecv: rx queue 0xf7d1000c, link 0xd30aa630
Oct 25 13:36:45 satan kernel: ath_hal_wait: timeout on reg 0x4000: 0xf7d14000 & 0x00000003 != 0x00000003
Oct 25 13:36:45 satan kernel: ath0: ath_reset: unable to reset hardware; hal status 3
Oct 25 13:36:45 satan kernel: ath_mode_init: RX filter 0x117, MC filter 00000201:00c01040
Oct 25 13:36:45 satan kernel: ath_beacon_config: nexttbtt=40805600
Oct 25 13:36:45 satan kernel: ath_beacon_config: intval 100 nexttbtt 40805700 dtim 100 nextdtim 40805700 bmiss 7 sleep 100
Oct 25 13:37:00 satan kernel: ath_calibrate: channel 2412/e0
Oct 25 13:37:00 satan kernel: ath_calibrate: calibration of channel 2412 failed

My question for anyone who may help is whether you have experienced a similar problem, and
if so, have you managed to overcome it?

Also, if this appears to be a possible bug in the driver, please explain how I could help
in discovering the problem and aide in fixing it.

TIA

darron


--

 // /
{:)==={ Darron Broad <darron_at_kewl.org>
 \\ \
Received on Sat Oct 25 2003 - 03:54:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:26 UTC