From owner-freebsd-hackers@FreeBSD.ORG Sat May 17 18:56:19 2014 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7AC86CC9; Sat, 17 May 2014 18:56:19 +0000 (UTC) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 656192D8F; Sat, 17 May 2014 18:56:18 +0000 (UTC) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.14.8/8.14.8) with ESMTP id s4HIuGpq071222; Sat, 17 May 2014 11:56:16 -0700 (PDT) (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.14.8/8.14.8/Submit) id s4HIuGkY071221; Sat, 17 May 2014 11:56:16 -0700 (PDT) (envelope-from david) Date: Sat, 17 May 2014 11:56:16 -0700 From: David Wolfskill To: Edward Tomasz Napiera?a Subject: Re: Workaround for "fatal firmware error" iwn(4) problem. Message-ID: <20140517185616.GZ55053@albert.catwhisker.org> Mail-Followup-To: David Wolfskill , Edward Tomasz Napiera?a , "freebsd-hackers@freebsd.org" MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="x+bne1ZFwxW5PfJO" Content-Disposition: inline In-Reply-To: <201405161821.s4GILXit029854@mech-cluster241.men.bris.ac.uk> <4A191D80-9A8E-42DC-B2BD-F0668A60E9CA@FreeBSD.org> <8FB7D6BF-005A-41A1-9DCE-C8B09EA338EE@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 May 2014 18:56:19 -0000 --x+bne1ZFwxW5PfJO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 16, 2014 at 08:06:02PM +0200, Edward Tomasz Napiera?a wrote: > I've started using FreeBSD laptop and iwn(4) failing at random moments > like this... >=20 > May 16 17:11:54 brick kernel: iwn0: iwn_intr: fatal firmware error > May 16 17:11:54 brick kernel: firmware error log: > May 16 17:11:54 brick kernel: error type =3D "NMI_INTERRUPT_WDG" (0x= 00000004) > ... >=20 > ... has been driving me crazy, so I wrote a workaround. The patch > can be found here: >=20 > http://people.freebsd.org/~trasz/iwn.diff >=20 > I think it's too ugly to commit it as is (I'd never release crap like thi= s, > but I know nothing about WiFi and iwn(4) in particular, so I feel justifi= ed), > but feedback is still welcome. On Fri, May 16, 2014 at 08:16:01PM +0200, Edward Tomasz Napiera?a wrote: > ... > > For which branch? >=20 > Ah, forgot about that. 11-HEAD. So I've been running head/i386 with the above-cited patch for about 1.75 hrs. now -- by which time I would normally expect to have seen my network connection have dropped -- and it's been quite steady, even through listening to a streaming audio program for about an hour. I'm hoping that this at least helps indicate what might be going wrong (without the patch). For reference (in somewhat more detail): I had built: FreeBSD 11.0-CURRENT #1250 r266209M/266213:1100021: Fri May 16 06:24:39 PD= T 2014 root@g1-252.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY i3= 86 yesterday (on my "head" slice on this laptop); this morning, I updated the src working copy to r266297 without incident (save for the occasional, and expected, dropping of the network connection on occasion). I then rebooted, and verified that FreeBSD 11.0-CURRENT #1251 r266297M/266298:1100021: Sat May 17 09:17:53 PD= T 2014 root@g1-252.catwhisker.org:/common/S4/obj/usr/src/sys/CANARY i3= 86 seemed to function pretty much the same (which it did). I then "cloned" the file systems on my head slice to another slice, used "svn patch" to apply the patch: Script started on Sat May 17 09:53:48 2014 command: svn patch tmp/iwn.diff /usr/src U /usr/src/sys/dev/iwn/if_iwn.c Script done on Sat May 17 09:53:48 2014 then ran "cd /usr/src && make -DNOCLEAN -j4 kernel"; the result was: FreeBSD 11.0-CURRENT #1252 r266297M/266298:1100021: Sat May 17 09:56:18 PD= T 2014 root@g1-252.catwhisker.org:/common/S2/obj/usr/src/sys/CANARY i3= 86 (which is what I've been running for almost 2 hrs. now). Peace, david --=20 David H. Wolfskill david@catwhisker.org Taliban: Evil cowards with guns afraid of truth from a 14-year old girl. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --x+bne1ZFwxW5PfJO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) iQJ8BAEBCgBmBQJTd7DPXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4RThEMDY4QTIxMjc1MDZFRDIzODYzRTc4 QTY3RjlDOERFRjQxOTNCAAoJEIpn+cje9Bk74GUP/RjccKnn18psvXELocJZ+8WW 5YPSCFpBn2WsYhzsvO/dVQEsInVnpog8gZvwxiOdr2N0PEktc1QcvsgiVzvr15pi lSoTOGimhJKhGEIQeJpYGvaVNPU+Elsx2D3fGYfe2apyrsJ9yEe3UzMqL6bIfcgF w+x2Vubocm/QS2dc4uRFNG1VhdPMHe6oxZQwkjoCOCh1RTlyiTgH9OGhwKj6rF0E WXUWxDQfn8bM24OcN7ZgHSwEw0DjPLM30VrB2BrfvGtw3v1UDVICMZufbKV6C7Ib 5W7nozxOIORYM5ueo5Pw1gTa9xIflXojRRHNgRTQ3Yjh46q+wCGZVriUVbKXdyc/ 7IYkIYECUs0Ms2L5cMJcjpsZmCL+52O6wad5nPRgCqo8ZvSoCsL1Rwm97XE2jFaN Y9Ro58SSso1fviXwbtev8knK8xSmk6uMy6kKsMzkcxEYPUS6WVtnMpL/Sz5sqWu5 MnWkvAkeYEvhi7GYv5ECrx1Y6KGSzRGFohamhL802hidsWbbKbo9TotcDcNPVb/g KW2Frt+31jSz0MVsBf9Yai9fr5Ut2drQkokb21/kRPEHSCqukotAKzhKSAMyNC1o qtXHzgl5PoCLpzePeAx52dfrnafxyG1Cmp3Hia+8HPYHSOedb7lqj9EpRYshv61v uQjjUwJweO8JY/DjIssc =gSIy -----END PGP SIGNATURE----- --x+bne1ZFwxW5PfJO--