summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2019-05-15Fix free(9) sizes in softraid(4)jan
OK tedu@
2019-05-15remove some use of uninitialized values pointed out by jsg@Jonathan Matthew
2019-05-15Rework tx path to allow using up to 13 segments per packet, so we don'tJonathan Matthew
have to defrag everything. While working on this I discovered both of the tx doorbells can be rung once per mcx_start() call, rather than once per packet. dlg@ helped a lot by making me read the documentation again.
2019-05-14Fix athn(4) 9280 1T2R devices; broken since my noisefloor calib commitStefan Sperling
Problem reported and fix tested by Stephane Guedon ok jca@ mpi@
2019-05-14Add free(9) sizes to ahc(4)jan
From Miod OK tedu@
2019-05-14armv7 and arm64 also have ci_idepthJonathan Gray
ok anton@
2019-05-13print a newline for attach. from f holopTed Unangst
2019-05-13enable in_irq() based checkJonathan Gray
2019-05-13add in_irq() in_interrupt() in_task()Jonathan Gray
in_irq() uses ci_idepth on archs that have it in_interrupt() is the same as in_irq() for now, linux has in_irq() for hard interrupt context and in_interrupt() is also for soft interrupt and nmi context.
2019-05-13free(9) sizes.Martin Pieuchot
From Jan Klemkow, ok tedu@
2019-05-13add idr_is_empty()Jonathan Gray
2019-05-13vmm: add host side pvclockpd
Emulate kvm pvclock in vmm(4). Compatible with pvclock(4) in OpenBSD. Linux does not attach to this (yet). Fixes by reyk@ and tested extensively by reyk@, tb@ and phessler@ ok mlarkin@ phessler@ reyk@
2019-05-12remove unused STUB definitionJonathan Gray
2019-05-12Fix 'ifconfig nwflags; These flags ended up overlapping with other flagsStefan Sperling
in ieee80211com's ic_flags because we haven't been paying attention to them (they're not in the same place in the code and hence easy to miss). Move them to a dedicated variable to avoid this problem in the future. Add a new 'stayauth' nwflag which can be set to let net80211 ignore deauth frames. This can be useful when deauth frames are being persistently spoofed by an attacker. Idea from beck@ ok beck@ phessler@
2019-05-12Make sure the extended PM register descriptions actually exist beforeMark Kettenis
using them. Fixes machines with ancient ACPI 1.0 (such as recent hypervisors). ok deraadt@
2019-05-12Add support for mapping ACPI PM registers using the "extended" gasioMark Kettenis
representation from the FADT. Mostly fixes the Lanner NCA-1510. ok lteo@, mlarkin@, deraadt@
2019-05-11Kill an unused done: label and the associated superfluous "return;"Kenneth R Westerback
statement at the end of a void function. All inside #if 0, so no effect on generated code.
2019-05-11implement dma_fence_arrayJonathan Gray
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-10Fix idr_get_next() such that idr_for_each_entry() actually works.Mark Kettenis
ok jsg@
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 more flags to the debug bitmaskPhilip Guenther
ok mpi@
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-09add free sizesBrent Cook
ok tedu
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@
2019-05-08Add ucrcom(4) a (very simple) driver for the serial console of (some)Mark Kettenis
chromebooks. ok deraadt@
2019-05-08regenMark Kettenis
2019-05-08add Google vendor IDMark Kettenis
2019-05-08Add wait_event_killable(). In linux TASK_KILLABLE only gets fatalJonathan Gray
signals, as we don't have an equivalent use PCATCH and check for all signals before and after msleep. Discussed with kettenis@.
2019-05-08Fix overflow tests such that we can allocate arrays with zero items.Mark Kettenis
Linux allows this sillyness and it is needed to make X work on the integrated graphics on the AMD Ryzen 3 PRO 2200GE APU. ok jsg@
2019-05-08add cmpxchg() with same implementation as atomic_cmpxchg()Jonathan Gray
2019-05-08We're not quite ready yet to actually detach inteldrm(4).Mark Kettenis
ok jsg@
2019-05-08add free size, the old number of mixers, when reallocating.Ted Unangst
ok deraadt mpi
2019-05-08when freeing ccbs, pass the number so we can free with the size.Ted Unangst
ok deraadt mpi