Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-03-07 | Reword some wrong comments and some improperly formatted comments and add | Mike Larkin | |
information about piglet memory layout. No functional changes. | |||
2013-03-06 | Fix a bad comparison when calculating the size of the hibernate signature | Mike Larkin | |
block ok deraadt@ | |||
2013-01-17 | Style, no functional changes. | Paul Irofti | |
Discussed with mlarkin@. | |||
2013-01-17 | Add a hibernate HIB_DONE op. After the memory-side-effect driver finishes | Theo de Raadt | |
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 | |||
2013-01-17 | increase the number of pages used to hold the chunk ordering map and change | Mike Larkin | |
the index type from int to short. Allows amd64 to hibernate with up to 64GB phys memory | |||
2013-01-17 | fix an error in the amd64 asm unhibernate code and a slight adjustment to | Mike Larkin | |
the MI hibernate code to handle 64 bit archs | |||
2012-07-19 | say that we are unhibernating.. | Theo de Raadt | |
2012-07-16 | Back out my workaround from r1.43 now that jsing has committed a better fix. | Stefan Sperling | |
2012-07-16 | Make sure we have a swap partition before trying to read or write | Joel Sing | |
hibernate info. ok mlarkin@ stsp@ | |||
2012-07-15 | Don't panic in hibernate resume if no swap partition exists on the root disk. | Stefan Sperling | |
ok mlarkin | |||
2012-07-12 | Temporarily don't do RLE page encoding in hibernate to fix some unpacking | Mike Larkin | |
corruption seen earlier. This makes hibernate much slower but seems to fix the corruption problems seen on all machines we've tested on. | |||
2012-07-11 | Enable the swap checker for hibernate | Mike Larkin | |
2012-07-09 | DVACT_SUSPEND must be done at cold with interrupts disabled. Failure | Theo de Raadt | |
to read a hibernate image should restore the spl ok mlarkin | |||
2012-07-08 | Quiesce and suspend devices in the resuming kernel for hibernate. | Mike Larkin | |
ok deraadt@ | |||
2012-07-08 | Make hibernate_free() safe to be called even if hibernate areas | Theo de Raadt | |
allocation failed ok mlarkin | |||
2012-07-08 | Reorganize some hibernate functions for easier readability. | Mike Larkin | |
Fix some incorrect/old comments. ok deraadt@ | |||
2012-06-21 | use regular i/o functions in the hibernate resume path. ahci(4) hibernate | Jonathan Matthew | |
i/o will not mix with regular i/o so it can only be used in the hibernate path. ok deraadt@ mlarkin@ | |||
2012-06-20 | Fix some hibernate issues on machines with > 3.5GB phys mem | Mike Larkin | |
ok deraadt@ | |||
2012-04-12 | hibernate: fix lock/unlock mismatch | Ariane van der Steldt | |
Unlock missed an 'f', which caused it to unlock the in-use pageqs, rather than the free pageqs as it was supposed to. | |||
2012-03-26 | Fix an integer math error when using the result of uvm_page_rle, and | Mike Larkin | |
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 | |||
2011-11-29 | ready this for big-endian support later on | Theo de Raadt | |
ok mlarkin | |||
2011-11-29 | Only free the piglet on hibernate fail if we are suspending. | Mike Larkin | |
2011-11-23 | clamp uvm_page_rle() to 255 pages at a time | Theo de Raadt | |
ok mlarkin | |||
2011-11-22 | Ensure we are unpacking the right source address after skipping a range of | Mike Larkin | |
RLE pages in hibernate. ok deraadt@ | |||
2011-11-18 | no need to zero all the free pages since we will be skipping them with | Mike Larkin | |
rle. noticed by jasper | |||
2011-11-18 | - fix a few trailing whitespaces and a spello | Jasper Lievisse Adriaanse | |
- panic strings already get printed with a '\n', so remove the extra ones ok mlarkin@ | |||
2011-11-18 | fix a corner case in rle processing where the rle byte was the last byte | Mike Larkin | |
being written to an output buffer | |||
2011-11-17 | physmem run length encoding (rle) for hibernate - don't compress or write | Mike Larkin | |
pages that are free | |||
2011-11-16 | Reduce use of globals in hibernate code. | Mike Larkin | |
discussed with deraadt@ | |||
2011-11-15 | on failure, hibernate io functions return an errno. not 1. | Theo de Raadt | |
2011-11-14 | Use a fixed io_page for all hibernate I/O, which is needed for | Mike Larkin | |
ahci_hibernate_io, a skeleton of which is also provided in this diff. This code is from deraadt@. Tested on a few wd machines to ensure it works there as well. | |||
2011-11-13 | Add some #defines for the various hibernate I/O modes, some of the | Mike Larkin | |
groundwork for *_hibernate_io functions other than wd_hibernate_io These changes were sent to me by deraadt@ | |||
2011-11-13 | In hibernate resume, free the piglet and other VAs we allocated during | Mike Larkin | |
suspend. ok pirofti@ | |||
2011-11-13 | Fix a handful of bugs that were causing reboots and other bad behavior | Mike Larkin | |
during hibernate resumes. | |||
2011-09-22 | KNF of mlarkin's code, requested by him. Some improvements to the interface | Theo de Raadt | |
for talking to the disk driver snuck in. ok mlarkin | |||
2011-09-21 | Cleanup page calculation for final memory chunk ordering list for | Mike Larkin | |
hibernate resume. | |||
2011-09-21 | Perform most of the remaining refactoring of hibernate code into | Mike Larkin | |
MI/MD parts. This also introduces a chunk placement routine that was originally developed at c2k11 with help from drahn and ariane. There are still a few more things to do for hibernate, but those can be worked on in-tree. This code is disabled by default, and not yet called. ok deraadt@ (and deraadt@ said kettenis@ also ok'ed it :) ) | |||
2011-07-18 | Allocations fit if [the end of free space] >= [the end of allocated space]. | Ariane van der Steldt | |
Change > in comparison to >=. | |||
2011-07-18 | Fix uvm_pmr_alloc_piglet. | Ariane van der Steldt | |
A wrong check could cause the piglet allocator to attempt to extract memory from a range in which the alignment caused it not to fit. | |||
2011-07-11 | Add hibernate_read_block and fix a couple of typos in the previous commit. | Mike Larkin | |
2011-07-09 | Call (temporarily, until we have RLE page encoding) uvm_pmr_zero_everything | Mike Larkin | |
on suspend to ensure we get good zlib compression. Add MI signature block (hibernate_info) comparison routine | |||
2011-07-09 | Extract hibernate_write_signature and hibernate_clear_signature to the MI | Mike Larkin | |
hibernate code, and add chunk range overlap checking. | |||
2011-07-09 | Extract MI pmap function hibernate_enter_resume_mapping, refactor old i386 | Mike Larkin | |
resume pmap code to match. Add hibernate deflater and inflater and cache flush routines. Code is not presently called or automatically built. | |||
2011-07-09 | Add zlib reset, alloc, and free functions for hibernate image compression | Mike Larkin | |
2011-07-09 | Separate some MD and MI bits and a bit of refactoring to make subsequent | Mike Larkin | |
commits easier. Work in progress, hibernate will still not work for you. ok deraadt@ | |||
2011-07-08 | no reason to zero pages we are about to mark dirty | Ariane van der Steldt | |
2011-07-08 | Ensure all pages in pmemrange can be marked as dirty. | Ariane van der Steldt | |
It'd be a very bad idea to hand out dirty pages as zeroed, just because we came back from hibernate. No callers at the moment, will be called on hibernate resume path. | |||
2011-07-08 | Put in RLE logic for hibernate compressor. | Ariane van der Steldt | |
These have the potential to compress 1MB of physmem into 1 byte. This works by noting the page is not in use and therefor skipping it. Needed by mlarkin@ for hibernate. No callers yet. | |||
2011-07-08 | Change pig allocator to a highest-address selection. | Ariane van der Steldt | |
Add piglet allocator, which does a lowest-address selection. No callers yet, needed by mlarkin@ for hibernate voodoo. | |||
2011-07-08 | Move uvm_pmr_alloc_pig to kern/subr_hibernate.c | Ariane van der Steldt | |
No callers, no functional change. |