From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: Re: [Proposal]Another way to save/restore PCI config space for suspend/resume Date: Wed, 27 Oct 2004 19:57:37 +1000 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <1098871057.9478.2.camel@gaston> References: <417F409A.5060409@intel.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <417F409A.5060409-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Len Brown Cc: Li Shaohua , Pavel Machek , ACPI-DEV , Linux Kernel list , Greg KH List-Id: linux-acpi@vger.kernel.org On Wed, 2004-10-27 at 02:30 -0400, Len Brown wrote: > Li Shaohua wrote: > > On Tue, 2004-10-26 at 17:21, Pavel Machek wrote: > > >>>Here is a another idea: > >>>Record all PCI writes in Linux kernel... > >> > >>That looks extremely ugly to me. If you want to do something special > >>in resume function, just do it there. It will probably share a lot of > >>code with your init function, anyway. > > > > How can you handle devices without driver? And how to save/restore > > config space for special devices, such as LPC bridge and host bridge? > > Say that writing the missing drivers is the only workable solution. > Does anybody have an estimate of how many there are and how big > a task that would be? This has been discussed a bit on linux-pm (on osdl lists, it's a new list to discuss PM specific matters). I tend to think the core should know at least a few "standard" things like P2P bridges, by simply saving/restoring a bigger chunk of config space. We also need to fix the current restore code I suppose, so that it disables IO & MEM, then restore all registers, then re-enable those 2 ones... I don't want to cross-post between lists, but people are welcome to join linux-pm to talk about implementation issues related to power management, including the changes we are trying to define to the various driver callbacks. Ben. ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click