From owner-freebsd-wireless@freebsd.org Sat Aug 6 07:48:52 2016 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E7FABB0CE8 for ; Sat, 6 Aug 2016 07:48:52 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from kaija.ugh.net.au (kaija.ugh.net.au [IPv6:2a00:1a48:7803:107:65bc:4bde:ff08:1f7f]) by mx1.freebsd.org (Postfix) with ESMTP id 06BC214A6 for ; Sat, 6 Aug 2016 07:48:51 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from [10.0.0.10] (77-64-196-130.dynamic.primacom.net [77.64.196.130]) by kaija.ugh.net.au (Postfix) with ESMTPSA id 9461CA04F; Sat, 6 Aug 2016 07:48:49 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: bf_next not NULL! From: Andrew Stevenson In-Reply-To: Date: Sat, 6 Aug 2016 09:48:48 +0200 Cc: "freebsd-wireless@freebsd.org" , Willem@offermans.rompen.nl Content-Transfer-Encoding: quoted-printable Message-Id: <8292C80F-9A18-450D-9A2A-D4C63D0EA99A@ugh.net.au> References: <2DEF8DBE-1444-435C-B48C-FEAB71CA60E5@ugh.net.au> <20160716105843.GA5832@vpn.offrom.nl> <762054A0-B628-4CD8-9F59-6B52CEB78481@ugh.net.au> <09DD4206-6D68-4B03-A3F9-01512C2F866B@ugh.net.au> <2E7BBB3B-2398-413B-BA8E-18CFB16AE4E1@ugh.net.au> <40DE7FBD-8206-4388-806D-4D4BE169ACEB@ugh.net.au> To: Adrian Chadd X-Mailer: Apple Mail (2.1878.6) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Aug 2016 07:48:52 -0000 OK a bit less incompetently this time. This is dmesg with duplicate = lines suppressed. The first field is the number of times the line was = duplicated. 164 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 32 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -120 0 NF calibrated [ctl] [chain 1] is -120 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -120 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -120 adjust 24 204 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 87 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 150 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 138 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar5416DoCalibration: sample 0 of 1 finished 0 0: Chn 0 pmi=3D0x127e79ea;pmq=3D0x13347b9d;iqcm=3D0xffca20b5; 0 0: Chn 1 pmi=3D0x10bfb290;pmq=3D0x116a15ed;iqcm=3D0xff899551; 0 0: Chn 2 pmi=3D0x00000000;pmq=3D0x00000000;iqcm=3D0x00000000; 0 Start IQ Cal and Correction for Chain 0 0 Orignal: iq_corr_meas =3D 0xffca20b5 0 pwr_meas_i =3D 0x127e79ea 0 pwr_meas_q =3D 0x13347b9d 0 iqCorrNeg is 0x00000001 0 iCoff =3D 0x00000001 0 qCoff =3D 0xfffffffd 0 New: iCoff =3D 0x00000001 0 : iCoff =3D 0x1 qCoff =3D 0xfffffffd 0 IQ Cal and Correction done for Chain 0 0 Start IQ Cal and Correction for Chain 1 0 Orignal: iq_corr_meas =3D 0xff899551 0 pwr_meas_i =3D 0x10bfb290 0 pwr_meas_q =3D 0x116a15ed 0 iqCorrNeg is 0x00000001 0 iCoff =3D 0x00000003 0 qCoff =3D 0xfffffffd 0 New: iCoff =3D 0x00000003 0 : iCoff =3D 0x3 qCoff =3D 0xfffffffd 0 IQ Cal and Correction done for Chain 1 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 1 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -120 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -122 0 NF calibrated [ext] [chain 0] is -122 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -120 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -120 adjust 24 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ath0: stuck beacon; resetting (bmiss count 4) 0 ar5416StopDmaReceive: dma failed to stop in 10ms 0 AR_CR=3D0x00000024 0 AR_DIAG_SW=3D0x42000020 0 ar5416StopTxDma: queue 9 DMA did not stop in 400 msec 0 ar5416StopTxDma: QSTS 0x500 Q_TXE 0x202 Q_TXD 0x200 Q_CBR 0x0 0 ar5416StopTxDma: Q_MISC 0x8a2 Q_RDYTIMECFG 0x0 Q_RDYTIMESHDN = 0x100 0 ar5416StopTxDma: Failed to stop Tx DMA in 4 msec after killing = last frame 0 ar5416StopTxDma: queue 1 DMA did not stop in 400 msec 0 ar5416StopTxDma: QSTS 0x1 Q_TXE 0x202 Q_TXD 0x2 Q_CBR 0x0 0 ar5416StopTxDma: Q_MISC 0x800 Q_RDYTIMECFG 0x0 Q_RDYTIMESHDN = 0x100 0 ar5416StopTxDma: Failed to stop Tx DMA in 4 msec after killing = last frame 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D0 0 ar5416InitCal: enable ADC DC Calibration. 0 ar5416InitCal: enable IQ Calibration. 0 ar5416SetupMeasurement: start ADC DC calibration 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ath0: stuck beacon; resetting (bmiss count 4) 0 ar5416StopTxDma: queue 9 DMA did not stop in 400 msec 0 ar5416StopTxDma: QSTS 0x400 Q_TXE 0x202 Q_TXD 0x200 Q_CBR 0x0 0 ar5416StopTxDma: Q_MISC 0x8a2 Q_RDYTIMECFG 0x0 Q_RDYTIMESHDN 0x0 0 ar5416StopTxDma: Failed to stop Tx DMA in 4 msec after killing = last frame 0 ar5416StopTxDma: queue 1 DMA did not stop in 400 msec 0 ar5416StopTxDma: QSTS 0x1 Q_TXE 0x202 Q_TXD 0x2 Q_CBR 0x0 0 ar5416StopTxDma: Q_MISC 0x800 Q_RDYTIMECFG 0x0 Q_RDYTIMESHDN 0x0 0 ar5416StopTxDma: Failed to stop Tx DMA in 4 msec after killing = last frame 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D0 0 ar5416InitCal: enable ADC DC Calibration. 0 ar5416InitCal: enable IQ Calibration. 0 ar5416SetupMeasurement: start ADC DC calibration 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar5416DoCalibration: ADC DC Calibration, state 2, calValid 0x0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 31 ar5416DoCalibration: ADC DC Calibration, state 2, calValid 0x0 0 ar5416DoCalibration: sample 0 of 1 finished 0 0: Chn 0 oddi=3D0xfffffee7; eveni=3D0xfffffe6a; oddq=3D0x00000159;= evenq=3D0xfffffffb; 0 0: Chn 1 oddi=3D0xffffff34; eveni=3D0xfffffd75; oddq=3D0xfffffe75;= evenq=3D0xfffffeef; 0 0: Chn 2 oddi=3D0x00000000; eveni=3D0x00000000; oddq=3D0x00000000;= evenq=3D0x00000000; 0 Starting ADC DC Offset Cal for Chain 0 0 pwr_meas_odd_i =3D -281 0 pwr_meas_even_i =3D -406 0 pwr_meas_odd_q =3D 345 0 pwr_meas_even_q =3D -5 0 dc_offset_mismatch_i =3D 0x000001fe 0 dc_offset_mismatch_q =3D 0x00000005 0 ADC DC Offset Cal done for Chain 0 0 Starting ADC DC Offset Cal for Chain 1 0 pwr_meas_odd_i =3D -204 0 pwr_meas_even_i =3D -651 0 pwr_meas_odd_q =3D -395 0 pwr_meas_even_q =3D -273 0 dc_offset_mismatch_i =3D 0x000001f9 0 dc_offset_mismatch_q =3D 0x000001fe 0 ADC DC Offset Cal done for Chain 1 0 ar5416SetupMeasurement: start IQ Mismatch calibration 260 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -122 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 181 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 110 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -122 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -122][4: -121] 0 2462 raw nf -121 adjust 25 118 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 0 ar5416DoCalibration: sample 0 of 1 finished 0 0: Chn 0 pmi=3D0x1125f992;pmq=3D0x11617ba6;iqcm=3D0xffda1104; 0 0: Chn 1 pmi=3D0x10372c81;pmq=3D0x10b4af8f;iqcm=3D0xffd907b7; 0 0: Chn 2 pmi=3D0x00000000;pmq=3D0x00000000;iqcm=3D0x00000000; 0 Start IQ Cal and Correction for Chain 0 0 Orignal: iq_corr_meas =3D 0xffda1104 0 pwr_meas_i =3D 0x1125f992 0 pwr_meas_q =3D 0x11617ba6 0 iqCorrNeg is 0x00000001 0 iCoff =3D 0x00000001 0 qCoff =3D 0xffffffff 0 New: iCoff =3D 0x00000001 0 : iCoff =3D 0x1 qCoff =3D 0xffffffff 0 IQ Cal and Correction done for Chain 0 0 Start IQ Cal and Correction for Chain 1 0 Orignal: iq_corr_meas =3D 0xffd907b7 0 pwr_meas_i =3D 0x10372c81 0 pwr_meas_q =3D 0x10b4af8f 0 iqCorrNeg is 0x00000001 0 iCoff =3D 0x00000001 0 qCoff =3D 0xfffffffe 0 New: iCoff =3D 0x00000001 0 : iCoff =3D 0x1 qCoff =3D 0xfffffffe 0 IQ Cal and Correction done for Chain 1 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 1 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -122 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 0 ar9287olcTemperatureCompensation: initPDADC=3D126, currPDADC=3D124= 0 ar9287olcTemperatureCompensation: delta=3D1 0 NF calibrated [ctl] [chain 0] is -121 0 NF calibrated [ctl] [chain 1] is -121 0 NF calibrated [ext] [chain 0] is -121 0 NF calibrated [ext] [chain 1] is -121 0 CCA: [0: -121][1: -121][3: -121][4: -121] 0 2462 raw nf -121 adjust 25 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy =3D 0 Thanks, Andrew=