From owner-freebsd-arch@FreeBSD.ORG Wed Mar 19 13:24:54 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A2571065670; Wed, 19 Mar 2008 13:24:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 3B0DB8FC1D; Wed, 19 Mar 2008 13:24:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id 41F411A4D7E; Wed, 19 Mar 2008 06:23:31 -0700 (PDT) From: John Baldwin To: freebsd-arch@freebsd.org Date: Wed, 19 Mar 2008 08:54:38 -0400 User-Agent: KMail/1.9.7 References: <8726.1205926183@critter.freebsd.dk> In-Reply-To: <8726.1205926183@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803190854.39131.jhb@freebsd.org> Cc: bzeeb-lists@lists.zabbadoz.net, Poul-Henning Kamp , arch@freebsd.org Subject: Re: Power-Mgt X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Mar 2008 13:24:54 -0000 On Wednesday 19 March 2008 07:29:43 am Poul-Henning Kamp wrote: > In message <20080319.051604.63052713.imp@bsdimp.com>, "M. Warner Losh" writes: > >In message: <20080318085804.I50685@maildrop.int.zabbadoz.net> > > > > "Bjoern A. Zeeb" writes: > >: what actually happens to an unrecognized card or a card with no driver > >: loaded currently? How much power does an unsued card use and can we do > >: anything about that? Are we perhaps already doing something about > >: that? > > > >For PCI it is set into D3 state. Or at least was until this caused a > >problem with some raid controllers that didn't follow the rules and > >had extra devices that the card used, but that the OS didn't have a > >driver for. > > > >For PC Card, the card is powered down entirely. For CardBus I think > >the same. For USB, ugen takes it, and therefore it is powered up. > > Not to mention this comment from acpi_cpu.c: > > /* > * Check for bus master activity. If there was activity, clear > * the bit and use the lowest non-C3 state. Note that the USB > * driver polling for new devices keeps this bit set all the > * time if USB is loaded. > */ That is something to be fixed in the USB driver, but yes. Changing the USB driver to power down when nothing is plugged in may help. -- John Baldwin