From owner-freebsd-arch@FreeBSD.ORG Wed Mar 19 16:23:24 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 23D6A1065670; Wed, 19 Mar 2008 16:23:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id A77918FC17; Wed, 19 Mar 2008 16:23:23 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id m2JGLB1a023562; Wed, 19 Mar 2008 10:21:11 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 19 Mar 2008 10:21:49 -0600 (MDT) Message-Id: <20080319.102149.1723939928.imp@bsdimp.com> To: jhb@FreeBSD.org From: "M. Warner Losh" In-Reply-To: <200803190854.39131.jhb@freebsd.org> References: <8726.1205926183@critter.freebsd.dk> <200803190854.39131.jhb@freebsd.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: bzeeb-lists@lists.zabbadoz.net, phk@phk.freebsd.dk, arch@FreeBSD.org, freebsd-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 16:23:24 -0000 In message: <200803190854.39131.jhb@freebsd.org> John Baldwin writes: : 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. hps' usb stack implements something in this area. Warner