linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Greg KH <greg@kroah.com>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>,
	Linux-pm mailing list <linux-pm@lists.osdl.org>
Subject: Re: Concerns about our pci_{save,restore}_state()
Date: Mon, 25 Oct 2004 02:11:40 -0400	[thread overview]
Message-ID: <417C991C.2070806@pobox.com> (raw)
In-Reply-To: <1098677182.26697.21.camel@gaston>

Benjamin Herrenschmidt wrote:
>  - What about saving/restoring more registers ? I'm not sure wether it
> should be the responsibility of the driver to save and restore things
> above dword 15, but we should at least deal with the case of P2P bridges
> who have more "standard" registers


This is a key concern of mine.

The _driver_ is the only entity that knows really how much space to 
save/restore, and the generic versions are obviously _not_ sufficient to 
support:

* hardware errata such as S3 Trio, where _reading_ or writing certain 
registers in the standard range cause a system lockup

* saving/restoring the standard-defined capability lists, which 
certainly could extend way beyond what's stored now

* saving/restoring the new PCI-Express 4K config area

This is _clearly_ something that should be decided upon in the driver. 
The PCI layer should _only_ present standard helper functions, and maybe 
a standard storage space that works for most drivers; not force all 
drivers through a narrow funnel.

	Jeff



  reply	other threads:[~2004-10-25  6:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25  4:06 Concerns about our pci_{save,restore}_state() Benjamin Herrenschmidt
2004-10-25  6:11 ` Jeff Garzik [this message]
2004-10-25  6:24   ` Benjamin Herrenschmidt
2004-10-25  8:32     ` Arjan van de Ven
2004-10-25  9:04       ` Benjamin Herrenschmidt
2004-10-28  8:50     ` [linux-pm] " Patrick Mochel
2004-10-28 22:44       ` Benjamin Herrenschmidt
2004-10-28 21:31 ` Greg KH
2004-10-28 22:50   ` Benjamin Herrenschmidt

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=417C991C.2070806@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=benh@kernel.crashing.org \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.osdl.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;
as well as URLs for NNTP newsgroup(s).