From owner-freebsd-hackers@FreeBSD.ORG Sun May 18 13:57:28 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E4CE3728; Sun, 18 May 2014 13:57:28 +0000 (UTC) Received: from mail-vc0-x231.google.com (mail-vc0-x231.google.com [IPv6:2607:f8b0:400c:c03::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 904892C4E; Sun, 18 May 2014 13:57:28 +0000 (UTC) Received: by mail-vc0-f177.google.com with SMTP id if17so8284643vcb.22 for ; Sun, 18 May 2014 06:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=6PawQ8lvdEToVozdGU5+cCsOKeRjjnVzBtAN/sDst6s=; b=RczZI51lHvAndoQW9K0ieuGO7BFIBEXZ7ddxO/bQ993S5R0qsAr/Vzgubw7ojc9S4e dxmC4U5eE+dKG4MRssqSf9ni7zs6fT9BRTTO1LjxzcrrFHg4+eUed9fMJHJMcR8Cvz37 LwTr7P343jX5IOwu4LUXGcJPJJKXmlVD8TgojmU3rKvaNKdyQwHCqbHs3z48afUnRanC QpKNxIxuT3RvEOH48WlZwlu+67jmOZlSkDpJTg+jwQKwcLgC0FVINI9/tMBg7sjk6C2h 3hS0b3uZIn0K4s1ZcAPZwpxD3NWrrkz248UD0OVyQP+cE1MdE/AHL6U5DQ1Fqj3SoYqW +btQ== X-Received: by 10.58.98.232 with SMTP id el8mr284349veb.42.1400421447646; Sun, 18 May 2014 06:57:27 -0700 (PDT) MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.58.2.225 with HTTP; Sun, 18 May 2014 06:57:07 -0700 (PDT) In-Reply-To: <8FB7D6BF-005A-41A1-9DCE-C8B09EA338EE@FreeBSD.org> References: <8FB7D6BF-005A-41A1-9DCE-C8B09EA338EE@FreeBSD.org> From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Sun, 18 May 2014 15:57:07 +0200 X-Google-Sender-Auth: FFummk7IeStPkgRjucIAjAfJ1Ls Message-ID: Subject: Re: Workaround for "fatal firmware error" iwn(4) problem. To: =?ISO-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18 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: Sun, 18 May 2014 13:57:29 -0000 On Fri, May 16, 2014 at 8:06 PM, Edward Tomasz Napiera=C5=82a wrote: > I've started using FreeBSD laptop and iwn(4) failing at random moments > like this... > > I had the same problem too with iwn(4). > > ... has been driving me crazy, so I wrote a workaround. The patch > can be found here: > > http://people.freebsd.org/~trasz/iwn.diff > > I've tested you patch on a r266396, but it generate a panic: wlan0: Ethernet address: 00:1d:e0:29:19:65 Starting wpa_supplicant. Starting dhclient. wlan0: no link .............. giving up /etc/rc.d/dhclient: WARNING: failed to start dhclient iwn0: iwn_intr: fatal firmware error firmware error log: error type =3D "NMI_INTERRUPT_WDG" (0x00000004) program counter =3D 0x0000046C source line =3D 0x000000D0 error data =3D 0x0000000207030000 branch link =3D 0x00008370000004C2 interrupt link =3D 0x000006DE000018B8 time =3D 11427825 driver status: tx ring 0: qid=3D0 cur=3D0 queued=3D0 tx ring 1: qid=3D1 cur=3D0 queued=3D0 tx ring 2: qid=3D2 cur=3D0 queued=3D0 tx ring 3: qid=3D3 cur=3D1 queued=3D0 tx ring 4: qid=3D4 cur=3D68 queued=3D0 tx ring 5: qid=3D5 cur=3D0 queued=3D0 tx ring 6: qid=3D6 cur=3D0 queued=3D0 tx ring 7: qid=3D7 cur=3D0 queued=3D0 tx ring 8: qid=3D8 cur=3D0 queued=3D0 tx ring 9: qid=3D9 cur=3D0 queued=3D0 tx ring 10: qid=3D10 cur=3D0 queued=3D0 tx ring 11: qid=3D11 cur=3D0 queued=3D0 tx ring 12: qid=3D12 cur=3D0 queued=3D0 tx ring 13: qid=3D13 cur=3D0 queued=3D0 tx ring 14: qid=3D14 cur=3D0 queued=3D0 tx ring 15: qid=3D15 cur=3D0 queued=3D0 rx ring: cur=3D22 iwn0: iwn_intr: reinit; 0xfffffe00008090b0 iwn0: iwn_reinit_thread: controller panicked; resetting... Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address =3D 0xffff fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff805a4b10 stack pointer =3D 0x28:0xfffffe0120353b30 frame pointer =3D 0x28:0xfffffe0120353b60 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 0 (iwn_reinit) About the instruction pointer code: addr2line -e /boot/kernel/kernel.symbols 0xffffffff805a4b10 /usr/src/sys/dev/iwn/if_iwn.c:6792 Regards, Olivier