From owner-freebsd-wireless@freebsd.org Sat Aug 6 08:33:09 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 9A1C0BB08E2 for ; Sat, 6 Aug 2016 08:33:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x235.google.com (mail-it0-x235.google.com [IPv6:2607:f8b0:4001:c0b::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5C91D1916 for ; Sat, 6 Aug 2016 08:33:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x235.google.com with SMTP id f6so7597664ith.0 for ; Sat, 06 Aug 2016 01:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3/bkw9QkWBl8pFf1Y+Q6EpSeHeoD1t8COfR+jrVMrYg=; b=jfJ8lEh43UBigTOI0+7rqUc3Q/PM6QpgQrgDhnkJt0hfHgGkP55ut5ZZYi4ug4xXoE gEzkUh59lG8r9i3eSJtv38FOyijdZ97w7AiTqHhUMdVzxAbI7CXMpujcDwIMM+1TroD2 v7NuUrXJP89q8IRCTbKESf2ABfi640jylqKZid9Q+Oy0Zz8fEWKzI5UJXotn6BhoRB+8 8SjibYYt5G6MhTzNnr3EAiDUGfGXeVqZkLBrlQ/vAsEXq0Mgd41DvNh4jcF2+u3jMZgF ir9F1RUAKiVjT+hgjosgiwAtkEYbmEIGnrMdDQd7jbhFcB8lOSHKfI8LpRh1LegA6f5a B2AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3/bkw9QkWBl8pFf1Y+Q6EpSeHeoD1t8COfR+jrVMrYg=; b=PjpjBfdSK5eIK97tEohbgkrR4U+mzQ/qV6u38ghYmNPPZRAkOhIsjyrrwkTz+Rau0M CpS448corIDbeJDxibrUQ176ADRdlRH26ytl/lJTl6vYziGN8xFi5X3ly6/WiggACIYB mGNt9jtvc6m+h64hp9D4hA1A/sqTE+qvdi2I3qm4lFFD4bv1o2jHiiaFlEJ++QLCA62J z6/QOz4euwLuxj77pi6ccms/xafvtjNJGFP7xAa/LZActB2ZT8KeWhtn7fdsxaHZ16zq PyT67k9vtUG0ARvwQWs8sijP+qdA/Js9TSBKup8yiLOBRnGWvgQiF8Ar8ydd7V0XsUtl FTAA== X-Gm-Message-State: AEkoousYAK7XokgxqQRsHu8KiVwcNGzTMfCMeEkSLvIDDd01MRU9DKPJn3ZnkfpRdbU1+EkhLz3JGETDmxbzaA== X-Received: by 10.36.242.68 with SMTP id j65mr8301550ith.25.1470472388169; Sat, 06 Aug 2016 01:33:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Sat, 6 Aug 2016 01:33:07 -0700 (PDT) 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> <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> <8292C80F-9A18-450D-9A2A-D4C63D0EA99A@ugh.net.au> From: Adrian Chadd Date: Sat, 6 Aug 2016 01:33:07 -0700 Message-ID: Subject: Re: bf_next not NULL! To: Andrew Stevenson Cc: "freebsd-wireless@freebsd.org" , Willem@offermans.rompen.nl Content-Type: text/plain; charset=UTF-8 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 08:33:09 -0000 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 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 > > > > > > 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