From nobody@FreeBSD.org  Fri Nov 18 03:56:10 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4B28D1065688
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 03:56:10 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 21BF78FC1D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 03:56:10 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pAI3u94Y012050
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 18 Nov 2011 03:56:09 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pAI3u9nG012049;
	Fri, 18 Nov 2011 03:56:09 GMT
	(envelope-from nobody)
Message-Id: <201111180356.pAI3u9nG012049@red.freebsd.org>
Date: Fri, 18 Nov 2011 03:56:09 GMT
From: Adrian Chadd <adrian@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [ath] AR9227 ADC DC calibration failure
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         162648
>Category:       kern
>Synopsis:       [ath] AR9227 ADC DC calibration failure
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 18 04:00:22 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri Nov 18 06:40:56 UTC 2011
>Originator:     Adrian Chadd
>Release:        10.0-CURRENT
>Organization:
>Environment:
Mips, etc.

ath1: <Atheros 9227> irq 1 at device 18.0 on pci0
ath1: [HT] enabling HT modes
ath1: [HT] enabling short-GI in 20MHz mode
ath1: [HT] 2 RX streams; 2 TX streams
ath1: AR9227 mac 384.2 RF5133 phy 15.15

>Description:

This is a failed ADC DC calibration:

wlan1: [00:03:7f:12:e2:3a] HT bss occupancy change: 1 sta, 1 ht, 0 ht40, HT protmode now 0x2
ar5416GetMibCycleCountsPct: cycle counter wrap. ExtBusy = 0
ar5416ResetCalValid: Resetting Cal 4 state for channel 2437/0x20480
ar5416DoCalibration: ADC DC Calibration, state 1, calValid 0x8
ar5416SetupMeasurement: start ADC DC calibration
ar9287olcTemperatureCompensation: initPDADC=125, currPDADC=120
ar9287olcTemperatureCompensation: delta=3
NF calibrated [ctl] [chain 0] is -123
NF calibrated [ctl] [chain 1] is -121
NF calibrated [ext] [chain 0] is -123
NF calibrated [ext] [chain 1] is -122
CCA: [0: -123][1: -121][3: -123][4: -121]
2437 raw nf -123 adjust 27
ar5416DoCalibration: ADC DC Calibration, state 2, calValid 0x8
ar5416DoCalibration: sample 0 of 1 finished
0: Chn 0 oddi=0x11a421e8; eveni=0x11a3b3d3; oddq=0x1198f4e5; evenq=0x1198f059;
0: Chn 1 oddi=0x13ac3b5b; eveni=0x13abe3a7; oddq=0x129faaac; evenq=0x129fa663;
0: Chn 2 oddi=0x00000000; eveni=0x00000000; oddq=0x00000000; evenq=0x00000000;
Starting ADC DC Offset Cal for Chain 0
 pwr_meas_odd_i = 295969256 pwr_meas_even_i = 295941075
 pwr_meas_odd_q = 295236837
 pwr_meas_even_q = 295235673
 dc_offset_mismatch_i = 0x00000047
 dc_offset_mismatch_q = 0x00000012
ADC DC Offset Cal done for Chain 0Starting ADC DC Offset Cal for Chain 1 pwr_meas_odd_i = 330054491 pwr_meas_even_i = 330032039
 pwr_meas_odd_q = 312453804
 pwr_meas_even_q = 312452707 dc_offset_mismatch_i = 0x000000a1 dc_offset_mismatch_q = 0x00000011
ADC DC Offset Cal done for Chain 1
ath1: stuck beacon; resetting (bmiss count 4)

. then:

ar5416SetupMeasurement: start ADC DC calibrationar5416GetMibCycleCountsPct: cycle counter wrap. ExtBusy = 0
ar5416DoCalibration: ADC DC Calibration, state 2, calValid 0x0
ar5416DoCalibration: sample 0 of 1 finished
0: Chn 0 oddi=0x00000057; eveni=0x00000086; oddq=0x0000031d; evenq=0x000001ba;
0: Chn 1 oddi=0x0000025f; eveni=0x000002d5; oddq=0xfffffe85; evenq=0xfffffdcf;
0: Chn 2 oddi=0x00000000; eveni=0x00000000; oddq=0x00000000; evenq=0x00000000;
Starting ADC DC Offset Cal for Chain 0
 pwr_meas_odd_i = 87
 pwr_meas_even_i = 134
 pwr_meas_odd_q = 797
 pwr_meas_even_q = 442
 dc_offset_mismatch_i = 0x00000000
 dc_offset_mismatch_q = 0x00000005
ADC DC Offset Cal done for Chain 0
Starting ADC DC Offset Cal for Chain 1
 pwr_meas_odd_i = 607
 pwr_meas_even_i = 725
 pwr_meas_odd_q = -379
 pwr_meas_even_q = -561
 dc_offset_mismatch_i = 0x00000001
 dc_offset_mismatch_q = 0x00000002
ADC DC Offset Cal done for Chain 1


>How-To-Repeat:
. just run it as a hostap?
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Nov 18 06:40:44 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162648 
>Unformatted:
