Date: Wed, 11 Jun 2003 22:56:50 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: orion@freebsd.org Cc: current@freebsd.org Subject: Re: Correct PCI suspend and resume operations Message-ID: <20030611.225650.132415238.imp@bsdimp.com> In-Reply-To: <200306101644.h5AGiawR066527@puma.icir.org> References: <20030609035127.GA36909@laptop.6bone.nl> <200306101644.h5AGiawR066527@puma.icir.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200306101644.h5AGiawR066527@puma.icir.org> Orion Hodson <orion@freebsd.org> writes: : It looks like the pci configuration space state has been lost during : the suspend and resume. This may be because the bus has removed power : from the devices attached to it on suspend. During a suspend, devices are typically set into D3 state. Transition from D3 -> D0 resets the most of the config space. : I've been through a cross section of drivers this morning and some : explicitly save and restore the PCI configuration state space and : others don't. The former seems like the safest path in most cases. : AFAICT, we don't common code for handling this and maybe there should : be some rather than have each driver replicate this behaviour. This should be saved in the pci bus layer. I have some very imperfect patches in my p4 tree that I'm working on. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030611.225650.132415238.imp>