Re: Correct PCI suspend and resume operations

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Wed, 11 Jun 2003 22:56:50 -0600 (MDT)
In message: <200306101644.h5AGiawR066527_at_puma.icir.org>
            Orion Hodson <orion_at_freebsd.org> writes:
: It looks like the pci configuration space state has been lost during
: the suspend and resume.  This may be because the bus has removed power
: from the devices attached to it on suspend.

During a suspend, devices are typically set into D3 state.  Transition
from D3 -> D0 resets the most of the config space.

: I've been through a cross section of drivers this morning and some
: explicitly save and restore the PCI configuration state space and
: others don't.  The former seems like the safest path in most cases.
: AFAICT, we don't common code for handling this and maybe there should
: be some rather than have each driver replicate this behaviour.

This should be saved in the pci bus layer.  I have some very imperfect
patches in my p4 tree that I'm working on.

Warner
Received on Wed Jun 11 2003 - 19:57:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC