aboutsummaryrefslogtreecommitdiff
path: root/src/resume.c
diff options
context:
space:
mode:
authorMarcel Apfelbaum <marcel.a@redhat.com>2014-01-15 14:20:06 +0200
committerKevin O'Connor <kevin@koconnor.net>2014-01-15 11:01:58 -0500
commit40d020f56226aee7c75a6c29f471c4b866765732 (patch)
tree3ef860f261e383a862eb24c5af6d865d21229cbc /src/resume.c
parent2a5338540fc31355fa1bfa3ceb3214884e23141a (diff)
downloadseabios-hppa-40d020f56226aee7c75a6c29f471c4b866765732.zip
seabios-hppa-40d020f56226aee7c75a6c29f471c4b866765732.tar.gz
seabios-hppa-40d020f56226aee7c75a6c29f471c4b866765732.tar.bz2
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>
Diffstat (limited to 'src/resume.c')
-rw-r--r--src/resume.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resume.c b/src/resume.c
index d69429c..9ad2e4f 100644
--- a/src/resume.c
+++ b/src/resume.c
@@ -101,6 +101,8 @@ s3_resume(void)
pic_setup();
smm_setup();
+ pci_resume();
+
s3_resume_vga();
make_bios_readonly();