]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
resume: restore piix pm config registers after resume
authorMarcel Apfelbaum <marcel.a@redhat.com>
Wed, 15 Jan 2014 12:20:06 +0000 (14:20 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 15 Jan 2014 16:01:58 +0000 (11:01 -0500)
commit40d020f56226aee7c75a6c29f471c4b866765732
tree3ef860f261e383a862eb24c5af6d865d21229cbc
parent2a5338540fc31355fa1bfa3ceb3214884e23141a
resume: restore piix pm config registers after resume

On resume, the OS queries the power management event that
caused it. In order to complete this task, it executes some
reads to the piix pm io space. This all happens before the
OS has a chance to restore the PCI config space for devices,
so it is bios's responsibility to make sure the pm IO space
is configured correctly. (During suspend, the piix pm
configuration space is lost).

Note: For 'ordinary' pci devices the config space is
saved by the OS on sleep and restored on resume.

Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
src/fw/pciinit.c
src/resume.c
src/util.h