summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2019-05-11implement dma_fence_arrayJonathan Gray
2019-05-11we have never built without %b supportTheo de Raadt
2019-05-11Make rt_mpls_set() be more strict in what it accepts. Also ensure thatClaudio Jeker
the RTF_MPLS can't be toggled without rt_mpls_set() being called. While RTF_MPLS is part of RTF_FMASK it should be excluded from the flags and mask when they are applied to the route since toggling it requires a call to rt_mpls_set(). OK bluhm@ Reported-by: syzbot+86344a9e31c27aa6f15b@syzkaller.appspotmail.com
2019-05-11Fix incorrect error message.Lawrence Teo
ok kettenis@
2019-05-11Implement interrupt controller functionality in the RockchipPatrick Wildt
GPIO driver. This allows us to use the fusbtc(4) interrupt on the RockPro64. ok kettenis@
2019-05-11Add fusbtc(4) to support the Fairchild FUSB302 USB Type-C controller.Patrick Wildt
A Type-C controller has multiple tasks. Even though the orientation of the plug doesn't matter for the user, it matters for the hardware. To be able to know how to route the SuperSpeed pins you need to know which way the plug is connected. Also you need to know if you're a sink/source or device/host. To get the first connection, you toggle between the modes until you find a connection. In case you see that a sink is connected, you can turn on USB Vbus to power the sink. This driver explicitly does not implement USB's Type-C state machine, but if we get more and more of these controllers it might be worth doing. Also there's no support for Power Delivery messages yet. ok kettenis@
2019-05-11move irq_work bits into irq_work headerJonathan Gray
2019-05-11RegenAaron Bieber
2019-05-11Add the colemak keyboard layout.Aaron Bieber
OK deraadt@
2019-05-11Restore previous behavior of limiting deadlock detection to posix-styleanton
locks. ok jturner@ visa@ Reported-by: syzbot+f9f13034fd656af6c48f@syzkaller.appspotmail.com
2019-05-11socppc makes an extended visit to the bigbucket.Theo de Raadt
ok kettenis
2019-05-11Refactor efiboot into 32 and 64 bit copies.Mike Larkin
Make 2 separate efiboots, one for 32 bit and one for 64 bit to allow us to remove lots of #ifdef code. Needed to ease the development effort for random-VA linked kernels ok tedu, deraadt
2019-05-11Refactor efiboot into 32 and 64 bit copies.Mike Larkin
Make 2 separate efiboots, one for 32 bit and one for 64 bit to allow us to remove lots of #ifdef code. Needed to ease the development effort for random-VA linked kernels ok tedu, deraadt
2019-05-10Disentangle #ifdef EFIBOOT.Mike Larkin
Separate out files used by both BIOS and EFI boot modes. These files had many #ifdef EFIBOOT code paths that make it difficult to move forward with changes needed to support random base VA linked kernels. ok deraadt@
2019-05-10vmm: handle some unhandled exits for SVMpd
There were some exits for instructions that were unhandled and caused the guest to terminate if it tried to execute them. We now inject a #ud for those. Also intercept and #ud RDTSCP and INVLPGA instructions. ok mlarkin@
2019-05-10Add bsd.upgrade support to sparc64 bootloader.Claudio Jeker
OK kettenis@ deraadt@
2019-05-10Reduce number of timehands from to just two.cheloha
Reduces the worst-case error for for time values retrieved via the microtime(9) functions from 10 ticks to 2 ticks. Being interrupted for over a tick is unlikely but possible. While here use C99 initializers. From FreeBSD r303383. ok mpi@
2019-05-10Fix idr_get_next() such that idr_for_each_entry() actually works.Mark Kettenis
ok jsg@
2019-05-10On the transmit path the ethernet and ip headers might not bePatrick Wildt
in contiguous memory. Taking the pointer to the data and simply looking at the IP header by adding an offset can lead to an out- of-bounds access. Make the ieee80211 classify function copy the ethernet and ip header into stack variables to fix it. Fixes a panic for florian@ Discussed with claudio@ ok stsp@
2019-05-10Add a fallback to ehci(4)'s phy init code so that when therePatrick Wildt
is no compatible phy it tries to enable the VBus using the phy-supply property. Makes the USB ports on the RockPro64 work. ok kettenis@
2019-05-10Explicitly disable BCM4331 chips present in 2011-2012 Apple Mac systems.Brent Cook
The Mac EFI firmware enables the wireless controller, but does not disable it, so it continues to receive packets and signal interrupts. This was originally seen as an interrupt storm that consumes about 50% of CPU0 on affected machines. The issue was originally discovered in 2012 by Matthew Garret with a partial fix in Grub, then Lukas Wunner added a fix for the Linux kernel in 2016. This piggy-backs on the most-related driver (bwi) for the purpose of detection and mapping the control registers, but does not actually register the driver if the affected chip is detected. See this archived discussion for further analysis of the bug: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1165355.html ok kettenis stsp
2019-05-10regenJonathan Gray
2019-05-10add Intel Atom C3000 idsJonathan Gray
2019-05-10Add port protection support to switch(4). The behavior copies that ofakoshibe
bridge(4), where the SIOCBRDGSIFPROT ioctl can be used to add a port to up to 31 protected domains. This allows configuration by specifying a list of IDs to the 'protected' option in ifconfig(8): # ifconfig switch0 protected pair1 1,2,.. Domain membership is checked for unicast, flooded (broadcast), and local (host-network-bound, e.g. trunk) traffic. OK benno@
2019-05-10Fix prototype of upgrade(). OK benno@Claudio Jeker
2019-05-10Move bridge_filterrule() before doing the mbuf copy. Fixes a memory leakClaudio Jeker
when multiple interfaces do MAC filtering. Memory leak reported by Daniel Levai With and OK mpi@
2019-05-10simplify logic after wakeup since this variable is only manipulatedBob Beck
under lock ok guenther@
2019-05-10Check for nowait failed *after* the wakeup point, not before.Bob Beck
ok guenther@
2019-05-10Add more flags to the debug bitmaskPhilip Guenther
ok mpi@
2019-05-09If mallocing the array program header fails, give up on coredumpingPhilip Guenther
instead of panicing ok deraadt@, tedu@, mpi@
2019-05-09Ensure that pagedaemon wakeups as a result of failed UVM_PLA_NOWAITBob Beck
allocations will recover some memory from the dma_constraint range. The allocation still fails, the intent is to ensure that the pagedaemon will free some memory to possibly allow a subsequent allocation to succeed. This also adds a UVM_PLA_NOWAKE flag to allow special cases in the buffer cache to not wake up the pagedaemon until they want to. ok kettenis@
2019-05-09Unlock adjfreq(2), adjtime(2), clock_settime(2), and settimeofday(2).cheloha
clock_settime(2)/settimeofday(2) still need KERNEL_LOCK for a moment when resetting the RTC, as that's done periodically from a task under KERNEL_LOCK. Not quite sure how to approach that one yet. ok visa@ mpi@, "good stuff" tedu@, "please wait until after [tree] unlock" deraadt@
2019-05-09set up IFP using the gen3 path on pineviewJonathan Gray
Avoids crashes on boot with pineview on chipset flush due to IFP not being initialised. Diagnosed by, tested by and ok ratchov@ ok kettenis@
2019-05-09Measure poll interval with monotonic clock. ok jcs@cheloha
2019-05-09add free sizesSebastien Marie
ok tedu@
2019-05-09Correctly mask status bits in iwm's ADD_STA command response; remainingStefan Sperling
bits are used by firmware to return the BAID for a BA session. matches: Dragonfly 74d41163ddac72b0d7ea7b7873d53fe134723a12 Linux 837c4da98481d4e504b2aba077c8528fee1b6d13 ok kevlo mpi jmatthew
2019-05-09Add two sanity checks to iwm's firmware notification interrupt handler:Stefan Sperling
1) Clamp firmware-provided index into the rx ring to the size of the ring. Linux started doing this, too, to work around HW bugs in the 9000 series. (mathes Linux 5eae443eb5e2b3777582ea37c6a002171ec134d5) 2) Don't call iwm_cmd_done() if the firmware response in the Rx buffer is not recognized. We should just skip such buffers, not act on them. ok beck kevlo mpi
2019-05-09Nope, the right byte layout is happening, but we still need to figure outTheo de Raadt
a reported baddir panic. Discussed with guenther tedu kettenis millert..
2019-05-09Don't unconditionally throw away dma memory when we don't need to.Bob Beck
Noticed by me and otto@ ok tedu@
2019-05-09Add a sysctl accessor to struct pf_status. The pf_status only holds theClaudio Jeker
current status and statistics and can be exported without super-user rights via sysctl to make it easier for tools like systat to access those. OK deraadt@, sashan@
2019-05-09For filenames which are a multiple of 4 bytes long, the zero pad isTheo de Raadt
incorrectly placed underneath the last 4 bytes (and then overwritten) rather than afterwards. We got confused and followed FreeBSD's lead, which curiously increased the leakage of kernel stack from 3 bytes to 4... ok millert kettenis
2019-05-09add free sizesBrent Cook
ok tedu
2019-05-09we don't need to check rtisvalid() in these places, the functions we arePeter Hessler
protecing will do the right thing OK claudio@
2019-05-09disable stack printing for now since at least arm64 can't print themTed Unangst
reported by kettenis
2019-05-09Eliminate 'make clean' stops with 'rmdir: .: Invalid argument'.Kenji Aoyama
2019-05-09When changing device rate, send request to the clock source unit.Alexandre Ratchov
Currently we send the request to the unit indicated as clock source of the terminals, which may be a clock selector unit that doesn't support the request. Fix this by following the clock source path until the clock source unit is found.
2019-05-09Set the rate of UAC v2.0 clock units using the control interface, notAlexandre Ratchov
a random streaming iface.
2019-05-09Skip empty control interfaces when parsing descriptors.Alexandre Ratchov
Even if having multiple control interface descriptors is not allowed by the UAC spec, there's no reason to stop as long as a proper control interface was processed.
2019-05-09Implement set_rate() method for M-Audio Audiophile 192k cards.Alexandre Ratchov
It switches the AK5385 and the AK4358 chips between single-, double- or quad-speed modes depending on the host sample rate. Help and testing by Andrey Oktyabrskiy <ano at bestmx.net>. Thanks!
2019-05-09Add ucrcom(4) a (very simple) driver for the serial console of (some)Mark Kettenis
chromebooks. ok deraadt@