summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-01-20Merge two conditional expressionsMike Belopuhov
2017-01-20sdmmc sd(4) devices should be marked SID_REMOVABLE, so that eject(1) canTheo de Raadt
succeed. No downside in the bottom part of the driver. ok dlg krw
2017-01-19No need for conditionals around free(9)Mike Belopuhov
2017-01-19Zero a return value variable at the start of hifn_process() to avoidJonathan Gray
using it uninitialised in one path.
2017-01-19Export the host time to the guest, add it as a timedelta sensor in vmmci(4)Reyk Floeter
OK kettenis@ mlarkin@
2017-01-18Don't forget to free bounce buffer data when destroying the ringMike Belopuhov
2017-01-18Fixup typos reported by Adam Jeanguenat <avj at fig ! 6v6 ! org>, thanks!Mike Belopuhov
2017-01-17Add missing malloc(9) return value check in athn_node_alloc().Stefan Sperling
ok millert@ tom@
2017-01-16Let it compile with debugging enabledMike Belopuhov
2017-01-16Clean up SCSI operation status and state definesMike Belopuhov
2017-01-16Make sure we're producing a 64-bit value when shifting leftMike Belopuhov
Reported by brad and kettenis separately; Mark has even sent me a diff and told to commit it with OK kettenis.
2017-01-14Revert aml_rdpciaddr changes; breaks several machines that were workingMark Kettenis
before.
2017-01-13Add vmmci(4) (VMM control interface), a simple guest-side driver for vmm(4) VMsReyk Floeter
While we don't have ACPI in vmm(4), we need a simple way to shutdown and reboot VMs gracefully but the device also allows to add more direct communications between host and guest later. OK mlarkin@
2017-01-13syncReyk Floeter
2017-01-13Add PCI ID for vmm control interfaceReyk Floeter
OK mlarkin@
2017-01-12Execute XenStore watch callbacks on a dedicated task queueMike Belopuhov
Some watch callbacks like xen_hotplug can hog the task queue for a considerable amount of time due to XenStore interrupt driven I/O operations and running them on the system task queue causes problems with other timed operations for instance during boot. Bug reported and fix tested by ajacoutot@, thanks!
2017-01-12Rename ieee80211_mira_node_destroy() to ieee80211_mira_cancel_timeouts().Stefan Sperling
No functional change. The previous name was chosen at a time when I could not yet anticipate what this function would really end up doing. The new name should make this function's purpose more obvious, especially where it appears at strategic places in driver code.
2017-01-12Finish initial 11n support for athn(4).Stefan Sperling
The heavy lifting was done by damien@ years ago. I didn't even have to figure out what the hardware expects, the code was already there. This driver now supports MCS 0-15 in client and hostap mode. No Tx aggregation and no 40 MHz channels yet. tested by vgross@, bmercer@, tb@, jmc@, Vadim Vygonets, Peter Kay ok bmercer@ tb@ phessler@
2017-01-11Increase the size of the buffers used for _HID and _CID strings to beJonathan Gray
able to fit "Hyper_V_Gen_Counter_V1". ok mlarkin@ deraadt@
2017-01-11Use explicit_bzero() to wipe copybuffer when logging out of the console.Frederic Cambus
OK deraadt@
2017-01-10Introduce pvbus_reboot() and pvbus_shutdown() to move the repeatedReyk Floeter
tasks from the PV drivers into a central place. While here, we figured out that it is not needed to check for allowpowerdown on the hypervisor-initiated shutdown requests. OK mikeb@
2017-01-10Hyper-V hosts make 64 bytes of entropy available to guests in the formJonathan Gray
of a OEM0 ACPI table. acpihve(4) feeds this data into the kernel entropy pool. This is less interesting for machines with rdrand, but there are still pre ivy bridge machines running Hyper-V (including parts of Azure). ok mikeb@ reyk@ deraadt@ mlarkin@
2017-01-10Enable snooping on Braswell. Fixes audio distortion on Acer TravelMateJonathan Gray
B117-M. From Martin Ziemer.
2017-01-09Remove unneeded <sys/malloc.h> from Michael W. Bombardieri.Martin Pieuchot
2017-01-08Use a macro for the Tx timeout value.Visa Hankala
OK deraadt@ kettenis@
2017-01-08Make aml_rdpciaddr() work for for devices behind bridges. The code nowMark Kettenis
uses the mapping between AML nodes and PCI devices that we establish. Because _INIT methods may end up calling aml_rdpciaddr(), make sure we create that mapping early. Also handle devices that aren't actually present. These devices are now included in the mapping and reads will return an all-ones patterm whereas writes are a no-op.. ok mlarkin@
2017-01-08Display color depth alongside resolution when attaching inteldrm andFrederic Cambus
radeondrm, using the same scheme as efifb(4). OK mpi@, visa@, kettenis@
2017-01-08Make urtwn(4) use AMRR instead of letting the firmware handle rate scaling.Stefan Sperling
For now this only affects RTL8188EU chips, perhaps because the author of this patch does not own any devices containing any of the other chips (hint hint). Patch by misha aka Mikhail / mp39590 at gmail ok mpi@
2017-01-07regenMike Larkin
2017-01-07Some newer Intel Xeon E5v4 PCI ids, from Hrvoje PopovskiMike Larkin
ok deraadt
2017-01-07Remove unused MIX_CN_CIN macro, make umidi_evlen[] static, style(9).Alexandre Ratchov
From Michael W. Bombardieri. Thanks.
2017-01-05Checking whether mbuf list is empty is done by the if_input nowMike Belopuhov
2017-01-05Microsoft has allocated us a SubID that we can use to identify OpenBSDMike Belopuhov
2017-01-05Don't let producer index become equal with the consumer when writingMike Belopuhov
A nod to the re.c commit by dlg@, perhaps pure paranoia, but works nevertheless. While here replace a more expensive modulo operation with a subtraction.
2017-01-04In the set_params() routine, remove the AUDIO_ENCODING_ULINEAR caseAlexandre Ratchov
as upper layers calls it with AUDIO_ENCODING_ULINEAR_{LE,BE} only.
2017-01-04better handle empty or full rx rings.David Gwynne
currently re appears to end up spinning on landisk. the most obvious cause of this would be an inability to add entries on the rx ring when we run out of mbufs. cope with this by calling rxeof from the isr when the FIFO_OVERFLOW status bit is set. rxeof in turn unconditionally tries to fill the rx ring, even if it doesnt dequeue any packets off the ring. while here limit the number of entries that can go on the rx ring to 1 less than the size of the ring. a full ring looks the same as an empty ring (cos the producer and consumer are the same in both cases), so avoid letting this happen. ok deraadt@ who hit problems on his landisk and tested this diff
2017-01-03Add simplefb(4), a driver to support the framebuffer set up by the firmwareMark Kettenis
on some platforms that use device trees. Works on Allwinner (sunxi) and should also work on Raspberry Pi (broadcom) armv7 platforms. ok jsg@, visa@
2017-01-03No need to set use_maxpkt twice. From Michael W. Bombardieri. Thanks.Alexandre Ratchov
2017-01-03If gain is above MAX, no need to check whether it's below MIN.Alexandre Ratchov
From Michael W. Bombardieri. Thanks.
2017-01-03No need to include sys/malloc.h. From Michael W. Bombardieri. Thanks.Alexandre Ratchov
2016-12-29Eliminate 68 unused static variables that gcc complains about.Kenneth R Westerback
ok deraadt@
2016-12-27Add cast to silence warnings generated by clang.Mark Kettenis
ok mpi@
2016-12-26Fix typo, happend -> happenedJeremie Courreges-Anglas
2016-12-24Make the boot programs support booting from softraid on 4K byte sectorYASUOKA Masahiko
disks. test gonzalo ok tom krw jsing
2016-12-24Remove some unused variables that have been removed upstream as well.Mark Kettenis
Fixes some clang warnings. ok jsg@
2016-12-24Put a bit more unused code under #ifdef notyet to prevent a clang warning.Mark Kettenis
2016-12-23Define HAL_OPCODE using enum ieee80211_opmode to prevent clang from warningMark Kettenis
about an implicit enum conversion. ok stsp@
2016-12-23Add missing sentinel.Mark Kettenis
ok deraadt@
2016-12-23Hide static inline functions that are only used in debug code behind the sameMark Kettenis
#ifdef as the debug code itself. Prevents clang from warning about these functions being unused. ok stsp@, deraadt@
2016-12-23Implement disk detachingMike Belopuhov