From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Ossman Subject: Re: PCI power state mapping Date: Thu, 29 Jul 2004 13:15:37 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <4108DC59.4050409@drzeus.cx> References: <41069C59.5020603@drzeus.cx> <20040729084154.GH21889@openzaurus.ucw.cz> <4108D5BC.8040302@drzeus.cx> <20040729105251.GB9718@elf.ucw.cz> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------060000070607090201030802" Return-path: In-Reply-To: <20040729105251.GB9718-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Pavel Machek Cc: "Li, Shaohua" , acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org This is a multi-part message in MIME format. --------------060000070607090201030802 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Pavel Machek wrote: >Hi! > > > >>Anyhow, I did some hacks into pci_device_suspend() getting it to >>suspend devices without a driver. Combined with my escalation patch >>in pci_set_power_state() all devices on the machine now enters D2 or >>D3 depending on device capabilities. My laptop still cannot enter the >>suspend state so there is still something missing... Are there any >>more areas of power management in linux that aren't quite up to spec.? >> >> >>You forgot to say if you are trying to suspend to ram or to disk. >> Pavel >> >> >> RAM. It was in the beginning of the thread... >> >> > >Okay, try suspending to disk, first. It tends to work better. Are your >"hacks into pci_device_suspend() getting it to suspend devices without >a driver" available somewhere? > Pavel > > > Suspend to disk works fine. It's just the ram-bit that won't work. There is an earlier thread about this with more details (search for "suspend-to-ram hangs on HP NX7010"). I haven't bothered making a patch of my changes since they do not add any functionality. If you have a look at pci_device_suspend() it's fairly easy to change it. It's a very compact and obvious function. Rgds Pierre --------------060000070607090201030802 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Pavel Machek wrote:
Hi!

  
Anyhow, I did some hacks into pci_device_suspend() getting it to 
suspend devices without a driver. Combined with my escalation patch 
in pci_set_power_state() all devices on the machine now enters D2 or 
D3 depending on device capabilities. My laptop still cannot enter the 
suspend state so there is still something missing... Are there any 
more areas of power management in linux that aren't quite up to spec.?
    

You forgot to say if you are trying to suspend to ram or to disk.
                                Pavel
  

   RAM. It was in the beginning of the thread...
    

Okay, try suspending to disk, first. It tends to work better. Are your
"hacks into pci_device_suspend() getting it to suspend devices without
a driver" available somewhere?
								Pavel

  
Suspend to disk works fine. It's just the ram-bit that won't work. There is an earlier thread about this with more details (search for "suspend-to-ram hangs on HP NX7010"). I haven't bothered making a patch of my changes since they do not add any functionality. If you have a look at pci_device_suspend() it's fairly easy to change it. It's a very compact and obvious function.

Rgds
Pierre
--------------060000070607090201030802-- ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click