NetBSD Problem Report #42069

From www@NetBSD.org  Tue Sep 15 16:44:48 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id F1E3F63BD27
	for <gnats-bugs@gnats.netbsd.org>; Tue, 15 Sep 2009 16:44:47 +0000 (UTC)
Message-Id: <20090915164447.BD0AC63B877@www.NetBSD.org>
Date: Tue, 15 Sep 2009 16:44:47 +0000 (UTC)
From: elentirmo.gilgalad@gmail.com
Reply-To: elentirmo.gilgalad@gmail.com
To: gnats-bugs@NetBSD.org
Subject: iwi fails to initialise, due to firmware load problems
X-Send-Pr-Version: www-1.0

>Number:         42069
>Category:       kern
>Synopsis:       iwi fails to initialise, due to firmware load problems
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 15 16:45:00 +0000 2009
>Last-Modified:  Wed Sep 23 14:20:02 +0000 2009
>Originator:     Gabor Gergely
>Release:        5.99.17
>Organization:
>Environment:
NetBSD hunyadi.local 5.99.17 NetBSD 5.99.17 (GENERIC) #0: Sat Sep 12 04:15:36 UTC 2009  builds@b6.netbsd.org:/home/builds/ab/HEAD/i386/200909120000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386

>Description:
using the iwi driver (Intel IPW2200BG, with the apropriate sysctl eula enabled) i get the following error in dmesg:

iwi0: could not cache the firmware
iwi0: cannot assign link-local address
iwi0: timeout waiting for ucode to initialize
iwi0: could not load microcode
iwi0: cannot assign link-local address
iwi0: timeout waiting for firmware initialization to complete
iwi0: could not load main firmware

>How-To-Repeat:
ifconfig iwi0 up
>Fix:
no idea, but please, if you can.

>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org, 
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/42069: iwi fails to initialise, due to firmware load problems
Date: Tue, 15 Sep 2009 13:10:57 -0400

 On Sep 15,  4:45pm, elentirmo.gilgalad@gmail.com (elentirmo.gilgalad@gmail.com) wrote:
 -- Subject: kern/42069: iwi fails to initialise, due to firmware load problem

 | >Number:         42069
 | >Category:       kern
 | >Synopsis:       iwi fails to initialise, due to firmware load problems
 | >Confidential:   no
 | >Severity:       critical
 | >Priority:       medium
 | >Responsible:    kern-bug-people
 | >State:          open
 | >Class:          sw-bug
 | >Submitter-Id:   net
 | >Arrival-Date:   Tue Sep 15 16:45:00 +0000 2009
 | >Originator:     Gabor Gergely
 | >Release:        5.99.17
 | >Organization:
 | >Environment:
 | NetBSD hunyadi.local 5.99.17 NetBSD 5.99.17 (GENERIC) #0: Sat Sep 12 04:15:36 UTC 2009  builds@b6.netbsd.org:/home/builds/ab/HEAD/i386/200909120000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i386
 | 
 | >Description:
 | using the iwi driver (Intel IPW2200BG, with the apropriate sysctl eula enabled) i get the following error in dmesg:
 | 
 | iwi0: could not cache the firmware
 | iwi0: cannot assign link-local address
 | iwi0: timeout waiting for ucode to initialize
 | iwi0: could not load microcode
 | iwi0: cannot assign link-local address
 | iwi0: timeout waiting for firmware initialization to complete
 | iwi0: could not load main firmware

 All the Intel drivers have this problem since August 14 or so. My card
 [iwn] works after though..

 christos

From: =?UTF-8?Q?Gergely_G=C3=A1bor?= <elentirmo.gilgalad@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/42069: iwi fails to initialise, due to firmware load 
	problems
Date: Tue, 15 Sep 2009 19:26:43 +0200

 ok, but i checked for it yesterday, and i didn't find the PR in
 reported, i tought it may get more attention should i send it.


 On Tue, Sep 15, 2009 at 7:15 PM, Christos Zoulas <christos@zoulas.com> wrot=
 e:
 > The following reply was made to PR kern/42069; it has been noted by GNATS=
 .
 >
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org,
 > =C2=A0 =C2=A0 =C2=A0 =C2=A0gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 > Cc:
 > Subject: Re: kern/42069: iwi fails to initialise, due to firmware load pr=
 oblems
 > Date: Tue, 15 Sep 2009 13:10:57 -0400
 >
 > =C2=A0On Sep 15, =C2=A04:45pm, elentirmo.gilgalad@gmail.com (elentirmo.gi=
 lgalad@gmail.com) wrote:
 > =C2=A0-- Subject: kern/42069: iwi fails to initialise, due to firmware lo=
 ad problem
 >
 > =C2=A0| >Number: =C2=A0 =C2=A0 =C2=A0 =C2=A0 42069
 > =C2=A0| >Category: =C2=A0 =C2=A0 =C2=A0 kern
 > =C2=A0| >Synopsis: =C2=A0 =C2=A0 =C2=A0 iwi fails to initialise, due to f=
 irmware load problems
 > =C2=A0| >Confidential: =C2=A0 no
 > =C2=A0| >Severity: =C2=A0 =C2=A0 =C2=A0 critical
 > =C2=A0| >Priority: =C2=A0 =C2=A0 =C2=A0 medium
 > =C2=A0| >Responsible: =C2=A0 =C2=A0kern-bug-people
 > =C2=A0| >State: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0open
 > =C2=A0| >Class: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sw-bug
 > =C2=A0| >Submitter-Id: =C2=A0 net
 > =C2=A0| >Arrival-Date: =C2=A0 Tue Sep 15 16:45:00 +0000 2009
 > =C2=A0| >Originator: =C2=A0 =C2=A0 Gabor Gergely
 > =C2=A0| >Release: =C2=A0 =C2=A0 =C2=A0 =C2=A05.99.17
 > =C2=A0| >Organization:
 > =C2=A0| >Environment:
 > =C2=A0| NetBSD hunyadi.local 5.99.17 NetBSD 5.99.17 (GENERIC) #0: Sat Sep=
  12 04:15:36 UTC 2009 =C2=A0builds@b6.netbsd.org:/home/builds/ab/HEAD/i386/=
 200909120000Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/GENERIC i38=
 6
 > =C2=A0|
 > =C2=A0| >Description:
 > =C2=A0| using the iwi driver (Intel IPW2200BG, with the apropriate sysctl=
  eula enabled) i get the following error in dmesg:
 > =C2=A0|
 > =C2=A0| iwi0: could not cache the firmware
 > =C2=A0| iwi0: cannot assign link-local address
 > =C2=A0| iwi0: timeout waiting for ucode to initialize
 > =C2=A0| iwi0: could not load microcode
 > =C2=A0| iwi0: cannot assign link-local address
 > =C2=A0| iwi0: timeout waiting for firmware initialization to complete
 > =C2=A0| iwi0: could not load main firmware
 >
 > =C2=A0All the Intel drivers have this problem since August 14 or so. My c=
 ard
 > =C2=A0[iwn] works after though..
 >
 > =C2=A0christos
 >
 >

From: Gergely =?iso-8859-2?q?G=E1bor?= <elentirmo.gilgalad@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/42069: iwi fails to initialise, due to firmware load problems
Date: Wed, 23 Sep 2009 16:16:04 +0200

 --nextPart4576868.QyUtRWnNSL
 Content-Type: multipart/mixed;
   boundary="Boundary-01=_l2iuKK4+yY7Z5FX"
 Content-Transfer-Encoding: 7bit


 --Boundary-01=_l2iuKK4+yY7Z5FX
 Content-Type: Text/Plain;
   charset="iso-8859-2"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: inline

 =46ix:

 The segment number for the firmware were calculated badly. I reverted the=20
 calculation method to the old one (if_iwi.c:2041) . The "patch" is attached.

 Regards: G=E1bor Gergely

 ps: i'm sending the message over this wifi link!

 --Boundary-01=_l2iuKK4+yY7Z5FX
 Content-Type: text/x-patch;
   charset="UTF-8";
   name="if_iwi.c.diff"
 Content-Transfer-Encoding: quoted-printable
 Content-Disposition: attachment;
 	filename="if_iwi.c.diff"

 Index: if_iwi.c
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/src/sys/dev/pci/if_iwi.c,v
 retrieving revision 1.82
 diff -u -r1.82 if_iwi.c
 =2D-- if_iwi.c	5 Sep 2009 14:09:55 -0000	1.82
 +++ if_iwi.c	23 Sep 2009 14:11:39 -0000
 @@ -2041,7 +2041,7 @@
  	int ntries, nsegs, error;
  	int sn;
 =20
 =2D	nsegs =3D atop((vaddr_t)fw+size-1) - atop((vaddr_t)fw) + 1;
 +	nsegs =3D (size + PAGE_SIZE - 1) / PAGE_SIZE;
 =20
  	/* Create a DMA map for the firmware image */
  	error =3D bus_dmamap_create(sc->sc_dmat, size, nsegs, size, 0,

 --Boundary-01=_l2iuKK4+yY7Z5FX--

 --nextPart4576868.QyUtRWnNSL
 Content-Type: application/pgp-signature; name=signature.asc 
 Content-Description: This is a digitally signed message part.

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.10 (NetBSD)

 iEYEABECAAYFAkq6LaUACgkQlZGsj+xzT3nUpgCgtCviy0FDoVnSnXpR+vPSGi56
 jtQAoJt3zylV/hedHCa1hYE/sL8xxMpk
 =Z1Yy
 -----END PGP SIGNATURE-----

 --nextPart4576868.QyUtRWnNSL--

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.