From owner-freebsd-wireless@freebsd.org Fri Dec 23 19:37:55 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 46EE5C8D42D for ; Fri, 23 Dec 2016 19:37:55 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from mail.opal.com (opalcom-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:113d::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "opal.com", Issuer "OpalCA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 13FAF1327 for ; Fri, 23 Dec 2016 19:37:54 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from shibato (shibato.opal.com [IPv6:2001:470:8cb8:3:721a:4ff:fe77:9dff]) (authenticated bits=0) by mail.opal.com (8.15.2/8.15.2) with ESMTPSA id uBNJbpu0035244 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Fri, 23 Dec 2016 14:37:52 -0500 (EST) (envelope-from fbsd@opal.com) Date: Fri, 23 Dec 2016 14:37:41 -0500 From: "J.R. Oldroyd" To: Adrian Chadd Cc: Andriy Voskoboinyk , "freebsd-wireless@freebsd.org" Subject: Re: Boot freeze 11.0p3 during network initialization Message-ID: <20161223143741.0cad961e@shibato> In-Reply-To: References: <20161208095719.30f3c60e@shibato> <20161208171926.7e182754@shibato> <20161220111808.5c277e21@shibato> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.29; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/pLx0VJKMh/8mGS3mJE6TXA/"; protocol="application/pgp-signature" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.opal.com [IPv6:2001:470:8cb8:2::1]); Fri, 23 Dec 2016 14:37:52 -0500 (EST) X-Spam-Status: No, score=-2.1 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, OPAL_URI_COUNT_10_14,RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on homobox.opal.com X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 23 Dec 2016 19:37:55 -0000 --Sig_/pLx0VJKMh/8mGS3mJE6TXA/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, 23 Dec 2016 10:17:34 -0800 Adrian Chadd wr= ote: > > On 20 December 2016 at 08:18, J.R. Oldroyd wrote: > > On Thu, 8 Dec 2016 17:19:26 -0500 "J.R. Oldroyd" wrote:= =20 > >> > >> On Thu, 08 Dec 2016 21:29:32 +0200 "Andriy Voskoboinyk" wrote: =20 > >> > > >> > Thu, 08 Dec 2016 16:57:19 +0200 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0= =B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE J.R. Oldroyd : > >> > > >> > Is there any additional output with > >> > wlandebug_wlan0=3D"scan+state+auth+assoc" > >> > in /etc/rc.conf ? > >> > =20 > >> > >> I have put that in and rebooted several times, all times OK. > >> I will report back again in due course when it next hangs. > >> > >> -jr > >> =20 > > > > The boot hang occurred again today. I noted the point of the hang and > > rebooted; the log from the good boot with annotation of the previous ha= ng > > point is here [1]. > > > > -jr > > > > [1] http://opal.com/jr/freebsd/20161220-fbsd11.3-boot_hang_wlan_debug.t= xt > > _______________________________________________ > > freebsd-wireless@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.= org" =20 >=20 >=20 > can you compile with witness and invariants? I'd like to see if its > locking related. >=20 > thanks >=20 >=20 > -adrian >=20 >=20 Hmm, maybe: Dec 23 14:30:34 shibato kernel: wlan0: ieee80211_swscan_add_scan: chan 11g= min dwell met (2146895553 > 2146895553) Dec 23 14:30:34 shibato kernel: wlan0: scan_mindwell: called Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan_task: loop start; scand= one=3D0 Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan_task: chan 11g -> 7g= [active, dwell min 20ms max 200ms] Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan: calling; maxdwell=3D200 Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan_task: waiting Dec 23 14:30:34 shibato kernel: re0: link state changed to UP Dec 23 14:30:34 shibato kernel: lagg0: link state changed to UP Dec 23 14:30:34 shibato kernel: lock order reversal: Dec 23 14:30:34 shibato kernel: 1st 0xfffff800095d2208 if_lagg rmlock (if_l= agg rmlock) @ /usr/src/sys/modules/if_lagg/../../net/if_lagg.c:1530 Dec 23 14:30:34 shibato kernel: 2nd 0xfffffe0000e10218 re0 (network driver)= @ dev/re/if_re.c:3433 Dec 23 14:30:34 shibato kernel: stack backtrace: Dec 23 14:30:34 shibato kernel: #0 0xffffffff80a98b60 at witness_debugger+0= x70 Dec 23 14:30:34 shibato kernel: #1 0xffffffff80a98a54 at witness_checkorder= +0xe54 Dec 23 14:30:34 shibato kernel: #2 0xffffffff80a1c794 at __mtx_lock_flags+0= xa4 Dec 23 14:30:34 shibato kernel: #3 0xffffffff8078c279 at re_ioctl+0x3a9 Dec 23 14:30:34 shibato kernel: #4 0xffffffff8222428e at lagg_port_ioctl+0x= de Dec 23 14:30:34 shibato kernel: #5 0xffffffff80b20bbf at if_addmulti+0x39f Dec 23 14:30:34 shibato kernel: #6 0xffffffff82224708 at lagg_ether_cmdmult= i+0x158 Dec 23 14:30:34 shibato kernel: #7 0xffffffff822219dd at lagg_ioctl+0xdd Dec 23 14:30:34 shibato kernel: #8 0xffffffff80b20bbf at if_addmulti+0x39f Dec 23 14:30:34 shibato kernel: #9 0xffffffff80c35a97 at in6_mc_join_locked= +0x1d7 Dec 23 14:30:34 shibato kernel: #10 0xffffffff80c35715 at in6_joingroup+0x75 Dec 23 14:30:34 shibato kernel: #11 0xffffffff80c2f9e9 at in6_update_ifa+0x= 1339 Dec 23 14:30:34 shibato kernel: #12 0xffffffff80c33eb3 at in6_ifattach+0x413 Dec 23 14:30:34 shibato kernel: #13 0xffffffff80b1fd84 at ifioctl+0xfe4 Dec 23 14:30:34 shibato kernel: #14 0xffffffff80a9d946 at kern_ioctl+0x246 Dec 23 14:30:34 shibato kernel: #15 0xffffffff80a9d691 at sys_ioctl+0x171 Dec 23 14:30:34 shibato kernel: #16 0xffffffff80e9d40b at amd64_syscall+0x2= db Dec 23 14:30:34 shibato kernel: #17 0xffffffff80e7d8ab at Xfast_syscall+0xfb Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan_task: loop start; scand= one=3D0 Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan_task: chan 7g -> 36a= [active, dwell min 20ms max 200ms] Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan: calling; maxdwell=3D200 Dec 23 14:30:34 shibato kernel: wlan0: scan_curchan_task: waiting This boot then continued normally, no hang. -jr --Sig_/pLx0VJKMh/8mGS3mJE6TXA/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlhdfQYACgkQls33urr0k4mn7wCeL3peLI6bmmb6teKaxvqRElb0 Z48AoJpWqpPCorZRbEXnhstDZvK9BjLD =SPfu -----END PGP SIGNATURE----- --Sig_/pLx0VJKMh/8mGS3mJE6TXA/--