From owner-freebsd-mobile@FreeBSD.ORG Wed Apr 16 15:42:28 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AFB81065676 for ; Wed, 16 Apr 2008 15:42:28 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.30]) by mx1.freebsd.org (Postfix) with ESMTP id 12CC38FC28 for ; Wed, 16 Apr 2008 15:42:27 +0000 (UTC) (envelope-from gaijin.k@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so1393385ywt.13 for ; Wed, 16 Apr 2008 08:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=hIyLhUsub62XyQcv6O4UoWCl8w3lO/qqQJUeGbE4Q5Q=; b=VTvzEibXwHyLmB4SQ8ppxAp33mYfOmynOs5kCYEr32/3PM6ZNeeKwC6igbpaXvnd9ZXAfe8uYTfgxMBqwdI1CrBXrMrMG0I8MP/0rRFcvxpA09ceuXNoA4fsDyW613daH+0Zrk7IAnVSxcmJ+C5AmUbeQNLtHotS06G+J8jBKXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=Miry5WhmmMjxx1UgtWyVuBVf0IkBzbf0DJOkFhCaVHR0lZpu2anLRRLOlIAArOhsX4V5eAokzDwR6mHDS4Y9njdeXjLOe/Vfq7wreY3o1xvaEA8Gzg1mh2qf0w+6iqv3GskA9g4pMiNlDZr4KmuOeprNKc8a3PKR7jFv6SVcJ3k= Received: by 10.151.156.6 with SMTP id i6mr272118ybo.51.1208358944751; Wed, 16 Apr 2008 08:15:44 -0700 (PDT) Received: from ?10.0.3.231? ( [70.111.0.195]) by mx.google.com with ESMTPS id 8sm18486758wra.40.2008.04.16.08.15.43 (version=SSLv3 cipher=RC4-MD5); Wed, 16 Apr 2008 08:15:44 -0700 (PDT) From: "Alexandre \"Sunny\" Kovalenko" To: John Baldwin In-Reply-To: <200804161037.26572.jhb@freebsd.org> References: <4805E5A2.1070705@sophia.ac.jp> <200804161037.26572.jhb@freebsd.org> Content-Type: text/plain; charset=utf-8 Date: Wed, 16 Apr 2008 11:15:09 -0400 Message-Id: <1208358909.10448.1.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: Takashi Inoue , freebsd-mobile@freebsd.org Subject: Re: pciconf -w X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 15:42:28 -0000 On Wed, 2008-04-16 at 10:37 -0400, John Baldwin wrote: > On Wednesday 16 April 2008 07:40:18 am Takashi Inoue wrote: > > Hi friends, > > > > Does anyone know how to trun off a pci device using pciconf -w ? > > > > Becase my MiniPCI Express wireless card is realy hot, > > I want to turn off when I don't need it. > > > > > > ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 chip=0x1014168c > > rev=0x01 hdr=0x00 > > vendor = 'Atheros Communications Inc.' > > device = 'AR5212 Atheros AR5212 802.11abg wireless' > > class = network > > subclass = ethernet > > cap 01[40] = powerspec 2 supports D0 D3 current D0 > > cap 05[50] = MSI supports 1 message > > cap 10[60] = PCI-Express 1 legacy endpoint > > cap 11[90] = MSI-X supports 1 message in map 0x10 > > Bug warner (imp@FreeBSD.org) for his devctl patch and use that to turn it off. > Just out of curiosity... would setting hw.pci.do_power_nodriver="3" and unloading if_ath.ko do the trick? -- Alexandre "Sunny" Kovalenko (Олександр Коваленко)