From owner-freebsd-mobile@FreeBSD.ORG Wed May 23 06:13:33 2007 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E95E816A400 for ; Wed, 23 May 2007 06:13:33 +0000 (UTC) (envelope-from m.apitz@oclcpica.org) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id 3458213C44B for ; Wed, 23 May 2007 06:13:32 +0000 (UTC) (envelope-from m.apitz@oclcpica.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id IAA07432; Wed, 23 May 2007 08:07:58 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) Received: from ppp-82-135-67-52.dynamic.mnet-online.de(82.135.67.52) by hunter.Sisis.de via smap (V2.1) id xma007424; Wed, 23 May 07 08:07:56 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.13.4/8.13.4/Submit) id l4N6D5hn002282; Wed, 23 May 2007 08:13:05 +0200 (CEST) (envelope-from m.apitz@oclcpica.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to m.apitz@oclcpica.org using -f Date: Wed, 23 May 2007 08:13:05 +0200 From: Matthias Apitz To: David Gilbert Message-ID: <20070523061305.GA2095@rebelion.Sisis.de> References: <20070519142607.GA9776@rebelion.Sisis.de> <18003.10232.379541.836357@canoe.dclg.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18003.10232.379541.836357@canoe.dclg.ca> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-RELEASE (i386) Cc: Luigi Rizzo , freebsd-mobile@freebsd.org Subject: Re: iwi0: iwi_cmd: cmd 6 not sent, busy && freezing soemtimes X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2007 06:13:34 -0000 El día Tuesday, May 22, 2007 a las 01:27:20PM -0400, David Gilbert escribió: > >>>>> "Matthias" == Matthias Apitz writes: > > Matthias> I've updated one of my laptops to FreeBSD-6.2R, using for > Matthias> the Intel(R) PRO/Wireless 2200BG the firmware from the ports > Matthias> /usr/ports/net/iwi-firmware-kmod; > > [...] > > Matthias> but the link comes up, if the boot not freezes; > > I also see it freeze if I set the ssid and the wep key at the same > time. If I set the wep key with one ifconfig and then the ssid with > another, everything works. I've had a look into the more recent version of if_iwi.c in CVS and applied only this change to the original 6.2R version of if_iwi.c (1.8.2.10 2006/10/29) which was made by Luigi in the version 1.8.2.13: *** if_iwi.c Wed May 23 07:45:32 2007 --- if_iwi.c.orig Sun Oct 29 09:29:31 2006 *************** *** 2059,2073 **** IWI_LOCK(sc); - /* - * wait until pending iwi_cmd() are completed, to avoid races - * that could cause problems. - */ - while (sc->flags & IWI_FLAG_BUSY) { - printf("%s: waiting until pending iwi_cmd() are completed\n", __func__); - msleep(sc, &sc->sc_mtx, 0, "iwiioctl", hz); - } - switch (cmd) { case SIOCSIFFLAGS: if (ifp->if_flags & IFF_UP) { --- 2059,2064 ---- and during every reboot, exactly where the systems got frozen before, it now printf 10 times the above message 'waiting until pending iwi_cmd' but all is fine now; Maybe you could try it as well or someone of the if_iwi.c commiters could comment on it; or even it is worth to file a bug report and close it with this patch so that people in trouble have a chance to see it; thx matthias -- Matthias Apitz Manager Technical Support - OCLC PICA GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclcpica.org/ http://guru.UnixLand.de/ b http://gurucubano.blogspot.com/ OCLC PICA GmbH, Geschaeftsfuehrer: Christine Magin-Weeger, Norbert Weinberger Sitz der Gesellschaft: Oberhaching, HRB Muenchen: 113261