#
3f4becef |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
In hibernate_write_chunks(), keep track of relative block numbers instead of absolute, so that we can add range checking. ok mlarkin
|
#
ea368e9e |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
spacing
|
#
b687eefd |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
return the known error, instead of EIO
|
#
eaf4a78c |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
shorten dev_t in hib_info
|
#
908847d1 |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
shorten variable name for the hibernate info struct, throughout. Much easier to read now. ok mlarkin
|
#
cbe71649 |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
use DEV_BSIZE instead of "secsize" ok mlarkin
|
#
a1645687 |
| 06-Nov-2013 |
deraadt <deraadt@openbsd.org> |
teach the side-effect free drivers about the partition they are dealing by passing a start/length in the HIB_INIT op. Then rebase all hibernate-time block offsets to be relative to the start of that
teach the side-effect free drivers about the partition they are dealing by passing a start/length in the HIB_INIT op. Then rebase all hibernate-time block offsets to be relative to the start of that partition. This simplifies things a lot. ok mlarkin
show more ...
|
#
fec4174d |
| 06-Nov-2013 |
mlarkin <mlarkin@openbsd.org> |
Errant assignment that snuck in long ago. Pointed out by deraadt@
|
#
4b6eb321 |
| 05-Nov-2013 |
mlarkin <mlarkin@openbsd.org> |
Change an #if 0 surrounding a debug printf into a DPRINTF instead.
|
#
73ac9b72 |
| 05-Nov-2013 |
deraadt <deraadt@openbsd.org> |
new function uvm_hibswap() finds a the largest free zone in swap, which hibernate can use place the data. ok mlarkin
|
#
862ef960 |
| 05-Nov-2013 |
krw <krw@openbsd.org> |
Replace direct references to p_size, p_offset and d_secperunit with DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in order to get|set correct value that includes the high bits of th
Replace direct references to p_size, p_offset and d_secperunit with DL_[GET|SET]PSIZE(), DL_[GET|SET]POFFSET(), DL_[GET|SET]DSIZE() in order to get|set correct value that includes the high bits of the value.
show more ...
|
#
a3fa4d81 |
| 20-Oct-2013 |
mlarkin <mlarkin@openbsd.org> |
Informational message on unpack start
|
#
4d2d2571 |
| 20-Oct-2013 |
mlarkin <mlarkin@openbsd.org> |
Provide more debugging aids when failing to read the packed image from disk during hibernate resume.
requested by deraadt
|
#
491851bf |
| 20-Oct-2013 |
mlarkin <mlarkin@openbsd.org> |
DPRINTFs for various failure cases, disabled by default (uncomment HIB_DEBUG to see these)
|
#
bb6f9680 |
| 20-Oct-2013 |
mlarkin <mlarkin@openbsd.org> |
Flush the cache after bouncing the inflate page to the piglet.
Fixes resume time stream corruption seen on x230 with large (16GB) unhibernation
|
#
b484ab48 |
| 20-Oct-2013 |
mlarkin <mlarkin@openbsd.org> |
Use a second inflate page for stream finalize, since it is possible (though unlikely) for the end of stream marker to overflow from one page. This should fix a few (but not all) spurious failure-to-h
Use a second inflate page for stream finalize, since it is possible (though unlikely) for the end of stream marker to overflow from one page. This should fix a few (but not all) spurious failure-to-hibernate errors.
Also remove an unnecessary cache flush during deflate.
ok deraadt
show more ...
|
#
96cbc698 |
| 03-Oct-2013 |
mlarkin <mlarkin@openbsd.org> |
Adds DPRINTF/DNPRINTF macros to hibernate, and adds invocation of said macros in various places to assist in debugging "failure to hibernate" errors.
Macros are disabled by default - Uncomment #defi
Adds DPRINTF/DNPRINTF macros to hibernate, and adds invocation of said macros in various places to assist in debugging "failure to hibernate" errors.
Macros are disabled by default - Uncomment #define HIB_DEBUG if you want more verbose messages during hibernate.
show more ...
|
#
39502a33 |
| 29-Sep-2013 |
mlarkin <mlarkin@openbsd.org> |
Print out the compressed image size during unhibernate, for diagnostic purposes and to give the user an idea as to how much is going to be read in.
|
#
1e419546 |
| 01-Jun-2013 |
mlarkin <mlarkin@openbsd.org> |
Work around stack smash protector getting confused because we switched stacks by not returning (ever) from hibernate_unpack_image.
|
#
e5033bc8 |
| 01-Jun-2013 |
mlarkin <mlarkin@openbsd.org> |
Change return codes in various hibernate functions to be able to later distinguish one failure path from another. Comment the same.
Also removed some extraneous comments regarding pmap_activate.
|
#
9ecd98c6 |
| 31-May-2013 |
mlarkin <mlarkin@openbsd.org> |
We need to halt the APs on MP hibernate resume or else they will be executing code possibly causing side effects during the image unpack operation. But before we can halt the APs, we need to complete
We need to halt the APs on MP hibernate resume or else they will be executing code possibly causing side effects during the image unpack operation. But before we can halt the APs, we need to complete their init (as they will be hatched but idling, possibly with interrupts off).
Introduces MD function hibernate_quiesce_cpus to do this, called from the MI hibernate resume code.
ok deraadt
show more ...
|
#
52f9d053 |
| 30-May-2013 |
mlarkin <mlarkin@openbsd.org> |
Make interrupt handling in hibernate resume MI by providing MD-specific functions to enable and disable interrupts, if needed. If a platform doesnt need interrupt handling in this way, the MD functio
Make interrupt handling in hibernate resume MI by providing MD-specific functions to enable and disable interrupts, if needed. If a platform doesnt need interrupt handling in this way, the MD function can be a no-op.
discussed with pirofti and deraadt
show more ...
|
#
c558d415 |
| 30-May-2013 |
mlarkin <mlarkin@openbsd.org> |
Comment a KASSERT whose purpose wasn't immediately apparent
|
#
86840a47 |
| 09-Apr-2013 |
mlarkin <mlarkin@openbsd.org> |
Add a magic number to the head of the signature block. Check for magic number match during signature block read during speculative unhibernate on boot. If the magic number matches but we have otherwi
Add a magic number to the head of the signature block. Check for magic number match during signature block read during speculative unhibernate on boot. If the magic number matches but we have otherwise chosen to not unhibernate (due to kernel/memory mismatch), clear the signature block early to avoid accidentally trying to unhibernate on subsequent boots. This prevents accidental unhibernates and endless unhibernate/reboot cycles.
Add a define for HIBERNATE_DEBUG for various debugging printfs (disabled by default).
Finally, change some KASSERTs to warning printfs (they probably shouldn't have been KASSERTs in the first place).
"looks good" deraadt@
show more ...
|
#
c05da6bf |
| 28-Mar-2013 |
deraadt <deraadt@openbsd.org> |
sys/param.h gets you sys/types.h automatically
|