summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2017-05-21Enable radeondrm(4) on loongson to get accelerated graphicsVisa Hankala
with the RS780E chipset. OK kettenis@, jsg@
2017-05-21Rockchip SoCs needs some additional register twiddling when the link speedMark Kettenis
changes to set the appropriate clock. Add a sc_statchg callback in the core softc that gets called when the link status changes.
2017-05-21Add dwmmc(4), a driver for the Synopsis Designware SD/MMC controller as foundMark Kettenis
on various Rockchip SoCs. This is still WIP. Next steps will be to get rid of various busy-wait loops and add DMA support.
2017-05-20More SD/MMC controller-related clocks.Mark Kettenis
2017-05-20Accept baud rates up to 2 Mbps as these are supported by CP2104 and laterMark Kettenis
variants. ok jsg@, deraadt@
2017-05-19Repair rtwn(4) IQ calibration.Stefan Sperling
Restore behaviour from before the fix of the botched R92C_USTIME_TSF register definition. IQ cal code was referring to this register by name, but actually needs to use the old value. So add a register definition for the old value under a new name (R92C_BCN_CTRL1) and use this name in the IQ cal code. Discussed with Kevin Lo
2017-05-19Make monitor work with athn(4) on my 3T3R AR9380 device.Stefan Sperling
This card can now receive packets. Transmit is still broken and Kevin Lo reports that his 2T2R AR9380 device cannot receive yet.
2017-05-19Make rtwn(4) add frames which failed to transmit to AMRR's transmit counter.Stefan Sperling
More closely matches what other drivers are doing.
2017-05-19Make rtwn(4) support fixed transmit rates set with ifconfig(8).Stefan Sperling
Useful for development and testing but not recommended for regular usage.
2017-05-19Fix R92C_USTIME_TSF register definition.Stefan Sperling
According to Kevin Lo it was wrong (and is also wrong in the Linux driver). FreeBSD made the same change in r282623. Patch by Kevin Lo.
2017-05-18Grab the netlock in umb_state_task() and umb_decode_ip_configuration()Alexander Bluhm
when calling in_ioctl(). These ioctls modify the routing table, which is global. So they need the lock. Found with Zaur Molotnikov's static lock analyzer. OK gerhard@ mpi@
2017-05-18Fix a uvm fault in athn_clock_rate():Stefan Sperling
Don't deref an IEEE80211_CHAN_ANYC channel pointer. ok mpi@
2017-05-17regenJonathan Gray
2017-05-17add some devices from submitted dmesgsJonathan Gray
2017-05-16Remove references to /dev/soundN, which was removed last year.Alexandre Ratchov
From Jan Stary <hans at stare.cz>, thanks.
2017-05-16when allocating a new screen, only copy the current buffer contentsJoshua Stein
to it for visible screens (i.e., the console). initialize other virtual screens with just blank character cells. ok mpi
2017-05-15Add some SD/MMC controller-related clocks.Mark Kettenis
2017-05-15vioscsi: Fix allocation of segmentsStefan Fritsch
Port the logic to calculate the number of segments in virtqueue and dmamaps from vioblk. This fixes the virtqueue indirect descriptors being two entries too small the dmamaps being much larger than necessary. If the device does not support the required number of segments, refuse to use it.
2017-05-15Use splraise() rather than splsoftnet() which is going away.Martin Pieuchot
2017-05-15Replace remaining SPLUSBCHECK by a splsoftassert(IPL_SOFTUSB).Martin Pieuchot
USB is the last real user of IPL_SOFTNET.
2017-05-14Align vioscsi's bus_dma* dancing with vioblk. EliminatesKenneth R Westerback
creating/destroying maps on each i/o. ok sf@, "makes sense" dlg@ as part of larger diff.
2017-05-13Handle drive strength.Mark Kettenis
2017-05-12subtract one sector from the disk size before passing it back to theJoshua Stein
scsi layer, which will add one sector back fixes incorrect disk size reporting which was causing fdisk to create a protective MBR of one too many sectors, which caused our EFI bootloader to fail to recognize it as a GPT disk ok dlg
2017-05-12Introduce a new keyboard console hook to enter ddb(4) and make ukbd(4)Martin Pieuchot
use it. Instead of defering every input of a USB console keyboard to a timeout via a queue of one element, only differ entering ddb(4) once a matching control sequenece has been typed. This prevent loosing inputs when a USB console keyboard is "too fast". Fix a problem reported by matthieu@, Adam McDougall and Hrvoje Popovski. ok stsp@, dlg@
2017-05-10Adapt the filter parameters to the X/Y ratio.Ulf Brosziewski
ok mpi@
2017-05-10It is unsafe to dereference ``xfer'' after calling the callback as itMartin Pieuchot
might free it. Prevent a use-after-free in various aynchronous cases. Found while looking at another user-after-free pointed out by ehrhardt@. Committing now to find if other drivers rely on this use-after-free. tb@ confirmed ubcmtp(4) is now fixed.
2017-05-10Revert r1.61 and partially 1.60. The resulting logic is currently aMartin Pieuchot
noop and prevent us from fixing real use-after-free. Since xfer->status is reset by *_device_intr_done(), checking for USBD_IOERROR cannot be true. Problem reported by tb@ because ubcmtp(4) triggers some I/O errors when multiple fingers are used.
2017-05-10Make this compile with HIDKBD_DEBUG defined.Martin Pieuchot
2017-05-08improved coordinate filtersUlf Brosziewski
ok mpi@
2017-05-088192C is the only MIMO chip supported by this driver, all others are 1T1R.Ricardo Mestre
This diff corrects dmesg to properly show that all others are 1T1R, since right now it only applies to 8188C and all others incorrectly display 0T0R. hint & OK stsp@
2017-05-08In iwm_send_cmd(), look at the generation counter instead of the STOPPED flagStefan Sperling
to determine whether the interface was reset while we were sleeping. The flag will be set if the interface is still down when the task wakes up, but the interface could already be up again in which case the flag will be cleared. ok mpi@ kettenis@
2017-05-08Unbreak the tree. I missed a header file change in my last iwm(4) commit.Stefan Sperling
2017-05-08In iwm(4) avoid locking the NIC redundantly and perform accounting ofStefan Sperling
locking and unlocking. Make sure we don't unlock 7000 family NICs while a command is being processed (later NICs apparently don't need this). Inspired by similar approaches in Linux and Dragonfly, and a patch given to me by Imre Vadasz. Tested by me on 7265 and 8260 devices, and on a 7260 device by Stefan Wollny.
2017-05-08For 8188EU chips, read the R92C_HSSI_PARAM2(0) register to detect whetherStefan Sperling
the driver needs to enable the CCK high power feature, as already done for other chips supported by urtwn(4). Same change as FreeBSD r311347. Patch submitted by Kevin Lo. Tested by me.
2017-05-08Fix R92C_TXDW4_RTSRATE_M and R92C_TDECTRL_BLK_DESC_NUM_M definitions.Stefan Sperling
Same changes as FreeBSD r311948 and r287584. Patch submitted by Kevin Lo. Tested by me.
2017-05-08Fix issues with iwm(4) firmware's retry rate table:Stefan Sperling
For a HT node, ni_txrate is always zero. We should be using ni_txmcs instead. Simplify the if-else logic to make sure of that. The mimo delimiter in the link quality command was never set. I don't know how important this is. But Linux sets it, so why not. Hardcode the lowest rate at the tail of the retry table. While debugging the old code I have encountered retry tables filled with only 'MCS 8' which is obviously not ideal. While here, fix a misspelled function prototype. Tested by kettenis@, mpi@, and Stefan Wollny ok mpi@
2017-05-07Program hardware address in dwc_gmac_init() instead of dwc_gmac_attach()Mark Kettenis
such that "ifconfig dwge0 lladdr 00:11:22:33:44:55" actually works.
2017-05-07Refactor this code to support the GMAC found on the Rockchip RK3399 alongsideMark Kettenis
the GMAC found on the Allwinner A20/A31. With this diff I can receive packets on the Firefly-RK3399. Unfortunately sending packets doesn't seem to work yet.
2017-05-06Add rkgpio(4), a driver to handle GPIOs on Rockchip SoCs.Mark Kettenis
2017-05-06Remove unused local variable such that this actually compiles.Mark Kettenis
2017-05-06Add a few GMAC related clocks and implement reset logic.Mark Kettenis
2017-05-06Configure pins and deassert resets, just in case some other board needs it.Mark Kettenis
2017-05-06add Moxa CP-104ELJonathan Matthew
ok kettenis@
2017-05-05Move dwge(4) glue into dev/fdt.Mark Kettenis
2017-05-05Add rkpinctrl(4), a driver to configure pins on Rockchip SoCs. For now,Mark Kettenis
only the RK3399 is supported.
2017-05-05Include <dev/ofw/ofw_misc.h> instead of <dev/ofw/ofw_pinctrl.h>.Mark Kettenis
2017-05-05Add glue to attach SDHC compliant controllers using the FDT. This makesMark Kettenis
the eMMC controller on the Rockchip RK3399 work.
2017-05-05Implement two quirks to support the Arasan eMMC 5.1 controller found onMark Kettenis
the Rockchip RK3399. - Make it possible to override sdhc_signal_voltage(). - Make it possible to disable double-data rate modes. ok patrick@
2017-05-05Add eMMC-related clocks.Mark Kettenis
2017-05-05Remove a DIAGNOSTIC test for a NULL pipe value inside a transfer,Jonathan Gray
mpi says a transfer can't exist without a pipe. ok mpi@