summaryrefslogtreecommitdiff
path: root/sys/conf
AgeCommit message (Collapse)Author
2019-10-12we are now hacking on 6.6-currentTheo de Raadt
2019-10-05src/sys/netinet/ip_ether.c is empty, and gif doesn't need it.David Gwynne
gif may have needed it when you could switch modes with gif, but now that's handled by if_etherip.c. ip_ether.c is empty, so we can plan to remove it. ok visa@ jca@ deraadt@
2019-10-04disable POOL_DEBUG for releaseJonathan Gray
ok deraadt@
2019-10-01stop this -current stuffTheo de Raadt
2019-09-29Replace dwge(4) with a new driver based on dwxe(4). There are manyMark Kettenis
similarities between the two and using a common approach helps fixing bugs. The new driver is better integrated with the device tree framework and is faster (mainly because the DMA engine is configured properly now). Tested on all currently supported variants of the hardware. ok jsg@, jmatthew@
2019-09-07Remove tz, the kernel timezone.cheloha
After removing timezone support from date(1), msdosfs, gettimeofday(2), settimeofday(2), boot_config(8), config(8), and introducing kern.utc_offset sysctl(2) to replace the DST/TIMEZONE options(4) to support running the RTC at an offset from UTC, the kernel timezone is unused and we can delete it. With this commit the kernel timezone now appears to be extinct in upstream BSD, though it does survive in XNU: https://github.com/opensource-apple/xnu/blob/0a798f6738bc1db01281fc08ae024145e84df927/bsd/conf/param.c#L83 Prompted by tedu@ some time back, and inspired by NetBSD and FreeBSD's work in this area. ok deraadt@
2019-08-21sysctl(2): add kern.utc_offset: successor to the DST/TIMEZONE options(4)cheloha
The DST and TIMEZONE options(4) are incompatible with KARL, so we need some other way to compensate for an RTC running with a known offset. Enter kern.utc_offset, an offset in minutes East of UTC. TIMEZONE has always been minutes West, but this is inconsistent with how everyone else talks about timezones, hence the flip. TIMEZONE has the advantage of being compiled into the binary. Our new sysctl(2) has no such luck, so it needs to be set as early as possible in boot, from sysctl.conf(5), so we can correct the kernel clock from the RTC's local time to UTC before daemons like ntpd(8) and cron(8) start. To encourage this, kern.utc_offset is made immutable after the securelevel(7) is raised to 1. Prompted by yasuoka@. Discussed with deraadt@, kettenis@, yasuoka@. Additional testing by yasuoka@. ok deraadt@, yasuoka@
2019-08-10really crank to 6.6-betaChristian Weisgerber
2019-08-10move to 6.6-betaTheo de Raadt
2019-08-02per-process itimers: itimerval -> itimerspeccheloha
Loongson runs at 128hz. 128 doesn't divide evenly into a million, but it does divide evenly into a billion. So if we do the per-process itimer bookkeeping with itimerspec structs we can have error-free virtual itimers on loongson just as we do on most other platforms. This change doesn't fix the virtual itimer error alpha, as 1024 does not divide evenly into a billion. But this doesn't make the situation any worse, either. ok deraadt@
2019-08-01enable tpmr(4) so people can try it.David Gwynne
2019-08-01wire up tpmr(4), an 802.1Q Two-Port MAC Relay implementationDavid Gwynne
2019-07-16Prevent integer overflow in kernel and userland when checking mbufAlexander Bluhm
limits. Convert kernel variables and calculations for mbuf memory into long to allow larger values on 64 bit machines. Put a range check into the kernel sysctl. For the interface itself int is still sufficient. In netstat -m cast all multiplications to unsigned long to hold the product of two unsigned int. input and OK visa@
2019-07-08Remove trailing whitespace from a macroMike Larkin
ok deraadt
2019-07-08uncomment aggr(4) to make it easier for people to tryDavid Gwynne
2019-07-05add aggr, but leave it commented out for now.David Gwynne
it needs to be a bit more robust before making it more available to try.
2019-07-05wire up aggrDavid Gwynne
2019-05-04Improve the interaction between efifb(4), inteldrm(4) and radeondrm(4)Mark Kettenis
when we have a serial console by introducing the notion of a "primary" graphics device. The primary graphics device is the one set up and used by firmware (BIOS, UEFI). The goal is to make sure that wsdisplay0 and drm0 reliably attach to the primary graphics device such that X works out of the box even if you have multiple cards or if you are using a serial console. This also fixes the situation where inteldrm(4) or radeondrm(4) would take over the console on UEFI systems even if the kernel was booted with a serial console. ok jsg@
2019-04-28the bufcachepercent=80 experiment has exposed a few problems...Theo de Raadt
2019-04-22disable mobileip(4)David Gwynne
it's not great in several dimensions, so this is a first step to removing it. if noone has a (reasonable) teary i'll start removing the code in a few weeks. "kill it with fire" deraadt@
2019-04-20as discussed with beck, crank dma-range bufcache to a high numberTheo de Raadt
(he suggested 90 but I prefer 80). This is so we learn the downside from user reports.
2019-04-13renable POOL_DEBUGTheo de Raadt
2019-04-13unlock tree, we are now working on 6.5-currentTheo de Raadt
2019-04-05it is POOL_DEBUG disable timeTheo de Raadt
2019-04-02Move to 6.5 release rathe than -beta. That means "pkg_add -u -Dsnap"Theo de Raadt
becomes the norm until release is out.
2019-03-18Add kubsan(4), a undefined behavior sanitizer for the kernel. It'santon
capable of detecting undefined behavior at runtime and all findings are printed to the system console, including the offending line in the source code. kubsan is limited to architectures using Clang as their default compiler and is not enabled by default. Derived from the NetBSD implementation. ok kettenis@ visa@
2019-03-18enable mpip(4)David Gwynne
ok deraadt@
2019-02-28list mpls as a depend for mpe and mpw, dont require bridge to build mpwDavid Gwynne
mpe doesnt need ether as a depend while im here.
2019-02-28add mpip(4)David Gwynne
ok claudio@
2019-02-26crank to 6.5-betaTheo de Raadt
2019-02-26Introduce safe memory reclamation, a mechanism for reclaiming sharedVisa Hankala
objects that readers can access without locking. This provides a basis for read-copy-update operations. Readers access SMR-protected shared objects inside SMR read-side critical section where sleeping is not allowed. To reclaim an SMR-protected object, the writer has to ensure mutual exclusion of other writers, remove the object's shared reference and wait until read-side references cannot exist any longer. As an alternative to waiting, the writer can schedule a callback that gets invoked when reclamation is safe. The mechanism relies on CPU quiescent states to determine when an SMR-protected object is ready for reclamation. The <sys/smr.h> header additionally provides an implementation of singly- and doubly-linked lists that can be used together with SMR. These lists allow lockless read access with a concurrent writer. Discussed with many OK mpi@ sashan@
2018-12-20add bpe(4) or Backbone Provider Edge interfacesDavid Gwynne
Backbone refers to 802.1ah or 802.1Q Provider Backbone Bridges (PBB), or mac-in-mac, which is like vlans except it completely encapsulates the inner packet rather than just add a shim to it. This removes the need for Backbone Core Bridges (ie, switches between bpe instances) to know all the addresses on all the networks.
2018-10-18Re-enable POOL_DEBUG for -current.Lawrence Teo
ok deraadt@
2018-10-13we are now working on 6.4-currentTheo de Raadt
2018-10-08POOL_DEBUG is disabled for releaseTheo de Raadt
2018-09-29unmark -beta. There is still development happening, and we aren'tTheo de Raadt
locked in stone yet, but the clock starts ticking...
2018-08-21Rework kcov kernel config. Instead of treating kcov as both an option and aanton
pseudo-device, get rid of the option. Enabling kcov now requires the following line to be added to the kernel config: pseudo-device kcov 1 This is how pseudo devices are enabled in general. A side-effect of this change is that dev/kcov.c will no longer be compiled by default. Prodded by deraadt@; ok mpi@ visa@
2018-08-10crank to 6.4-betaTheo de Raadt
2018-07-13Unveiling unveil(2).Bob Beck
This brings unveil into the tree, disabled by default - Currently this will return EPERM on all attempts to use it until we are fully certain it is ready for people to start using, but this now allows for others to do more tweaking and experimentation. Still needs to send the unveil's across forks and execs before fully enabling. Many thanks to robert@ and deraadt@ for extensive testing. ok deraadt@
2018-07-10Remove raw_usrreq and raw_cb, nothing is using them anymore.Claudio Jeker
OK mpi@
2018-07-02Allow pluart(4) to attach to acpi(4).Mark Kettenis
ok mlarkin@, patrick@
2018-04-20add a small driver for AMDs cryptographic co processor.David Gwynne
the hardware provides crypto offload, zlib offload, and an rng. this code only supports the rng at the moment. this device is present on their amd seatlle platforms, and very present on their epyc stuff. ok kettenis@ jmatthew@
2018-03-27take us to 6.3-currentTheo de Raadt
2018-03-14disable POOL_DEBUG for releaseSebastian Benoit
ok deraadt@
2018-03-14we head to release soonTheo de Raadt
2018-02-28oops, skipped a step cranking to 6.3-betaTheo de Raadt
2018-02-28move to 6.3-betaTheo de Raadt
2018-02-14prune files.* entries that refer to files not in treeJonathan Gray
ok krw@ mpi@
2018-02-14kern_mutex.c is gone.Martin Pieuchot
2018-02-07dcoppa@ and bluhm@ noted that i accidentally removed POOL_DEBUGDavid Gwynne
put it back.