#
af7dea42 |
| 18-Nov-2011 |
jasper <jasper@openbsd.org> |
- fix a few trailing whitespaces and a spello - panic strings already get printed with a '\n', so remove the extra ones
ok mlarkin@
|
#
836caf34 |
| 18-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
fix a corner case in rle processing where the rle byte was the last byte being written to an output buffer
|
#
84caa5ff |
| 17-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
physmem run length encoding (rle) for hibernate - don't compress or write pages that are free
|
#
90f353df |
| 16-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
Reduce use of globals in hibernate code.
discussed with deraadt@
|
#
d0d915e2 |
| 15-Nov-2011 |
deraadt <deraadt@openbsd.org> |
on failure, hibernate io functions return an errno. not 1.
|
#
42015ed9 |
| 14-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
Use a fixed io_page for all hibernate I/O, which is needed for 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
Use a fixed io_page for all hibernate I/O, which is needed for 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.
show more ...
|
#
81e6fcfb |
| 13-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
Add some #defines for the various hibernate I/O modes, some of the groundwork for *_hibernate_io functions other than wd_hibernate_io
These changes were sent to me by deraadt@
|
#
95e3d60b |
| 13-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
In hibernate resume, free the piglet and other VAs we allocated during suspend.
ok pirofti@
|
#
95a70527 |
| 13-Nov-2011 |
mlarkin <mlarkin@openbsd.org> |
Fix a handful of bugs that were causing reboots and other bad behavior during hibernate resumes.
|
#
e33b04c7 |
| 22-Sep-2011 |
deraadt <deraadt@openbsd.org> |
KNF of mlarkin's code, requested by him. Some improvements to the interface for talking to the disk driver snuck in. ok mlarkin
|
#
2a168c45 |
| 21-Sep-2011 |
mlarkin <mlarkin@openbsd.org> |
Cleanup page calculation for final memory chunk ordering list for hibernate resume.
|
#
20703d53 |
| 21-Sep-2011 |
mlarkin <mlarkin@openbsd.org> |
Perform most of the remaining refactoring of hibernate code into MI/MD parts. This also introduces a chunk placement routine that was originally developed at c2k11 with help from drahn and ariane.
T
Perform most of the remaining refactoring of hibernate code into 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 :) )
show more ...
|
#
63e557a5 |
| 18-Jul-2011 |
ariane <ariane@openbsd.org> |
Allocations fit if [the end of free space] >= [the end of allocated space]. Change > in comparison to >=.
|
#
71d4e2aa |
| 18-Jul-2011 |
ariane <ariane@openbsd.org> |
Fix uvm_pmr_alloc_piglet. 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.
|
#
21e3fba6 |
| 11-Jul-2011 |
mlarkin <mlarkin@openbsd.org> |
Add hibernate_read_block and fix a couple of typos in the previous commit.
|
#
b514ebc1 |
| 09-Jul-2011 |
mlarkin <mlarkin@openbsd.org> |
Call (temporarily, until we have RLE page encoding) uvm_pmr_zero_everything on suspend to ensure we get good zlib compression.
Add MI signature block (hibernate_info) comparison routine
|
#
627cf4e5 |
| 09-Jul-2011 |
mlarkin <mlarkin@openbsd.org> |
Extract hibernate_write_signature and hibernate_clear_signature to the MI hibernate code, and add chunk range overlap checking.
|
#
d588479b |
| 09-Jul-2011 |
mlarkin <mlarkin@openbsd.org> |
Extract MI pmap function hibernate_enter_resume_mapping, refactor old i386 resume pmap code to match.
Add hibernate deflater and inflater and cache flush routines.
Code is not presently called or a
Extract MI pmap function hibernate_enter_resume_mapping, refactor old i386 resume pmap code to match.
Add hibernate deflater and inflater and cache flush routines.
Code is not presently called or automatically built.
show more ...
|
#
22378a8f |
| 09-Jul-2011 |
mlarkin <mlarkin@openbsd.org> |
Add zlib reset, alloc, and free functions for hibernate image compression
|
#
10aaff22 |
| 09-Jul-2011 |
mlarkin <mlarkin@openbsd.org> |
Separate some MD and MI bits and a bit of refactoring to make subsequent commits easier.
Work in progress, hibernate will still not work for you.
ok deraadt@
|
#
82c7a60e |
| 08-Jul-2011 |
ariane <ariane@openbsd.org> |
no reason to zero pages we are about to mark dirty
|
#
0547f1a4 |
| 08-Jul-2011 |
ariane <ariane@openbsd.org> |
Ensure all pages in pmemrange can be marked as dirty. 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
Ensure all pages in pmemrange can be marked as dirty. 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.
show more ...
|
#
f0898735 |
| 08-Jul-2011 |
ariane <ariane@openbsd.org> |
Put in RLE logic for hibernate compressor.
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@
Put in RLE logic for hibernate compressor.
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.
show more ...
|
#
0f0ce22a |
| 08-Jul-2011 |
ariane <ariane@openbsd.org> |
Change pig allocator to a highest-address selection. Add piglet allocator, which does a lowest-address selection.
No callers yet, needed by mlarkin@ for hibernate voodoo.
|
#
485235cc |
| 08-Jul-2011 |
ariane <ariane@openbsd.org> |
Move uvm_pmr_alloc_pig to kern/subr_hibernate.c
No callers, no functional change.
|