NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/42069: iwi fails to initialise, due to firmware load problems



The following reply was made to PR kern/42069; it has been noted by GNATS.

From: Gergely =?iso-8859-2?q?G=E1bor?= <elentirmo.gilgalad%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
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--
 


Home | Main Index | Thread Index | Old Index