| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
ok tedu@
|
|
|
|
| |
ok beck@ deraadt@
|
| |
|
|
|
|
|
|
| |
similar to config_defer(9).
ok mikeb@, deraadt@
|
|
|
|
|
|
| |
over the tree.
much encouragement from l2k15
|
|
|
|
| |
refcnt(9) can be used.
|
|
|
|
|
|
|
| |
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
|
|
|
| |
pointed out by deraadt@
|
|
|
|
|
|
| |
device_ref and device_unref.
ok guenther@ deraadt@
|
|
|
|
|
|
|
|
|
|
| |
pass the size of the softc to free.
this time we only dereference the cfattach structure if we actually
need it once the refcount has dropped to 0.
tested by krw@ who found the original panic r1.80 was backed out for.
putting this in again so i can find out when else will break.
|
| |
|
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on all relevant device hierarchies in the appropriate order. For now this
means mpath(4) and mainbus(4), doing mpath(4) before mainbus(4) when
suspending or powering down and doing mpath(4) after mainbus(4) when
resuming such that mpath(4) can realy on the underlying hardware being
in a functional state.
Fixes problems with unflushed disk caches on machines where mpath(4) takes
control of some of your disks.
ok dlg@
|
|
|
|
| |
ok mpi@ kspillner@
|
| |
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
|
|
|
|
|
| |
that drivers can check for this flag to know they have to stop doing
any hardware access and release their reference.
While here makes the ca_activate() function optional and propagates
DVACT_DEACTIVATE to the children of a device that do not implement this
interface like it is done during suspend/resume.
ok uebayasi@, deraadt@
|
|
|
|
| |
ok dlg@ mpi@ deraadt@
|
|
|
|
|
|
|
|
|
|
|
| |
"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.
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
|
|
| |
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people
|
| |
|
|
|
|
|
|
|
|
| |
no current code there to add or remove them. such code was put in
17 years ago, disabled 14 years ago, and removed 11 years ago, so
i suspect we dont really need it or the goop to support it.
very ok miod@
|
| |
|
|
|
|
|
|
| |
cleaning up some shutdown-hook related code on the way.
(A few drivers related to sparc are still skipped at kettenis' request)
ok kettenis mlarkin, tested by many others too
|
|
|
|
|
|
|
|
|
|
| |
paths are reflexive. It is now possible to fail part-way through a
suspend sequence, and recover along the resume code path.
Split DVACT_SUSPEND by adding a new DVACT_POWERDOWN method is used
after hibernate (and suspend too) to finish the job. Some drivers
must be converted at the same time to use this instead of shutdown hooks
(the others will follow at a later time)
ok kettenis mlarkin
|
|
|
|
|
|
|
|
| |
that's ever used it, and it's long since been changed to use
DVACT_{QUIESCE,SUSPEND,RESUME} instead.
ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it
up a few weeks ago
|
|
|
|
|
|
|
|
|
|
|
| |
sub-tree may attach or detach at a time. attach and detach will sleep
against each other.
this is fixing (working around?) some bizzare corner cases that have
been seen (but not fully diagnosed) where the device trees, disk registration
subsystem, and other things could get messed up. one could argue though
that this serialization is a very good thing; it is easier than adding piles
of locks in various other places.
ok matthew jsing
|
|
|
|
|
|
|
|
|
|
|
| |
try to reuse device unit numbers and to check that the device pointer
array is allocated and large enough.
Also, improve the panic message generated by config_detach() when we
detect that we're detaching a device that still has children.
Discussed with deraadt@ while trying to brainstorm ways that
interleaving config_attach and config_detach could blow up.
|
| |
|
|
|
|
|
|
|
|
| |
DVACT_SUSPEND, therefore DVACT_QUIECE can do standard sleeping operations
to get ready.
Discussed quite a while back with kettenis and jakemsr, oga suddenly needed
it as well and wrote half of it, so it was time to finish it.
proofread by miod.
|
|
|
|
|
|
|
|
| |
that there are interactions when we print in the various (saved, post-saved,
pre-restored, and restored) vga states, especially with how intel drm is
getting involved. If your machine has issues, you may want to activate
these messages again to help debug things better.
ok mlarkin
|
| |
|
|
|
|
|
| |
device tree walker, and add config_suspend() as well.
ok mlarkin pirofti, discussion with kettenis
|
|
|
|
| |
Okay deraadt@, kettenis@, mlarkin@.
|
|
|
|
|
|
| |
This is needed for the addition of further suspend/resume actions.
Okay deraadt@, marco@.
|
|
|
|
| |
ok marco@ deraadt@
|
|
|
|
|
|
|
|
| |
"previous" device still being there, so if we detach a device, we really
have to start from scratch again (like the comment on this code actually
says we should). Simplifies the code as a bonus.
ok dlg@, deraadt@
|
|
|
|
| |
ok miod@ deraadt@ krw@
|
|
|
|
| |
eyeballed and ok dlg@
|
|
|
|
|
| |
regular things. everyone here buys it, and i'm 90% sure miod will be
ok with it
|
|
|
|
|
|
|
| |
device_register() function -- even if it does nothing. reduces the
cpp-based blather different between architectures
idea ok'd by miod; tested on all architectures (except a few miod will
need to cleanup because he has them)
|
| |
|
|
|
|
| |
ok henning
|
| |
|
|
|
|
|
|
| |
sensors on attach/detach. hotplugd changes following in a minute.
ok henning.
|
|
|
|
|
|
| |
cd_ndevs is set to 0.
"No kidding!" deraadt@ "Seems to make sense to me." beck@ "Seems right." miod@
|
|
|
|
|
|
| |
allows cf_unit to be decremented correctly.
'put it in' deraadt@ "i think it's good' tedu@
|
|
|
|
|
|
|
|
|
|
|
| |
cd_devs[] array the same as finding a NULL entry.
Fixes inconsistant assignment of unit numbers to media slots on the
Neodio 8-in-1 USB card reader donated by Manuel Pata. Previously the
unit numbers would vary depending on whether it had attached an even
or odd number of times.
'reads ok' marco@ ok miod@
|