| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
| |
easier to read now.
ok mlarkin
|
|
|
|
| |
ok mlarkin
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
hibernate can use place the data.
ok mlarkin
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
during hibernate resume.
requested by deraadt
|
|
|
|
| |
HIB_DEBUG to see these)
|
|
|
|
|
| |
Fixes resume time stream corruption seen on x230 with large (16GB)
unhibernation
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
purposes and to give the user an idea as to how much is going to be read
in.
|
|
|
|
| |
stacks by not returning (ever) from hibernate_unpack_image.
|
|
|
|
|
|
| |
distinguish one failure path from another. Comment the same.
Also removed some extraneous comments regarding pmap_activate.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
| |
information about piglet memory layout. No functional changes.
|
|
|
|
|
|
| |
block
ok deraadt@
|
|
|
|
| |
Discussed with mlarkin@.
|
|
|
|
|
|
| |
IO to the disk, DVACT_RESUME the controller back to normal operation. That
allows us to do the full DVACT_POWERDOWN sequence afterwards.
ok mlarkin
|
|
|
|
|
| |
the index type from int to short. Allows amd64 to hibernate with up to 64GB
phys memory
|
|
|
|
| |
the MI hibernate code to handle 64 bit archs
|
| |
|
| |
|
|
|
|
|
|
| |
hibernate info.
ok mlarkin@ stsp@
|
|
|
|
| |
ok mlarkin
|
|
|
|
|
| |
corruption seen earlier. This makes hibernate much slower but seems to fix
the corruption problems seen on all machines we've tested on.
|
| |
|
|
|
|
|
| |
to read a hibernate image should restore the spl
ok mlarkin
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
| |
allocation failed
ok mlarkin
|
|
|
|
|
|
| |
Fix some incorrect/old comments.
ok deraadt@
|
|
|
|
|
|
|
| |
i/o will not mix with regular i/o so it can only be used in the hibernate
path.
ok deraadt@ mlarkin@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
| |
Unlock missed an 'f', which caused it to unlock the in-use pageqs, rather
than the free pageqs as it was supposed to.
|
|
|
|
|
|
|
|
|
|
| |
at the same time increase said function's max RLE page count return value.
Add hooks in the right places to call the hibernate suspend and resume
routines, so that we can enable hibernation with a HIBERNATE option
line in GENERIC and appropriate acpi.c goo.
discussed on and off with deraadt@ over the past few months
|
|
|
|
| |
ok mlarkin
|
| |
|
|
|
|
| |
ok mlarkin
|
|
|
|
|
|
| |
RLE pages in hibernate.
ok deraadt@
|
|
|
|
|
|
| |
rle.
noticed by jasper
|
|
|
|
|
|
| |
- panic strings already get printed with a '\n', so remove the extra ones
ok mlarkin@
|