Age | Commit message (Collapse) | Author |
|
"mainbus" device. this breaks when mpath is enabled because it
attaches before mainbus and therefore takes the head position.
have autoconf provide device_mainbus() which looks up mainbus_cd,
and use that instead.
discussed with deraadt who just wants mpath stuff to move forward
despite there being many ways to shine this particular turd.
|
|
hibernate unpack - these were added a while ago when we were fighting
different issues that have now been solved.
Tested by myself and dcoppa on a variety of machines
|
|
|
|
|
|
overloading of that thing.
the only hardware that seems to care about cylinders in our tree
are floppy drives, and the drivers for those calculate their own
cylinders from logical block addresses and ignore whatever the rest
of the kernel thought b_cylinders should be.
most of this diff is moving the floppy drivers to using b_resid as
a resid and using that as part of the calculation for real cylinder
values.
the rest of the diff is getting rid of the useless assignments to
b_cylinder that dont get used by anything (now that disksort is
gone).
ok miod@
|
|
anyway as we move toward a streamed implmentation)
|
|
is now possible to move the chunktable right after the chunks, not at
the end of the swap.
ok mlarkin
|
|
|
|
of absolute, so that we can add range checking.
ok mlarkin
|
|
|
|
|
|
|
|
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@
|