summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-12-18document power capacity units. from david higgsTed Unangst
then change everything from mu to u, as more traditional. ok deraadt
2014-12-18only unroll on i386 and amd64 (where confirmed to be much faster).Ted Unangst
naddy found sparc64 gets a little slower when unrolled. ok deraadt
2014-12-18use suspend_randomness() and resume_randomness()Theo de Raadt
2014-12-18Wrap more of these long lines.Reyk Floeter
2014-12-18wrap unreasonably long linesTheo de Raadt
2014-12-18The VM host might send multiple messages at once but vmt(4) onlyReyk Floeter
processed one of time per second. Change the code to process all queued messages without delay immediately. This fixes two things: a) the vmt time sensor is available on boot when ntpd -s is loaded and b) the random seeding on resume (OS_Resume message) is executed almost immediately and not delayed by about 20 seconds. ok deraadt@
2014-12-18use siphash for pf_lb. for ipv6, we stretch it out a bit, but good enough.Ted Unangst
ok reyk
2014-12-18perform cpu setperf at same position in sequence as acpi.cTheo de Raadt
2014-12-18suspend & resume RNG subsystemTheo de Raadt
2014-12-18suspend and resume the RNG (at what looks like the right spots)Theo de Raadt
ok reyk djm
2014-12-18When a VM resume occurs, request information from the VM and enqueue asTheo de Raadt
entropy - then do a RNG resume. If the VM signals a boot/reboot/suspend action, push the RNG into suspend. ok reyk djm
2014-12-18Create a suspend/resume infrastructure for the RNG. At suspend time,Theo de Raadt
process all queued entropy and create a brand new pool to prevent backtracking upon resume. At resume time, process the entropy queue (since other resume code paths which run earlier can enqueue entropy) and force all higher to reseed. ok reyk djm
2014-12-18If support is present, use rdrand() at resume time. Make the rdrand()Theo de Raadt
function easier to call. ok reyk djm
2014-12-18Change the link state change routing message generation to a taskq.Kenneth R Westerback
One less workq to worry about. Tweaks from many. ok mpi@ mikeb@
2014-12-18Merge from NetBSD r1.54 from Matthias Drochner:Martin Pieuchot
-- kick out the error-prone handcrafted single-linked list of cardbus functions; replace by a simple *array[8] -- In other words, prevent a use after free when removing a cardbus function. ok deraadt@, miod@
2014-12-18ansi function prototypes. no functional change.David Gwynne
2014-12-18white space tweaks, no functional change.David Gwynne
2014-12-18replace splhigh and a simplelock with a mutex.David Gwynne
slight tweak and testing by deraadt@ ok miod@
2014-12-18If a host controller has been detached or reported a halt condition itMartin Pieuchot
should be considered as dead. In such condition the stack no longer submits I/O or schedules any USB task for its bus. However we need an explore task to detach the root hub since only the task thread is supposed to discover buses and attach/detach devices in order to avoid races. So reset the bus' dying flag when marking it as disconnecting in order to let the task be scheduled. This should be safe because a detached or halted HC should not trigger any new interrupt. Fix a panic when detaching USB PCMCIA cards reported by Tilo Stritzky.
2014-12-18Unmap the MP hatch and ACPI resume trampolines when not in active use.Mike Larkin
ok deraadt@
2014-12-17remove lock.h from uvm_extern.h. another holdover from the simpletonlockTed Unangst
era. fix uvm including c files to include lock.h or atomic.h as necessary. ok deraadt
2014-12-17unroll loops for sha2. quite a bit faster for amd64.Ted Unangst
ok deraadt millert
2014-12-17minimal removal of simplelock to eliminate lock.h dependencyTed Unangst
2014-12-17fix/reduce header dependencies. clock.c doesn't need any of this uvm.Ted Unangst
ok deraadt kettenis
2014-12-17Avoid premature masking in the interrupt handler code that checks for removedMark Kettenis
hardware. ok mpi@, deraadt@
2014-12-17remove simplelocks (trivial)Theo de Raadt
2014-12-17delete simplelocksTheo de Raadt
2014-12-17remove simplelocksTheo de Raadt
ok tedu
2014-12-17pretty easy removal of simplelocksTheo de Raadt
ok miod (a while back)
2014-12-17remove simplelocksTheo de Raadt
ok kettenis
2014-12-17remove simplelocks useTheo de Raadt
ok kettenis mpi
2014-12-17Remove the "multicast_" prefix from the fields a multicast-only struct.Martin Pieuchot
Prodded by claudio@ and mikeb@
2014-12-17Use an interface index instead of a pointer for multicast options.Martin Pieuchot
Output interface (port) selection for multicast traffic is not done via route lookups. Instead the output ifp is registred when setsockopt(2) is called with the IP{V6,}_MULTICAST_IF option. But since there is no mechanism to invalidate such pointer stored in a pcb when an interface is destroyed/removed, it might lead your kernel to fault. Prevent a fault upon resume reported by frantisek holop, thanks! ok mikeb@, claudio@
2014-12-17Prefer MADV_* over POSIX_MADV_* in kernel for consistency: the latterPhilip Guenther
doesn't have all the values and therefore can't be used everywhere. ok deraadt@ kettenis@
2014-12-17delete archaic simplelock use.Theo de Raadt
ok miod
2014-12-17Do as the datasheet recommends and disable the RX filter before adjustingBrad Smith
the RX filter. From FreeBSD
2014-12-16Temporarily expand the pci memory range to suit Dell 13G servers.Jonathan Matthew
They have devices outside the 36 bit range that their firmware needs to talk to, and they get constant acpi interrupts if it can't. We should get the necessary ranges via ACPI, but for now just make the allowed range bigger. ok kettenis@ deraadt@
2014-12-16don't include lock.h by default. poisons namespace. ok deraadtTed Unangst
2014-12-16Do not grab the kernel lock for clock interrupts, hardclock() will behaveMiod Vallat
correctly without. Modeled after sparc64 logic.
2014-12-16must include lock.h to play with locksTed Unangst
2014-12-16these headers do not need to (and should not) include lock.h poisoningTed Unangst
the namespace. ok deraadt
2014-12-16include atomic.h to get atomic operations (virtio_membar). ok sfTed Unangst
2014-12-16Define and print HV cpuid flag.Stefan Fritsch
This is set by many hypervisors, including kvm, vmware, hyper-v.
2014-12-16must include lock.h if you want to play with locksTed Unangst
2014-12-16only need lock.h here, not all of uvm_extern.hTed Unangst
2014-12-16primary change: move uvm_vnode out of vnode, keeping only a pointer.Ted Unangst
objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt
2014-12-16Protect memory allocation and disposal with splvm(); gets rid of splassertMiod Vallat
complaints during boot on i386. ok stsp@
2014-12-15don't drop the kernel lock everytime. on a busy system, this results inTed Unangst
the reaper spending more than half its time in uvm_pause. we want the system to be interactive, but we want throughput too. this seems like a decent balance.
2014-12-15Consistency with the pci_intr_map bits.Brad Smith
ok sf@
2014-12-15Stop using usb_{alloc,free}mem() for the rings and internal structures.Martin Pieuchot
Since xhci(4) does not allocate memory for its rings in interrupt context, it has no use for the free lists offered by the USB memory allocator. Using bus_dmamem_alloc(9) and friends also allows us to respect the boundary requirement for the various structures specified in Table 54. While here make use of defines for every alignment and boundary requirements which are different than a page size.