public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Concerns about our pci_{save,restore}_state()
@ 2004-10-25  4:06 Benjamin Herrenschmidt
  2004-10-25  6:11 ` Jeff Garzik
  2004-10-28 21:31 ` Greg KH
  0 siblings, 2 replies; 9+ messages in thread
From: Benjamin Herrenschmidt @ 2004-10-25  4:06 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel list, Linux-pm mailing list

Hi Greg !

I was looking at our "generic" pci_save_state() and pci_restore_state()
and I have various concerns with them, I was wondering what you though
about them...

 - We should always write the command register after all the BARs,
typically that mean write it back _last_
 - We shouldn't write to the BIST register, it is defined as having
side effects and writing to it any value may trigger a BIST on the
card, with all the possible bad consequences that has
 - 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

In addition, we currently have no mecanism to save/restore the state of
P2P bridges. Shouldn't we do that in pci_device_suspend() if there is no
driver attached ?

Ben.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-28 22:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-25  4:06 Concerns about our pci_{save,restore}_state() Benjamin Herrenschmidt
2004-10-25  6:11 ` Jeff Garzik
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox