From owner-freebsd-current@FreeBSD.ORG Tue Jun 19 07:53:58 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2D7116A421 for ; Tue, 19 Jun 2007 07:53:58 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by mx1.freebsd.org (Postfix) with ESMTP id 7472713C448 for ; Tue, 19 Jun 2007 07:53:58 +0000 (UTC) (envelope-from sepherosa@gmail.com) Received: by an-out-0708.google.com with SMTP id c14so449801anc for ; Tue, 19 Jun 2007 00:53:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MAB4ycCdGHTKAazmY92O9QOJP0vezgECwaSybJCvsCATFnb8qzvLJF2E1fPHd+aG4G+4UNIfd65G3uGDCsiswIFiTJ6a7mQx04bDDrqyrMaxNcNg5eaaxgXQWe/yp05FifFH64MSaAy2K+xx5LjHWPsYmcdbHBGkcm8mMQx4qqg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tQOdWhesZ8PwSipEz2Gqdeg8IQjk1gCy0WvlatOWq7AsQ8t4gRFf0rXvYpv/o8wrmuEkkvIzgKLiEVfX1NEoMJxLqCoLkLnewHc9CJWxi/4mMNxReFlW/1VxXO1gMO3daO2VvYirEp/ZZYz08Gg9S6QC37HFkzdALZmQmEBiBNw= Received: by 10.100.143.11 with SMTP id q11mr4054115and.1182239637802; Tue, 19 Jun 2007 00:53:57 -0700 (PDT) Received: by 10.100.47.20 with HTTP; Tue, 19 Jun 2007 00:53:57 -0700 (PDT) Message-ID: Date: Tue, 19 Jun 2007 15:53:57 +0800 From: "Sepherosa Ziehau" To: "Harald Schmalzbauer" In-Reply-To: <200706181052.03209.h.schmalzbauer@omnisec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200706181052.03209.h.schmalzbauer@omnisec.de> Cc: freebsd-current@freebsd.org Subject: Re: ath kldunloading hangs the system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jun 2007 07:53:58 -0000 On 6/18/07, Harald Schmalzbauer wrote: > Hello, > > it seems the recent wlan changes broke unloading the if_ath.ko. > I have problems with resuming my laptop with ath, so I loaded it as a module. > The resume problem still persists but now I cannot unload ath anymore. > No panic, just system freeze. > > Is this a known problem? > > Thanks, > > -Harry > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > Please change following code segment, see whether it helps: 1091: static void 1092: ath_stop(struct ifnet *ifp) 1093: { 1094: struct ath_softc *sc = ifp->if_softc; 1095: 1096: ATH_LOCK(sc); 1097: ath_stop_locked(ifp); #if 0 <====== add me 1098: if (!sc->sc_invalid) { 1099: /* 1100: * Set the chip in full sleep mode. Note that we are 1101: * careful to do this only when bringing the interface 1102: * completely to a stop. When the chip is in this state 1103: * it must be carefully woken up or references to 1104: * registers in the PCI clock domain may freeze the bus 1105: * (and system). This varies by chip and is mostly an 1106: * issue with newer parts that go to sleep more quickly. 1107: */ 1108: ath_hal_setpower(sc->sc_ah, HAL_PM_FULL_SLEEP); 1109: } #endif <====== add me 1110: ATH_UNLOCK(sc); 1111: } Best Regards, sephe -- Live Free or Die