linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Matthias Hentges <mailinglisten@hentges.net>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: pci-resume patch from 2.6.7-rc2 breakes S3 resume on some machines
Date: Mon, 22 Nov 2004 08:39:57 +1100	[thread overview]
Message-ID: <1101073197.3796.72.camel@gaston> (raw)
In-Reply-To: <1101027009.4052.11.camel@mhcln03>


> I did some more tests today and found out that 
> "0000:00:01.0 PCI bridge: Intel Corp. 82855PM Processor to AGP
> Controller (rev 21) (prog-if 00 [Normal decode])"
> 
> wasn't correctly resumed either.
> 
> I wrote a script to dump the pci data (from lspci -x $device). Importing
> the data after a resume freezes the machine *if one is touching data
> that hasn't been changed during S3*. If I only change the values which
> were modified after resume, the machine does *not* freeze.
> 
> Maybe that's the problem with pci_default_resume. It looks like it is
> just writing back the data it has stored before resuming. Maybe one
> should only write the values which have actually changed?
> 
> Anyways, using my little script, i managed to restore the PCI data of
> the "Processor to AGP Controller" and the Radeon card after a resume.

That "update only what changed" makes little sense ... can you send me
the lspci state of the Intel bridge before you try to resume it ? I
suspect our pci_restore_state() should be smarter, that is check if
something changed (a BAR), if yes, switch mem/io off, restore the BARs,
then switch mem/io back on...

Ben.



  reply	other threads:[~2004-11-21 21:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-18 21:05 pci-resume patch from 2.6.7-rc2 breakes S3 resume on some machines Matthias Hentges
2004-11-19 11:55 ` Pavel Machek
2004-11-19 13:56   ` Matthias Hentges
2004-11-19 23:06     ` Benjamin Herrenschmidt
2004-11-20  2:43       ` Matthew Garrett
2004-11-20  3:36         ` Matthias Hentges
2004-11-20  7:34           ` Benjamin Herrenschmidt
2004-11-20  8:01             ` Matthias Hentges
2004-11-20 22:27               ` Benjamin Herrenschmidt
2004-11-21  8:50                 ` Matthias Hentges
2004-11-21 21:39                   ` Benjamin Herrenschmidt [this message]
2004-11-22  4:34                     ` Matthias Hentges
2004-11-22  4:52                       ` Benjamin Herrenschmidt
2004-11-20  7:33         ` Benjamin Herrenschmidt
2004-11-20 22:29         ` Pavel Machek
2004-11-19 11:56 ` Pavel Machek

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=1101073197.3796.72.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mailinglisten@hentges.net \
    /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;
as well as URLs for NNTP newsgroup(s).