summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2018-04-27Print index as unsigned.Martin Pieuchot
2018-04-27Fix an off-by-one in xhci_xfer_tdsize().Martin Pieuchot
While here use UE_GET_SIZE() coherently. ok pirofti@, stsp@, visa@
2018-04-27Remove duplicate device identification so my usb drive attaches as a umassTheo Buehler
and not as a uplcom. From mpi, ok deraadt, no objection kettenis
2018-04-27Delete superfluous includes of <sys/file.>Philip Guenther
ok krw@
2018-04-27The i.MX8M has the same quirk as the i.MX6SX, where the CAP1 registerPatrick Wildt
spills into the CAP register.
2018-04-27Newer fec(4), like implemented on i.MX8M, have multiple interrupt linesPatrick Wildt
to the ethernet controller for different types of events. On the i.MX8M interrupts only seem to happen on the last interrupt, while the i.MX6 that we support very well only has a single interrupt line. Simply establish all three lines (if available) in a non-MPSAFE fashion to make ethernet work on the i.MX8M SoC. ok kettenis@
2018-04-27implement test for running in a hypervisor on amd64/i386Jonathan Gray
2018-04-26net80211: stub SIOCS80211SCAN, make ifconfig scan instant.Paul Irofti
The following removes the functionality of the SIOCS80211SCAN ioctl. After long discussions with stps@, mpi@, and deraadt@ we decided that this was the correct way of fixing ifconfig scan from blocking the network stack. The kernel will continue scanning in the background and filling the nodes array, but ifconfig scan commands will now basically do just a SIOCG80211ALLNODES and pretty print the array. So the output stays the same but is instant. In fact, when the interface is freshly brought up, if you type fast enough, you can see the array being filled by running multiple ifconfig scans in sequence. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... Another change that this introduces is the fact that ifconfig scan no longer plays with UP and DOWN. If the interface is down it complains and exits. This is needed in order to maintain the nodes list. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
2018-04-26Reduce differences between isoch & bulk/intr routines.Martin Pieuchot
ok stsp@
2018-04-26Follows section 6.2.3.6 to compute endpoint interval.Martin Pieuchot
ok stsp@
2018-04-25update ttm and radeondrm(4) to Linux 4.4.129Jonathan Gray
Compared to the previous Linux 3.8 based port this adds support for KAVERI/KABINI/MULLINS APUs and OLAND/BONAIRE/HAINAN/HAWAII GPUs. Thanks to the OpenBSD Foundation for sponsoring this work.
2018-04-24Fill the 'card' member of v4l2_capability struct with the usb productLandry Breuil
name coming from usbd_devinfo_vp() instead of the dummy "Generic USB video class device" string, makes it easier to differentiate multiple webcams in firefox's webrtc permission dialog. ok/help mpi@
2018-04-23regenccardenas
2018-04-23Add ids for AMD 15h 3xh family along with Kaveri graphicsccardenas
Ok mlarkin@ jsg@
2018-04-22Use free(9) size argument in azalia_codec_select_dacs(). FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-04-22Wrap debug-only variable definition in #ifdef AZALIA_DEBUG. FromAlexandre Ratchov
Michael W. Bombardieri. Thanks.
2018-04-20revert to 2018/04/20 10:00:00, before oopsChristian Weisgerber
2018-04-20oops, snapshot tests not ready yetTheo de Raadt
2018-04-20syncTheo de Raadt
2018-04-20add a small driver for AMDs cryptographic co processor.David Gwynne
the hardware provides crypto offload, zlib offload, and an rng. this code only supports the rng at the moment. this device is present on their amd seatlle platforms, and very present on their epyc stuff. ok kettenis@ jmatthew@
2018-04-20regenDavid Gwynne
2018-04-20add and update amd cryptographic co-processor devicesDavid Gwynne
2018-04-18handle failure better in release_firmware()/request_firmware()Jonathan Gray
Alloc the containing struct with M_ZERO so if loadfirmware() fails and doesn't set the pointer we won't try to free an address based on uninitialised memory. Use M_DEVBUF not M_DRM when freeing the buffer allocated by loadfirmware().
2018-04-18Try to get the layout from the default mux when attaching a consoleMartin Pieuchot
keyboard late. This makes keyboard re-attaching due to the machdep.forceukbd sysctl(2) respect /etc/kbdtype. Issue reported by Artturi Alm, jmc@ and landry@. ok kettenis@
2018-04-15The Exar XR17V354 has 4 com ports that have a 256-byte FIFO, use aJoshua Stein
frequency of 125Mhz, and have a unique sleep register. A custom interrupt handler is setup in puc for these ports so it can check a register which reports which ports triggered the interrupt, rather than having to run comintr for every port every time. ok mlarkin deraadt
2018-04-15pucdata: convert port types and frequencies to a lookup table toJoshua Stein
allow for custom frequencies not a multiple of COM_FREQ ok deraadt
2018-04-14regenJoshua Stein
2018-04-14add another lite-on vendor id and cb1 nvmeJoshua Stein
2018-04-13Don't panic if ipmi_sendcmd() failsYASUOKA Masahiko
diff from fukaumi at soum.co.jp. ok deraadt mpi
2018-04-11Some (probably newer) re(4) cards don't have the 32-bit memory BAR thatPatrick Wildt
we try to map first. Instead there's a 64-bit memory BAR in the follow- ing BAR. Since on the MACCHIATObin we currently do not support the IO space, we have to use the 64-bit memory BAR. Thus, try to map the 64- bit BAR before falling back to the 32-bit BAR and the IO bar. ok deraadt@ kettenis@
2018-04-11Add mixer save/restore capability to the audio(4) driver andAlexandre Ratchov
use it during suspend/resume. Remove driver-specific mixer save/restore bits that don't need to be duplicated in every low-lever driver. ok mpi
2018-04-11Fix confusion between NMIDI > 0 and NMPU > 0. From jsg@.Alexandre Ratchov
2018-04-11Add support for Huawei k3772.bket
OK jca@, sthen@, deraadt@
2018-04-11syncbket
2018-04-11Add ids for Huawei k3772.bket
OK jca@, sthen@, deraadt@
2018-04-09Implement support for INTx interrupts on Marvell ARMADA 7K & 8K.Mark Kettenis
2018-04-09regenMark Kettenis
2018-04-09Add Marvell 88E1512.Mark Kettenis
2018-04-09Add two more dwc3 quirks.Mark Kettenis
ok visa@, patrick@
2018-04-09The Open Firmware Interrupt Mapping "recommendation" says that the numberMark Kettenis
of address celss in the child unit specifier should be fetched from the interrupt controller node. Fix this as the current code doesn't work on the MACCHIATObin for example. ok patrick@
2018-04-08Deassert resets.Mark Kettenis
2018-04-07Only attach a single PHY if the PHY address isn't specified. This preventsMark Kettenis
PHYs that respond at the broadcast address 0 and some other address from attaching twice and isolating themselves from the interface. This makes the network interface on the Theobrama Systems RK3399-Q7 SoM that has a Micrel KZS9031 PHY work. ok patrick@
2018-04-07Only register ourselves as the time-of-day clock device if no time-of-dayMark Kettenis
clock device has been registered yet. The Theobrama Systems RK3399-Q7 SoM also has a ISL1208 RTC chip and that device is preferred since it is connected to the battery. ok patrick@, deraadt@
2018-04-07Add islrtc(4), a driver for the Intersil ISL1208 Real Time Clock.Mark Kettenis
2018-04-07Add support for GPIO card detect.Mark Kettenis
2018-04-07em: Port an i219 errata workaround from FreeBSDStefan Fritsch
https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/i218-i219-ethernet-connection-spec-update.pdf?asset=9561 ok mikeb@ jsg@
2018-04-07em: Add em_check_phy_reset_block() quirkStefan Fritsch
Port the logic from freebsd to em_check_phy_reset_block(). A single read does not seem to be reliable. ok mikeb@ jsg@
2018-04-07em: Increase delay after reset to 20msStefan Fritsch
This is the value in freebsd for ich8lan. ok mikeb@ jsg@
2018-04-07em: Print error code and phy/mac typeStefan Fritsch
Print the error code if hardware initialization failed. If EM_DEBUG is defined, print the phy/mac type during attach. ok mikeb@ jsg@
2018-04-06If port io is disabled, disable the associated windows as well.Mark Kettenis
ok patrick@, deraadt@