Date: Sat, 6 Aug 2016 01:33:07 -0700 From: Adrian Chadd <adrian.chadd@gmail.com> To: Andrew Stevenson <andrew@ugh.net.au> Cc: "freebsd-wireless@freebsd.org" <freebsd-wireless@freebsd.org>, Willem@offermans.rompen.nl Subject: Re: bf_next not NULL! Message-ID: <CAJ-VmomCOW%2BeHDHsp9BJt0anty1MNjUDqChE9Y_VQ%2BdFNazZ6A@mail.gmail.com> In-Reply-To: <8292C80F-9A18-450D-9A2A-D4C63D0EA99A@ugh.net.au> References: <2DEF8DBE-1444-435C-B48C-FEAB71CA60E5@ugh.net.au> <20160716105843.GA5832@vpn.offrom.nl> <CAJ-VmomwtRwk8aNcCn3pKzbLspPHN0UKPC4J%2BdS0ebOvHom73g@mail.gmail.com> <A0ED3F72-21EF-4B97-BF4B-AA0AEA336958@ugh.net.au> <762054A0-B628-4CD8-9F59-6B52CEB78481@ugh.net.au> <CAJ-VmokctaK2kgE59C64ugUzwmsbhj5p24EJ126pyosqmwe=2w@mail.gmail.com> <CAJ-Vmo=4tGEE6Owuxtsc9g%2BM5hF%2BpXfq3n3=Txi7LnF0UHo2cQ@mail.gmail.com> <F90C8D26-19D6-4CD1-AFB0-789170678D5D@ugh.net.au> <CAJ-VmonpN_f%2Bp5rE_qNdhDBKsfr2-4xELLLa5HMwY7B6QbGviQ@mail.gmail.com> <09DD4206-6D68-4B03-A3F9-01512C2F866B@ugh.net.au> <CAJ-VmonXg1XAB-FeajcbQ2NG9e=oV3X-R%2BO%2BY92quNTckZgGEw@mail.gmail.com> <DFCDAD37-8EA2-4D5B-AC46-221050E9FD44@ugh.net.au> <CAJ-Vmo=Zeh-83C2B756JTviOAs6jhF07xa%2BOQ4dAQmmFwRGuLA@mail.gmail.com> <2E7BBB3B-2398-413B-BA8E-18CFB16AE4E1@ugh.net.au> <CAJ-VmokbLnw75mWeQcB2WaPa8CeBXxckUzedW05jPAqAQ6YpcA@mail.gmail.com> <40DE7FBD-8206-4388-806D-4D4BE169ACEB@ugh.net.au> <BFCC3EEA-822D-4944-9709-DEF42ECDDBDD@ugh.net.au> <CAJ-Vmo=-BSOFwAd820q=4hfBwpRRDEvZa45iMEWi=xWeuwJE=Q@mail.gmail.com> <8292C80F-9A18-450D-9A2A-D4C63D0EA99A@ugh.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
hi, ok. Try running with 'sysctl dev.ath.0.hal.force_full_reset=1' enabled. It looks like the DMA engine reset isn't fully resetting things. Good, this i can likely reproduce. -adrian On 6 August 2016 at 00:48, Andrew Stevenson <andrew@ugh.net.au> wrote: > 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 = 0 > 32 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 87 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 138 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 > 0 ar5416DoCalibration: sample 0 of 1 finished > 0 0: Chn 0 pmi=0x127e79ea;pmq=0x13347b9d;iqcm=0xffca20b5; > 0 0: Chn 1 pmi=0x10bfb290;pmq=0x116a15ed;iqcm=0xff899551; > 0 0: Chn 2 pmi=0x00000000;pmq=0x00000000;iqcm=0x00000000; > 0 Start IQ Cal and Correction for Chain 0 > 0 Orignal: iq_corr_meas = 0xffca20b5 > 0 pwr_meas_i = 0x127e79ea > 0 pwr_meas_q = 0x13347b9d > 0 iqCorrNeg is 0x00000001 > 0 iCoff = 0x00000001 > 0 qCoff = 0xfffffffd > 0 New: iCoff = 0x00000001 > 0 : iCoff = 0x1 qCoff = 0xfffffffd > 0 IQ Cal and Correction done for Chain 0 > 0 Start IQ Cal and Correction for Chain 1 > 0 Orignal: iq_corr_meas = 0xff899551 > 0 pwr_meas_i = 0x10bfb290 > 0 pwr_meas_q = 0x116a15ed > 0 iqCorrNeg is 0x00000001 > 0 iCoff = 0x00000003 > 0 qCoff = 0xfffffffd > 0 New: iCoff = 0x00000003 > 0 : iCoff = 0x3 qCoff = 0xfffffffd > 0 IQ Cal and Correction done for Chain 1 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ath0: stuck beacon; resetting (bmiss count 4) > 0 ar5416StopDmaReceive: dma failed to stop in 10ms > 0 AR_CR=0x00000024 > 0 AR_DIAG_SW=0x42000020 > 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 > > > <this is about where I ran sysctl dev.ath.0.forcebstuck=1 and things recovered> > > > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=0 > 0 ar5416InitCal: enable ADC DC Calibration. > 0 ar5416InitCal: enable IQ Calibration. > 0 ar5416SetupMeasurement: start ADC DC calibration > 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy = 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=126, currPDADC=0 > 0 ar5416InitCal: enable ADC DC Calibration. > 0 ar5416InitCal: enable IQ Calibration. > 0 ar5416SetupMeasurement: start ADC DC calibration > 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy = 0 > 0 ar5416DoCalibration: ADC DC Calibration, state 2, calValid 0x0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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=0xfffffee7; eveni=0xfffffe6a; oddq=0x00000159; evenq=0xfffffffb; > 0 0: Chn 1 oddi=0xffffff34; eveni=0xfffffd75; oddq=0xfffffe75; evenq=0xfffffeef; > 0 0: Chn 2 oddi=0x00000000; eveni=0x00000000; oddq=0x00000000; evenq=0x00000000; > 0 Starting ADC DC Offset Cal for Chain 0 > 0 pwr_meas_odd_i = -281 > 0 pwr_meas_even_i = -406 > 0 pwr_meas_odd_q = 345 > 0 pwr_meas_even_q = -5 > 0 dc_offset_mismatch_i = 0x000001fe > 0 dc_offset_mismatch_q = 0x00000005 > 0 ADC DC Offset Cal done for Chain 0 > 0 Starting ADC DC Offset Cal for Chain 1 > 0 pwr_meas_odd_i = -204 > 0 pwr_meas_even_i = -651 > 0 pwr_meas_odd_q = -395 > 0 pwr_meas_even_q = -273 > 0 dc_offset_mismatch_i = 0x000001f9 > 0 dc_offset_mismatch_q = 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=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 110 ar5416DoCalibration: IQ Calibration, state 2, calValid 0x4 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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=0x1125f992;pmq=0x11617ba6;iqcm=0xffda1104; > 0 0: Chn 1 pmi=0x10372c81;pmq=0x10b4af8f;iqcm=0xffd907b7; > 0 0: Chn 2 pmi=0x00000000;pmq=0x00000000;iqcm=0x00000000; > 0 Start IQ Cal and Correction for Chain 0 > 0 Orignal: iq_corr_meas = 0xffda1104 > 0 pwr_meas_i = 0x1125f992 > 0 pwr_meas_q = 0x11617ba6 > 0 iqCorrNeg is 0x00000001 > 0 iCoff = 0x00000001 > 0 qCoff = 0xffffffff > 0 New: iCoff = 0x00000001 > 0 : iCoff = 0x1 qCoff = 0xffffffff > 0 IQ Cal and Correction done for Chain 0 > 0 Start IQ Cal and Correction for Chain 1 > 0 Orignal: iq_corr_meas = 0xffd907b7 > 0 pwr_meas_i = 0x10372c81 > 0 pwr_meas_q = 0x10b4af8f > 0 iqCorrNeg is 0x00000001 > 0 iCoff = 0x00000001 > 0 qCoff = 0xfffffffe > 0 New: iCoff = 0x00000001 > 0 : iCoff = 0x1 qCoff = 0xfffffffe > 0 IQ Cal and Correction done for Chain 1 > 0 ar5416GetMibCycleCounts: cycle counter wrap. ExtBusy = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > 0 ar9287olcTemperatureCompensation: initPDADC=126, currPDADC=124 > 0 ar9287olcTemperatureCompensation: delta=1 > 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 = 0 > > > Thanks, > > Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-VmomCOW%2BeHDHsp9BJt0anty1MNjUDqChE9Y_VQ%2BdFNazZ6A>