Age | Commit message (Collapse) | Author |
|
were to be enabled, it had a bug that prevented it from working anyway.
ok deraadt@, kettenis@
|
|
with softraid(4) disks.
softraid(4) is the last real consumer of the doshutdownhooks(9) API and it is
not trivial to convert its hook to a DVACT_POWERDOWN handler since the latter
does not allow to sleep.
|
|
don't need anymore.
|
|
rebooting a machine, like it is done in the hibernate case.
At least some USB host controller drivers rely on this to busy way instead
of sleeping. Avoid a panic on macppc with an uhci(4) cardbus plugged in.
ok deraadt@, uebayashi@
|
|
ok krw@, deraadt@
|
|
suggested by Benjamin Baier (programmer (at) netzbasis.de)
ok and comment suggestion kettenis@
|
|
you need to set up a local mirror for the install sets
brought to attention by pascal@ ok krw@
|
|
it needs to be done atomicly on some MP archs and we don't have
atomic_add_int() everywhere yet. Also, mi_ast() was meant to be inline.
noted by miod@
|
|
Problem noted by Benjamin Baier (programmer (at) netzbasis.de)
improvements and ok kettenis@
|
|
ok deraadt@
|
|
ok jsg@
"go for it" kettenis@
|
|
bus_addr_t and bus_size_t are u_long everywhere
ok kettenis@
|
|
do so.
Freeing the hibernate structures too early leads to inadvertent calls into
splx when we aren't ready for them yet. Found when trapping splx calls in
the resume path.
discussed with deraadt@ at m2k14
|
|
|
|
tested by & ok mlarkin@
|
|
to avoid possible use-after-free references when swapping ids in threaded
processes. "Do I have the right creds?" checks are always made with the
threads creds.
Inspired by FreeBSD and NetBSD
"right time" deraadt@
|
|
|
|
|
|
ok mpi@ yuo@
|
|
|
|
ok kettenis@, deraadt@
|
|
call bufq_quiesce() after executing the DVACT_QUIESCE handlers.
This should be safe since no disk nor controller drivers have such
handler but it will allow us to detach sd(4) devices attached to a
USB bus.
Another benefit pointed out by kettenis@ is that drivers that need
to read a firmware from the disk should be able to do it at resume
time in a DVACT_WAKEUP handler.
ok kettenis@, deraadt@
|
|
ok dlg@ mpi@ deraadt@
|
|
the effects will be.
sgi will follow after i fix some known fallout first.
|
|
ok mpi@
|
|
so remove the former and include the latter instead of pulling it
in <dev/pci/agpvar.h>. This header already requires various other
types anyway. While here remove unneeded headers.
|
|
Tweak the handling of ktrace EMUL when changing ktracing: only
generate one per process (not one per thread) and pass the correct
proc pointer down to the VFS layer. Permit generating of NAMI and
CSW records inside ktrace(2) itself.
ok deraadt@ millert@
|
|
testing help mpi@
|
|
|
|
native size, so eliminate the #defines.
ok miod@
|
|
|
|
speed and remove the no-op cases added to avoid the warning.
We shouldn't normally hit the warning anyway, the bus speed is only
used on older i386 machines with piixpcib/ichpcib based speedstep or
to create a fake high/low table with newer style speedstep when we
can't get the table from ACPI.
ok kettenis@
|
|
used by any of the remaining xenocara drivers. Except perhaps for the
legacy i810 support in the xf86-video-intel driver. But i810 support has
almost certainly been broken for more than a year now, and any remaining
users are probably better off using the xf86-video-vesa driver ever since
XAA support was removed from the X server.
ok deraadt@, jsg@, mpi@
|
|
|
|
fairer access to the kernel lock between logical cpus, especially
in multi socket systems.
i first wrote this diff in 2011.
ok n2k14 for post 5.5 (deraadt@ and kettenis@ in particular)
|
|
tweaks jmc@
OK krw@, gilles@, lteo@, tedu@, todd@, benno@, sthen@
"The time is right." and much help getting the show on the
road 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.
|
|
optimizations really become as evil as some people claim, or some poor
soul tries to optimize things by inlining this function.
|
|
|
|
namespace, so stop changing behavior when it's #defined
ok beck@ krw@
|
|
for many newer instructions.
With feedback from jsg@
|
|
|
|
ok deraadt@
|
|
sure /dev/drm0 always matches the primary display.
ok mpi@
|
|
qle in GENERIC on i386, amd64 and sparc64, where it's reasonably well tested
and likely to be useful.
requested by deraadt@ and kettenis@, ok dlg@
|
|
|
|
it does and triggering an illegal instruction trap when it does not.
Found the hard way and fix tested by nick@
|
|
we will revisit other solutions, but not this close to release.
|
|
faults to avoid sleeping. Implement this functionality for i386 and amd64
for faults in the user address space. If the ci_inatomic flag is set in
struct cpu_info, copyin(9) and copyout(9) will return EFAULT when a user-space
address needs to be faulted in. Use this to properly implement
__copy_to_user_inatomic() and __copy_from_user_inatomic_nocache() in the
inteldrm(4) code.
ok krw@, guenther@
|
|
<machine/pmap.h> where it belongs, and compensate in <uvm/uvm_extern.h>
by including <uvm/uvm_pmap.h> before <uvm/uvm_page.h>. Tested on all
MACHINE_ARCH but amd64 and i386 (and hppa64).
|