Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Kyle Moffett
Date: Friday, September 21, 2007 - 4:19 pm

On Sep 21, 2007, at 17:16:59, Jeremy Maitin-Shepard wrote:

I think that in order for this to work, there would need to be some  
ABI whereby the resume-ing kernel can pass its entire ACPI state and  
a bunch of other ACPI-related device details to the resume-ed kernel,  
which I believe it does not do at the moment.  I believe that what  
causes problems is the ACPI state data that the kernel stores is  
*different* between identical sequential boots, especially when you  
add/remove/replace batteries, AC, etc.

Since we currently throw away most of that in-kernel ACPI interpreter  
state data when we load the to-be-resumed image and replace it with  
the state from the previous boot it looks to the ACPI code and  
firmware like our system's hardware magically changed behind its  
back.  The result is that the ACPI and firmware code is justifiably  
confused (although probably it should be more idempotent to begin  
with).  There's 2 potential solutions:
   1) Formalize and copy a *lot* of ACPI state from the resume-ing  
kernel to the resume-ed kernel.
   2) Properly call the ACPI S4 methods in the proper order

Neither one is particularly easy or particularly pleasant, especially  
given all the vendor bugs in this general area.  Theoretically we  
should be able to do both, since one will be more reliable than the  
other on different systems depending on what kinds of firmware bugs  
they have.

Cheers,
Kyle Moffett

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Eric W. Biederman, (Thu Sep 20, 7:55 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Eric W. Biederman, (Thu Sep 20, 8:33 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Eric W. Biederman, (Thu Sep 20, 9:01 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Eric W. Biederman, (Thu Sep 20, 9:46 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Rafael J. Wysocki, (Fri Sep 21, 4:56 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 5:09 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 5:10 am)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Rafael J. Wysocki, (Fri Sep 21, 5:18 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 7:31 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 8:50 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Jeremy Maitin-Shepard, (Fri Sep 21, 11:11 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 12:00 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 1:15 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Jeremy Maitin-Shepard, (Fri Sep 21, 1:26 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 1:53 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Jeremy Maitin-Shepard, (Fri Sep 21, 2:08 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Jeremy Maitin-Shepard, (Fri Sep 21, 2:16 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Fri Sep 21, 2:25 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Kyle Moffett, (Fri Sep 21, 4:19 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Sat Sep 22, 3:34 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Sat Sep 22, 3:40 am)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Sat Sep 22, 2:51 pm)
Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexe ..., Nigel Cunningham, (Wed Sep 26, 11:35 pm)
Re: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibern ..., Rafael J. Wysocki, (Wed Oct 24, 1:38 pm)