#
45a1a30e |
| 07-Nov-2022 |
robert <robert@openbsd.org> |
introduce a new kern.autoconf_serial sysctl that can be used by userland to monitor state changes of the kernel device tree
input from dnd ok dlg@, deraadt@
|
#
3c78bc94 |
| 07-Apr-2022 |
tb <tb@openbsd.org> |
Fix kernel builds with pseudo-device rd
Make the cf_attach member of struct cfdata const and sprinkle a few const into subr_autoconf.c to make this work. Fixes the compilation of sys/dev/rd.c with n
Fix kernel builds with pseudo-device rd
Make the cf_attach member of struct cfdata const and sprinkle a few const into subr_autoconf.c to make this work. Fixes the compilation of sys/dev/rd.c with newly const rd_ca.
ok miod (who had a similar diff)
show more ...
|
#
27b5a9d5 |
| 26-Oct-2021 |
deraadt <deraadt@openbsd.org> |
Improve unhibernate performance (30% on some machines, another upcoming diff shows gains up to 50%) by skipping attach of irrelevant devices, which are tagged CD_SKIPHIBERNATE in the per-driver cfdri
Improve unhibernate performance (30% on some machines, another upcoming diff shows gains up to 50%) by skipping attach of irrelevant devices, which are tagged CD_SKIPHIBERNATE in the per-driver cfdriver. In particular, usb devices are not attached, so they don't need to detach during the suspend-unpack-resume. New bootblocks are required (which tell the kernel it's job is unhibernate before configure runs) tested by various
show more ...
|
#
82fff5fa |
| 30-Dec-2019 |
jsg <jsg@openbsd.org> |
convert infinite msleep(9) to msleep_nsec(9)
ok mpi@
|
#
55119c6d |
| 05-Dec-2018 |
mpi <mpi@openbsd.org> |
free(9) sizes for softcs.
ok tedu@
|
#
14bf419f |
| 14-Mar-2016 |
krw <krw@openbsd.org> |
Change a bunch of (<blah> *)0 to NULL.
ok beck@ deraadt@
|
#
9a15d173 |
| 20-Dec-2015 |
mpi <mpi@openbsd.org> |
Simple free(9) sizes, from Matthieu <naabed AT poolp DOT org>.
|
#
ef89f9e6 |
| 11-Dec-2015 |
mpi <mpi@openbsd.org> |
Replace mountroothook_establish(9) by config_mountroot(9) a narrower API similar to config_defer(9).
ok mikeb@, deraadt@
|
#
d6568aef |
| 11-Sep-2015 |
dlg <dlg@openbsd.org> |
back out refcnt for dv_ref, there's too many hand crafted devices all over the tree.
much encouragement from l2k15
|
#
2f6cefef |
| 11-Sep-2015 |
dlg <dlg@openbsd.org> |
use refcnts for the device reference counts as an example of how refcnt(9) can be used.
|
#
21dab745 |
| 14-Mar-2015 |
jsg <jsg@openbsd.org> |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
#
4d39a5cf |
| 09-Feb-2015 |
dlg <dlg@openbsd.org> |
you need atomic.h to do atomic things.
pointed out by deraadt@
|
#
ffc71247 |
| 09-Feb-2015 |
dlg <dlg@openbsd.org> |
use atomic ops to increment and decrement the device ref count in device_ref and device_unref.
ok guenther@ deraadt@
|
#
35486686 |
| 22-Jan-2015 |
dlg <dlg@openbsd.org> |
bring back r1.80:
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 o
bring back r1.80:
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.
show more ...
|
#
9c4f9e8b |
| 19-Jan-2015 |
deraadt <deraadt@openbsd.org> |
back it out properly
|
#
9d2af10d |
| 19-Jan-2015 |
deraadt <deraadt@openbsd.org> |
never tested with a make release
|
#
b0eecd7a |
| 19-Jan-2015 |
dlg <dlg@openbsd.org> |
pass the size of the softc to free.
ok deraadt@
|
#
20d92199 |
| 18-Sep-2014 |
kettenis <kettenis@openbsd.org> |
Introduce config_suspend_all(9) a function that invokes config_suspend(9) on all relevant device hierarchies in the appropriate order. For now this means mpath(4) and mainbus(4), doing mpath(4) befo
Introduce config_suspend_all(9) a function that invokes config_suspend(9) 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@
show more ...
|
#
7f58a11f |
| 14-Sep-2014 |
jsg <jsg@openbsd.org> |
remove uneeded proc.h includes ok mpi@ kspillner@
|
#
47e7ee29 |
| 13-Jul-2014 |
tedu <tedu@openbsd.org> |
use mallocarray where arguments are multipled. ok deraadt
|
#
9e8577e7 |
| 12-Jul-2014 |
tedu <tedu@openbsd.org> |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
#
b62fa43d |
| 12-Jul-2014 |
mpi <mpi@openbsd.org> |
Change config_deactivate(9) to always unset the DVF_ACTIVE flag so that drivers can check for this flag to know they have to stop doing any hardware access and release their reference.
While here ma
Change config_deactivate(9) to always unset the DVF_ACTIVE flag so 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@
show more ...
|
#
2df76cc2 |
| 29-Mar-2014 |
guenther <guenther@openbsd.org> |
It's been a quarter century: we can assume volatile is present with that name.
ok dlg@ mpi@ deraadt@
|
#
c3f3b0fe |
| 13-Mar-2014 |
dlg <dlg@openbsd.org> |
get rid of the assumption that the head of the alldevs list is the "mainbus" device. this breaks when mpath is enabled because it attaches before mainbus and therefore takes the head position.
have
get rid of the assumption that the head of the alldevs list is the "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.
show more ...
|
#
8e46bee9 |
| 12-Dec-2013 |
guenther <guenther@openbsd.org> |
printf(variable) --> printf("%s", variable)
ok deraadt@
|