summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-09Convert some malloc(9) to mallocarray(9)David Hill
ok deraadt@
2017-04-08Sensors are run as callbacks inside tasks. During suspend a sensorTheo de Raadt
could be running inside a driver that will be force-detached, or due to tsleep end up disrupting the softstate/hardstate contract. At suspend time, quisce all these callbacks by waiting for completion. This issue has never been observed for real, but may be implicated in suspend/resume failures. ok kettenis guenther mlarkin
2017-04-08Use ADDR64 opcodes to specify 64bit DMA addresses for all buffers. ThisJonathan Matthew
consumes two ring entries per segment, halving the effective size of the rings, but keeps things simple. This is required for the onboard nic on the Overdrive 1000 to work. ok kettenis@, tested on i386 by jsg@
2017-04-08A pile of sizes to free(9). In test for a few days in snapshots.Theo de Raadt
Errors will result in nice clean panic messages so we know what's wrong. Reviewed by dhill visa natano jsg.
2017-04-08Two prototypes for acpi_maptable; merge to one placeTheo de Raadt
2017-04-07Simplify the size calculation for memset()Philip Guenther
From Anton Lindqvist (anton.lindqvist(at)gmail.com)
2017-04-06Sizes for the remaining free() calls, and use mallocarray()Theo de Raadt
ok visa
2017-04-06remove stray character in previous that broke the buildJonathan Gray
2017-04-06Unify a few attach-time patterns between usb *com drivers, and removeTheo de Raadt
extra zero'ing of variables not needed because softc is pre-zero'd. ok jsg
2017-04-06add sizes to free() callsTheo de Raadt
ok dhill
2017-04-053 more mallocarray() usesTheo de Raadt
2017-04-04add a free() size near microcode loadingTheo de Raadt
2017-04-04Add 8265 and 3168 support. Both cards need new firmware files which currentlyClaudio Jeker
need to be installed by hand until the iwm-firmware package has been updated. This includes handling (by ignoring) of IWM_UCODE_TLV_FW_MEM_SEG and IWM_DEBUG_LOG_MSG firmware commands. Mostly stolen from dragonflybsd. With this in the X270 has working ethernet and wifi. Commit! deraadt@
2017-04-03provide size to free(9)Theo de Raadt
2017-04-02normalize order of arguments to if ()Theo de Raadt
2017-03-30these free() size choices appear to be wrong. joel has a diff that fixesTheo de Raadt
them, but for release let's be conservative and use 0.
2017-03-30Use m_devget(9) to replace code that does more or less the same but assumesMark Kettenis
the received packet fits in a single mbuf cluster, which isn't necessarily the case. This might fix the pool corruption seen by jcs@. ok jcs@, jmatthew@, deraadt@
2017-03-29Fix iwi(4) regressions. WPA was broken since 6.0 errata 018.Stefan Sperling
Also, the firmware was rejecting RTS frames so iwi(4) didn't work against an OpenBSD athn(4) hostap anymore; fix the config sent to firmware. Prompted by report from bg2200 at jamesjerkinscomputer on misc@ ok deraadt@
2017-03-29Remove quirks for two devices that are known to be CDC ACM protocol 0Jonathan Gray
that are now covered by the generic class matching.
2017-03-29Match on class communications subclass abstract control model protocolJonathan Gray
0 "No class specific protocol required" in addition to the existing protocol 1 "AT Commands: V.250 etc" match. This lets umodem(4) attach to the serial console on the overdrive 1000 which is a usb type-b socket on the back of the box not a db9 like the overdrive 3000.
2017-03-28Make set_params() return the rate the device is using. FixesAlexandre Ratchov
a wrong rate being reported when a unsupported rate was requested.
2017-03-28Simplify rate/channels/bits bounds checking code. FromAlexandre Ratchov
Michael W. Bombardieri <mb at ii.net>. Thanks.
2017-03-28Add quirk for MacBook Pro 5,5. From Manav Rathi <mnvrth at gmail.com>.Alexandre Ratchov
Thanks!
2017-03-27Now that hibernate_alloc() only has clean success/failure, don'tTheo de Raadt
need to call hibernate_free() to clean up a partial mess. ok mlarkin kettenis
2017-03-27If the sub-device of a softraid lacks a side-effect io function, returnTheo de Raadt
failure as early as possible. ok mlarkin claudio
2017-03-27Reject times in the first year that can be represented by the clock to catchMark Kettenis
RTC clocks that aren't battery powered. ok deraadt@, millert@, visa@, tom@
2017-03-27regenJonathan Gray
2017-03-27shorten vmm stringsJonathan Gray
ok kettenis@ reyk@
2017-03-26Add a #define needed for an upcoming vmd commit (to reflect a failureMike Larkin
when an operation was requested from vioblk host devices that is not supported except on qemu).
2017-03-26Add support for a few more Allwinner H3 clocks.Mark Kettenis
2017-03-26Add sizes to various free(9) calls. Fixing the simpler ones first.Theo de Raadt
ok natano visa
2017-03-25More PCI extended capabilities handling in pcidump.Mike Larkin
From Simon Mages ok deraadt@
2017-03-22Add some more PCI classes and subclasses. Checked against EDK2 asJonathan Gray
"PCI Code and ID Assignment Specification" is only available for those willing to pay thousands of dollars for PDFs. Prompted by a dmesg from an AMD Zen system which uses class 0x13 (Non-Essential Instrumentation) and System subclass 0x06 (IOMMU). There is currently no public documentation for AMD family 17h to reference to see if this is sane. ok kettenis@ on an earlier version
2017-03-19Improve comments slightlyMike Belopuhov
2017-03-19Fixup starting block number calculation for bounced transfersMike Belopuhov
From Nathanael Rensen, thanks!
2017-03-19Fixup return values to properly handle transfer submission errorsMike Belopuhov
From Nathanael Rensen, thanks!
2017-03-19Restore behavior from before r1.376: only set bv_percent if a rebuild isTheo Buehler
in progress. This eliminates the spurious and harmless "0% done" message in the output of 'bioctl softraid0' reported by various on misc. ok jsing
2017-03-19Enable snooping on Kaby Lake U/Y PCH HDA to avoid audio glitches as weJonathan Gray
do on all the other recent Intel platforms. ok kettenis@
2017-03-19Match the Kaby Lake and Lewisburg (Skylake-EP PCH) MACs with I219 PHYs.Jonathan Gray
Expanded version of a diff from claudio@ who tested on x270 ok kettenis@
2017-03-19regenJonathan Gray
2017-03-19Add Intel devices for Kaby Lake and 3168/8265 wlan.Jonathan Gray
ok kettenis@
2017-03-19regenJonathan Gray
2017-03-19Add AMD A1100 devices and some more qemu and virtio devices.Jonathan Gray
2017-03-17More debug goo to help tracking the use-after-free.Martin Pieuchot
2017-03-17ubcmtp(4) works because of a use-after-free. Many more drivers areMartin Pieuchot
certainly doing the same. So revert r1.85 for the moment, we're too close from the release and these bugs have been there for years. Regression reported by tb@ on bugs@
2017-03-16Print PCIe Extended Capabilities, from Simon MagesTheo de Raadt
ok kettenis mlarkin
2017-03-16vioscsi: Negotiate features during attachStefan Fritsch
While vioscsi does not support any virtio-scsi features, we need to call virtio_negotiate_features() in order to negotiate device-independent features like VIRTIO_F_RING_INDIRECT_DESC.
2017-03-16vioscsi: return XS_NO_CCB if out of spaceStefan Fritsch
If there is not enough space in the vring, don't return XS_DRIVER_STUFFUP but XS_NO_CCB, so that the operation will be retried later.