summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2019-04-30Make AK5385-related macros of ap192k cards look like julia ones.Alexandre Ratchov
As ap192k and julia cards are very similar, this change will hopefully help reusing part of the juilia codec initialization code as is in the ap192k card code. No behavior change.
2019-04-30Implement the set_rate() method for ESI Juli@ cards.Alexandre Ratchov
The set_rate method switches the AK5385 and the AK4358 chips between single-, double- or quad-speed modes depending on the host sample rate. This suppresses aliasing noise in 96kHz and 192kHz sample rates. Help and testing by Andrey Oktyabrskiy <ano at bestmx.net>. Thanks!
2019-04-30Add a "set_rate" method to the envy codec API.Alexandre Ratchov
This allows to hook card-specific codec initialization code called when the sample rate is changed. As codecs follow host clock, this method will be typically used to switch between simple-speed to double-speed modes when necessary.
2019-04-30Attach mvneta(4) on the Armada 3720 SoC.Patrick Wildt
2019-04-30Fix ESI juil@'s EEPROM contents holding default GPIO state.Alexandre Ratchov
The new GPIO state doesn't set masked bits and matches the default 48kHz sampling rate. As the codec uses the host clock, this is a no-op, but this way the code is less confusing.
2019-04-30Enable EnvyHT-specific sample rates (above 96kHz) on the host controller.Alexandre Ratchov
Tests and help from Andrey Oktyabrskiy <ano at bestmx.net>. Thanks.
2019-04-30Decrease verbosity when XHCI_DEBUG is defined.Alexandre Ratchov
ok mpi
2019-04-30Add support for the Armada 3720 pinctrl controller to mvpinctrl(4).Patrick Wildt
This controller does not only support pinmuxing, but also includes GPIO controller functionality. This is needed to e.g. turn on USB VBus on the Turris Mox. ok kettenis@
2019-04-30Add mvuart(4) to support the Armada 3720's serial console.Patrick Wildt
ok kettenis@
2019-04-30Add support for the Armada 3720 clocks to mvclock(4).Patrick Wildt
ok kettenis@
2019-04-30We are allowed to enable regulators with the "regulator-always-on"Patrick Wildt
property. The definition is that a regulator with this property should never be disabled. ok kettenis@
2019-04-30Convert a linux specific test for master in currently disabled code.Jonathan Gray
2019-04-30Add an equivalent test for master in drm_fb_helper_is_bound()Jonathan Gray
Prevents black screens on hotplugging a new display with Xorg running which required a vt switch for screens to be useable. Reported by various people on misc@. Tested by and ok sthen@
2019-04-29MC146818_GETTOD: Check for RTC rollover during read.cheloha
Because the RTC is still ticking it is theoretically possible for the second to roll over while we are reading the clock. This is basically impossible on real/practical hardware but is an interesting corner case for e.g. a VM reading an emulated MC146818 during an exit to userspace. This doesn't check *every* register, so if it takes you a multiple of 60 seconds to read the RTC this change won't help you. But you've got bigger problems at that point. "no objections" kettenis@/mlarkin@, "fine idea" deraadt
2019-04-29Extend channel dwell time during passive scans in iwn(4).Stefan Sperling
Makes scan results more reliable. testing jmc@, kmos@, Tracey Emery ok kettenis@ kevlo@ jmc@ phessler@
2019-04-28Make sure only "primary" clients can become master.Mark Kettenis
ok jsg@
2019-04-27drm/ttm: fix out-of-bounds read in ttm_put_pages() v2Jonathan Gray
From Christian Koenig 96800ba9e565ab752774cd88328f96aed28a1436 in linux 4.19.y/4.19.37 a66477b0efe511d98dde3e4aaeb189790e6f0a39 in mainline linux
2019-04-25Since we now have an attachhook, the actual interrupt handler is installedMark Kettenis
late, after we enable interrupts. If the interrupt pin used for inteldrm(4) is shared with another device, we may end up being called before the actual interrup handler is installed resulting in a null-pointer dereference. Fix this by adding an explicit check that the interrupt handler function pointer has been set. ok matthieu@, jsg@
2019-04-25Follow up on jmatthew's suggestion:Kevin Lo
in x_media_change(), return the errno from ieee80211_media_change() and do the error check from x_init(). ok stsp@, jmatthew@, phessler@
2019-04-24Add product id for the USB serial adapter found in Juniper SRX 300.remi
ok deraadt@ phessler@ sthen@
2019-04-24regenremi
2019-04-24New product id for the USB serial adapter found in Juniper SRX 300.remi
ok deraadt@ phessler@ sthen@
2019-04-24implement SIOCGIFSFFPAGE so ifconfig can get transceiver info.Jonathan Matthew
the controller has an i2c read operation that's almost exactly what we want, except it only does 64 bytes at a time, so this is pretty simple. ok dlg@
2019-04-24regenDavid Gwynne
2019-04-24add the product id for VMware NVMe interfaceDavid Gwynne
2019-04-23Since ppb(4) properly allocates bus ranges for attached devices,Patrick Wildt
the hotplug code doesn't need to do the same. Also the hotplug code only configured a single bus and did that before the proper allocation ran, so there was no chance for hotplugged ppb(4)s to have children busses. ok kettenis@
2019-04-23syncTheo de Raadt
2019-04-23shorten some stringsTheo de Raadt
2019-04-23Add support for ccp(4) at acpi(4).Mark Kettenis
ok deraadt@
2019-04-23Add support for "pinconf-single" devices and add support for bias andMark Kettenis
drive-strength properties. Needed for various HiSilicon SoCs. ok patrick@, jsg@
2019-04-23Remove file name and line number output from witness(4)Visa Hankala
Reduce code clutter by removing the file name and line number output from witness(4). Typically it is easy enough to locate offending locks using the stack traces that are shown in lock order conflict reports. Tricky cases can be tracked using sysctl kern.witness.locktrace=1 . This patch additionally removes the witness(4) wrapper for mutexes. Now each mutex implementation has to invoke the WITNESS_*() macros in order to utilize the checker. Discussed with and OK dlg@, OK mpi@
2019-04-23enable discard_backing_storage() testJonathan Gray
ok kettenis@
2019-04-23Linux code expects to find struct file in fs.h so include sys/file.hJonathan Gray
there. As sys/file.h does not have an include guard don't include it in drm_linux.c which indirectly includes fs.h via drmP.h.
2019-04-23regenJonathan Gray
2019-04-23Add more amdgpu device ids.Jonathan Gray
The marketing names in libdrm's amdgpu.ids are based on device id and revision id. A single device id often maps to multiple marketing names but the same codename so stick to codenames here. The marketing names in amdgpu.ids also do not cover all the device ids amdgpu matches on. Use the same codenames as amdgpu. Polaris 20 and Polaris 30 as Polaris 10. Polaris 21 as Polaris 11. Polaris 22 as Vega M.
2019-04-23- Update the comment describing why pci retry timeout needs to be disabledKevin Lo
- Override the default cache line size if it's set to zero from Linux ath9k ok stsp@, jmatthew@
2019-04-22Add support for official Linux device tree bindings and implement supportMark Kettenis
for the "stub" clocks that handle the CPU clock frequency on the Hi3670.
2019-04-22Configure pins.Mark Kettenis
ok patrick@
2019-04-21Timeline lock is used from interrupt context so use IPL_TTY to preventMark Kettenis
"locking against myself" panics.
2019-04-21Fix rbtree_postorder_for_each_entry_safe() implementation. Fixes crashesMark Kettenis
seen with the "intel" X driver with the new inteldrm kernel driver. ok (and with help from) jsg@
2019-04-20armv7 RAMDISK is now compiled with -Oz (just to be like other ramdisks),Theo de Raadt
so clang's rule about "static inline" comes into play. ok patrick
2019-04-20drm/ttm: Fix bo_global and mem_global kfree errorJonathan Gray
From Trigger Huang b10cc08374728ea79555a1cd98f962b0f942e942 in linux 4.19.y/4.19.36 30f33126feca0fe16df9e9302ffc28a953e2eb37 in mainline linux
2019-04-20Adapt radeondrm_detach_kms() to struct drm_device being split fromJonathan Gray
drm softc. Avoids uvm_fault() when firmware is missing and radeondrm is forcibly detached. Reported by Mihai Popescu on misc@
2019-04-17Remove unused parameter from virtio_init_vq()Stefan Fritsch
2019-04-17Initialize virtqueue before passing it to deviceStefan Fritsch
Reported by Gary Zibrat
2019-04-16When we encounter ppb(4)s that are not configured we allocate a rangePatrick Wildt
of bus numbers from the parent's bus extent. On detach, which can happen with hotplug-able devices, we should free those busses. ok kettenis@
2019-04-16i2c reads are more reliable a byte at a time.David Gwynne
reading all 256 at a time was a nice idea, but meant page 0xa2 wasnt appearing like it should. this follows what freebsd does more closely too.
2019-04-16make sff page reads work on little endian archs too. like amd64.David Gwynne
some modules seem to need more time when waiting for bytes while here. hrvoje popovski hit the endian issue
2019-04-15Use timeout_del_barrier(9) instead of timeout_del(9) followed byVisa Hankala
conditional timeout_barrier(9). OK kn@ dlg@
2019-04-15implement SIOCGIFSFFPAGE so ifconfig can get transceiver info.David Gwynne
myx doesn't allow i2c writes, so you can only read whatever page the firmware is already pointing at on device 0xa0. if you try to read another page it will return ENXIO. tested on a 10G-PCIE-8A-R with an xfp module.