public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org>
To: stefandoesinger-RbZlAiThDcE@public.gmane.org
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: pci device resume too early?
Date: Wed, 28 Jul 2004 19:14:45 +0100	[thread overview]
Message-ID: <1091038485.15464.9.camel@tyrosine> (raw)
In-Reply-To: <200407281953.39159.stefandoesinger-RbZlAiThDcE@public.gmane.org>

On Wed, 2004-07-28 at 19:53 +0200, Stefan Dösinger wrote:

> The problem is that directly after S3 resume, any attempt to write to pci 
> configuration registers of three of my devices(00:1d.7, 00:1f.5, 00:1f.6) 
> locks up my system. After some testing, I found out that pci_restore_state 
> works nice if I place it into a function which is scheduled with 
> schedule_delayed_work. I use my dummydriver module for testing.

Ooh, neat. This might explain the problems I have with yenta resuming on
my Thinkpad 240X. pci_restore_state is called from drivers/pci/pci-
driver.c (see pci_default_resume), and from some specific drivers (it
can probably be removed from them now though, really). That gets called
from the chain of things called in device_resume in
drivers/base/power/resume.c - it steps through each registered driver
and calls the associated resume method. For PCI stuff, that will either
be pci_default_resume or a driver-specific resume method. device_resume
is called from suspend_finish in kernel/power/main.c.

-- 
Matthew Garrett | mjg59-1xO5oi07KQx4cg9Nei1l7Q@public.gmane.org



-------------------------------------------------------
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_idG21&alloc_id\x10040&op=click

  parent reply	other threads:[~2004-07-28 18:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-28 17:53 pci device resume too early? Stefan Dösinger
     [not found] ` <200407281953.39159.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-07-28 18:14   ` Matthew Garrett [this message]
     [not found]     ` <1091038485.15464.9.camel-myFlNLNQP+Q@public.gmane.org>
2004-07-28 19:18       ` Stefan Dösinger
     [not found]         ` <200407282118.52624.stefandoesinger-RbZlAiThDcE@public.gmane.org>
2004-07-28 21:06           ` Luca
     [not found]             ` <20040728210602.GA26087-sTXFmx6KbOnUXq0IF5SVAZ4oGUkBHcCu@public.gmane.org>
2004-07-29 15:04               ` Stefan Dösinger
2004-08-04 18:47               ` Stefan Dösinger
2004-07-28 21:59           ` Matthew Garrett
  -- strict thread matches above, loose matches on Subject: below --
2004-07-29  0:48 Li, Shaohua

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091038485.15464.9.camel@tyrosine \
    --to=mjg59-1xo5oi07kqx4cg9nei1l7q@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=stefandoesinger-RbZlAiThDcE@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox