summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2015-12-21add virtio-console driverStefan Fritsch
This patch adds a new driver for use of virtio-console devices as ttys. It's still in an early state and not compiled by default, yet. Currently it is only wired into amd64. i386 is still missing. Discussed with uebayasi@, deraadt@
2015-12-21Move ppp, nmea, endrun, and msts prototypes to tty.hStefan Fritsch
Fix inconsistent arguments for pppopen/pppclose/pppstart. Use passed in argument p in pppopen instead of curproc. "Looks good to me" deraadt@
2015-12-21Goto a loop_end label rather than using a continue statement for anmmcc
error condition in an inner loop. Found with Coccinelle. Pointed out by tedu@, ok kettenis@ and deraadt@ about three months ago.
2015-12-21Introduce xen_intr_mask and xen_intr_unmask primitivesMike Belopuhov
Mask the event port during xen_intr_establish, but don't set the masked flag in the intsrc. By providing mask and unmask routines we allow the device to decide when to perform these actions. The port will still be unmasked during xen_intr_enable. This allows netfront to fulfil the intr_barrier pattern requirements fairly easily and at the same time should be sufficient for diskfront that doesn't need to fiddle with interrupt masking.
2015-12-21Cleanup hypercall subsystem type definesMike Belopuhov
2015-12-21Don't unmask the port in xen_intr_establishMike Belopuhov
2015-12-21Pass the destination and mask to rtable_mpath_reprio() in order to notMartin Pieuchot
use ``rt_node'' with ART.
2015-12-20size for free, sent and reminded by Mathieu. also delete null check.Ted Unangst
2015-12-20Advertise support for DRM version 1.4. We have support for all the necessaryMark Kettenis
features, and some code (such as the Xorg modesetting driver) actually checks the version. With this change the PCI-based probe method in that driver works. ok jsg@
2015-12-20Do not delay video(4) attachment if the device does not need to loadMartin Pieuchot
a firmware. Regression spotted by deraadt@
2015-12-20Simple free(9) sizes, from Matthieu <naabed AT poolp DOT org>.Martin Pieuchot
2015-12-19Replace 'arc4random() % x' by 'arc4random_uniform(x)'.tb
Diff by Matthew Martin, thanks! ok djm@, tedu@
2015-12-19make things fit, by skipping pcn* for now -- randomly firing a driver.Theo de Raadt
2015-12-19move to 5.9-betaTheo de Raadt
2015-12-19Remove code that has been unused ever since we removed the agp ioctl interface.Mark Kettenis
ok mpi@
2015-12-19Move agp_generic_enable() prototype to agpvar.h to unbreak the build onMark Kettenis
macppc.
2015-12-19Prevent GPU lockups with KMS & AGP-enable on Uninorth (G4) machines.Martin Pieuchot
Based on linux commit 5613beb46d54da6ef7f1c4589e9f2e60eeb10721 found by jsg@. KMS is now usable on Uninorth machines but X11 output is still corrupted. ok kettenis@
2015-12-19Enable agp(4), this makes X11 usable on my Dual G5 with radeondrm(4).Martin Pieuchot
ok kettenis@
2015-12-19Do not match Uninorth bridges until we have a working KMS with AGPMartin Pieuchot
support for G4 machines. This allows us to enable agp(4) again for G5 machines. ok kettenis@
2015-12-19Make carp_output() mpsafe.Martin Pieuchot
This is needed in order to fully unlock ARP processing with carp(4) interfaces as found the hardway by sthen@. ok sthen@, dlg@
2015-12-19Add xs_setprop to set device propertiesMike Belopuhov
2015-12-19Fixup a few bugs in xen_intr_{establish,disestablish}Mike Belopuhov
xen_intr_establish was using a variable that hasn't got its value updated in the supplementary check for event channel port unmasking. xen_intr_disestablish didn't save and correctly check the return value of xen_lookup_intsrc call and was incorrectly indexing into the pending event channel port bitmap.
2015-12-18Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexMark Kettenis
introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
2015-12-18Fix SO_REUSE* flags effects when binding multicast addresses. NoVincent Gross
regression observed on avahi. ok benno@
2015-12-18Fix urtw(4) on big-endian architectures. Patch by Cedric Tessier.Stefan Sperling
Tested by Cedric on macppc/i386, and by myself on macppc.
2015-12-18Make ix(4) mpsafer. Take advantage of intr_barrier() to eliminate the mutexMark Kettenis
introduced in the previous step, and use atomic instructions to make the tx completion path mpsafe as well. ok claudio@, mpi@
2015-12-18Remove two error-on-NULL conditions for allocations that can't fail.mmcc
ok visa@
2015-12-18Remove leftover prototype.Visa Hankala
ok mpi@
2015-12-18A store to FPA does not need splnet(). The operation is atomic.Visa Hankala
2015-12-18unnoccupied->unoccupiedStuart Henderson
2015-12-18Convert arc4random() to arc4random_uniorm(). Diff by Matthew Martin.tb
Ensure that arc4random_uniform() doesn't loop by redefining ND6_MAX_DESYNC_FACTOR to be 512, the largest power of two smaller than the RFC-specified 600 seconds. Suggested by florian@ and deraadt@ ok florian@, sthen@ in this form, arc4random change ok djm@, tedu@
2015-12-18Prevent uvm_fault() when hitting a breakpoint by restoring the originalGerhard Roth
page protection bits. Go ahead, mlarkin@
2015-12-18Fix out of bounds array access in ieee80211_setbasicrates().Stefan Sperling
found by + ok jsg@
2015-12-18Remove an error-on-NULL condition after a mallocarray() call that cannotmmcc
fail. This codepath doesn't exist upstream, so it's fine to change. ok jsg@
2015-12-17Make the cost of moving a process to the primary cpu a bit higher. This isMark Kettenis
the CPU that handles most hardware interrupts but we don't account for that in any way in the scheduler. So processes (and kernel threads) that are unlucky enough to end up on this CPU will get less CPU cycles than those running on other CPUs. This is especially true for the softnet taskq. There network interrupts will prevent the softnet taskq from running. This means that the more packets we receive, the less packets we can actually process and/or forward. This is why "unlocking" network drivers actually decreases the forwarding performance. This diff restores most of the lost performance by making it less likely that the softnet taskq ends up on the same CPU that handles network interrupts. Tested by Hrvoje Popovski ok mpi@, deraadt@
2015-12-17sprinkling ifndef __linux__ around two variable declarations could notTed Unangst
possibly make this driver portable
2015-12-17s/expresion/expression/gmmcc
2015-12-17add a size to free. from MathieuTed Unangst
2015-12-17arrays decay to pointers without needing &Ted Unangst
2015-12-17no need to check null before freeTed Unangst
2015-12-17add ktrace to kevent. ok guentherTed Unangst
2015-12-17add size to free. from MathieuTed Unangst
2015-12-17rm a bit more trailers code. no longer accept them as alias for ethernet.Ted Unangst
ok mpi
2015-12-17If CORB/RIRB are not running, log error message unconditonnalyAlexandre Ratchov
and return error. From Alexey Suslikov <alexey.suslikov at gmail.com>
2015-12-17Add display brightness support. This is available on the last few generationsMark Kettenis
of Thinkpads (x220 and later) and using means the brightness level is coordinated properly with the firmware. This gets rid of the surprising brightness changes that would sometimes happen if you used the brightness keys or if the firmware decided to reset the brightness level for some other reason. ok tedu@, jung@, naddy@
2015-12-17Missing include, spotted by benoit@Martin Pieuchot
2015-12-17Move vcpu register state init to vmd. Allows vmd bootloader to make theMike Larkin
decision as to how the vcpu should be set up for initial start and reset. Also removes some hardcoded register constants from vmm(4). ok jsing@, mpi@
2015-12-17Use config_mountroot(9) instead of startuphook_establish(9).Martin Pieuchot
Fix a regression reported by Ian Mcwilliam on tech@
2015-12-16Remove the solbourne entries now that all its code is gone.mmcc
ok deraadt@
2015-12-16in pledged process, setuid/setgid/sticky bits should be ignored.Sebastien Marie
enforce it for open(2) when used with O_CREAT and mode. ok deraadt@