From owner-freebsd-mobile@FreeBSD.ORG Thu Apr 17 10:05:51 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 2ACF2106566C; Thu, 17 Apr 2008 10:05:51 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from skutsje.san.webweaving.org (skutsje.san.webweaving.org [209.132.96.45]) by mx1.freebsd.org (Postfix) with ESMTP id CF6998FC1A; Thu, 17 Apr 2008 10:05:50 +0000 (UTC) (envelope-from dirkx@webweaving.org) Received: from [10.11.0.121] (5356CA0A.cable.casema.nl [83.86.202.10]) (authenticated bits=0) by skutsje.san.webweaving.org (8.12.9/8.12.9) with ESMTP id m3H9df2Q036375 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 17 Apr 2008 02:39:43 -0700 (PDT) (envelope-from dirkx@webweaving.org) Message-Id: <328A981E-AAC9-42D5-BCA7-8F83B8E3BB63@webweaving.org> From: Dirk-Willem van Gulik To: "M. Warner Losh" In-Reply-To: <20080416.183606.-772296126.imp@bsdimp.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 17 Apr 2008 11:39:41 +0200 References: <4805E5A2.1070705@sophia.ac.jp> <200804161037.26572.jhb@freebsd.org> <1208358909.10448.1.camel@RabbitsDen> <20080416.183606.-772296126.imp@bsdimp.com> X-Mailer: Apple Mail (2.919.2) Cc: takash-i@sophia.ac.jp, gaijin.k@gmail.com, 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: Thu, 17 Apr 2008 10:05:51 -0000 On Apr 17, 2008, at 2:36 AM, M. Warner Losh wrote: > : > > Does anyone know how to trun off a pci device using pciconf -w ? > ..... > : > > ath0@pci0:3:0:0: class=0x020000 card=0x058a1014 > chip=0x1014168c .... > : > > 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? > > Yes. Hmm - this does not work for me on a Soekris and in a Sony VAIO -- even after down, sysctl and unloading the driver it reports sitting in D0. Does this require certain support in the PCI controller ? Dw