bf_next not NULL!
Adrian Chadd
adrian.chadd at gmail.com
Sat Aug 6 08:33:09 UTC 2016
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 at 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
More information about the freebsd-wireless
mailing list