Date: Fri, 28 Mar 2008 02:23:08 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: jhb@FreeBSD.org Cc: freebsd-arch@FreeBSD.org Subject: Re: AsiaBSDCon DEVSUMMIT patch Message-ID: <20080328.022308.1645215000.imp@bsdimp.com> In-Reply-To: <200803271727.51811.jhb@freebsd.org> References: <200803271105.18401.jhb@freebsd.org> <20080327.142052.-1337017421.imp@bsdimp.com> <200803271727.51811.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
OK. I've updated the kernel side of this patch. It still only supports suspend/resume, but tells the bus to do it. The PCI bus will now set the state properly. We can extend this to include detach and rescan (and somehow attach, but that's harder), but I haven't had time to do this yet. I drank way too much beer last night to do more (or I'd have merged in the suggested userland changes too). I'm still leery about doing things directly powering devices, but so long as it translates to suspend/resume, I'm happy. Power state management when a device isn't suspended also needs careful thought. This patch mimics the suspend and resume paths better, so we can do more testing on drivers. This has already found, or rediscovered, bugs in the usb code's integration into newbus. I've not yet fixed those, since they are hard (but also affect eject of USB Cardbus cards with devices attached). Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080328.022308.1645215000.imp>