summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2020-02-23regenJasper Lievisse Adriaanse
2020-02-23- add an AMD hub found on APU2Jasper Lievisse Adriaanse
- add Synaptics vendor id and two fingerprint readers feedback and ok jsg@
2020-02-22use the UE_GET_XFERTYPE macro where applicableJasper Lievisse Adriaanse
ok mpi@
2020-02-22regenanton
2020-02-22Unlock ioctl(2).anton
ok kettenis@ mpi@ visa@
2020-02-22In preparation for unlocking ioctl(2), grab the kernel lock as needed.anton
ok kettenis@ mpi@ visa@
2020-02-21Add rkanxdp(4), rkdrm(4) and rkvop(4) to GENERIC, but keep themPatrick Wildt
disabled while their code is improved. ok kettenis@
2020-02-21Add rkanxdp(4), an attachment driver for anxdp(4) on the RK3399.Patrick Wildt
Taken from NetBSD and adjusted to our layers. ok kettenis@
2020-02-21Add anxdp(4), a driver for the Analogix Display Port controller,Patrick Wildt
which amongst other things sets up the link and allows reading the display's modelines over I2C. Taken from NetBSD and adjusted to our layers. ok kettenis@
2020-02-21Add rkvop(4), a driver for the RK3399's Video Output Processors,Patrick Wildt
which transfer a framebuffer to outputs like DisplayPort or HDMI. Taken from NetBSD and adjusted to our layers. ok kettenis@
2020-02-21Implement a rather simple video interface support for OFW. This isPatrick Wildt
good enough to make the Pinebook Pro work, but probably needs a lot more thinking. ok kettenis@
2020-02-21Add rkdrm(4), a driver which combines all the separate componentsPatrick Wildt
and lets drm(4) attach to it. Taken from NetBSD and adjusted to our layers. ok kettenis@
2020-02-21Add a DRM GEM CMA helper from NetBSD. Plenty of parts are stillPatrick Wildt
under ifdef for us, so for now we don't support SG tables or the GEM CMA ops, but at least it lets us create a simple framebuffer. ok kettenis@
2020-02-21Use proper function to get a timestamp, as time_second isn't safe;Otto Moerbeek
ok cheloha@
2020-02-21Handle the mount(... MNT_RELOAD) case for ffs2 as well. ok kettenis@Otto Moerbeek
2020-02-21Remove sigacts structure sharing. The only process that used sharing wasClaudio Jeker
proc0 which is used for kthreads and idle threads. proc0 and all those other kernel threads don't handle signals so there is no benefit in sharing. Simplifies the code a fair bit since the refcnt is gone. OK kettenis@
2020-02-21Adjust a comment, no functional changeClaudio Jeker
2020-02-20Add a delay after link training to work-around a panic when firstKurt Miller
accessing PCI config space on some cards. okay kettenis@
2020-02-20drm/amd: Add DM DMCU supportMark Kettenis
From David Francis a94d5569b23209306220fabb2a8d42d0f966d318 in mainline linux
2020-02-20Implement request_firmware_direct().Mark Kettenis
2020-02-20drm/amd: Add PSP DMCU supportMark Kettenis
From David Francis 6b7eab2ce60d2363b0e4bfea6667439b926bcf54 in mainline linux
2020-02-20drm/amd: Add ucode DMCU supportMark Kettenis
From David Francis 01fcfc83fe07ae42af707c3217f533fb350d4c19 in mainline linux
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowVisa Hankala
adding more filter properties without cluttering the struct. OK mpi@, anton@
2020-02-20Relax the grip the dead hand of QBUS (a.k.a. MAXPHYS) has on theKenneth R Westerback
throat of physio(). Allows individual devices to eventually be modified to support larger physio() (a.k.a. 'raw') i/o's if they prove capable of them. No immediate functional change. Tested for many weeks by and ok robert@.
2020-02-20dwiic(4): tsleep(9) -> tsleep_nsec(9); ok claudio@cheloha
2020-02-20pgt(4): tsleep(9) -> tsleep_nsec(9); ok claudio@cheloha
2020-02-20Introduce the concept of queue to prepare supporting multiple of them.Martin Pieuchot
Move the tx/rx descriptors to dedicated structures similar to what already exist in ix(4). Only one queue is currently used, no real architectural change introduced in this diff. Extracted from a big diff from haesbaert@ via patrick@. Tested by Hrvoje Popovski and jmatthew@, ok jmatthew@
2020-02-20In signal_pending_state() only test for pending signal whenJonathan Gray
TASK_INTERRUPTIBLE (PCATCH) is set in the state argument. Spotted by and original diff from claudio@. ok claudio@
2020-02-20controler -> controllerJonathan Gray
2020-02-20fdc(4/sparc64): timeout_add(9) -> timeout_add_msec(9)cheloha
Copy a change from dev/isa/fd.c to sparc64's floppy driver.
2020-02-19Make sure the first 2MB page of the kernel is actually mapped RO in theMark Kettenis
direct map by using a properly aligned address. To prevent further confusion, remove __kernel_base_phys from the linker script and rename __kernel_end_phys into __kernel_phys_end. Hinted at by Maxime Villard. ok millert@, deraadt@, mpi@
2020-02-19Remove the indirection via timeout for proc_stop_sweep(). Using a softClaudio Jeker
interrupt is enough to defer the signal handling. This is a leftover from the times where not all archs had generic soft interrupts. It is possible that the defer signal handling to a soft interrupt will be removed at a later stage. Input anton@, mpi@ OK kettenis@
2020-02-19Similar to other wireless drivers use bpf_mtap_hdr() to prepend theClaudio Jeker
radiotap header instead of using a fack mbuf in the stack. OK stsp@
2020-02-19ips(4): tsleep(9) -> tsleep_nsec(9)cheloha
While here, get rid of the "timo" variable completely. In the SCSI_NOSLEEP path of ips_poll() use "usecs" and in the opposite path use "msecs". ok krw@
2020-02-18Trailing whitespace.Kenneth R Westerback
2020-02-18Flip vdsk to 'normal' scsi_adapter idiom.Kenneth R Westerback
Compile testing by kurt@ and jca@.
2020-02-18Trailing whitespace is icky. Some KNF whitespace tweaksKenneth R Westerback
tossed it too.
2020-02-18Let aac(4) compile again by #include'ing selinfo.h.Kenneth R Westerback
2020-02-18pppx(4): rwsleep(9) -> rwsleep_nsec(9); ok claudio@cheloha
2020-02-18Cleanup <sys/kthread.h> and <sys/proc.h> includes.Martin Pieuchot
Do not include <sys/kthread.h> where it is not needed and stop including <sys/proc.h> in it. ok visa@, anton@
2020-02-18Fix an mbuf corruption issue which occurs in net80211 hostap mode.Stefan Sperling
When sizing a memory allocation for a probe response frame, the AP used the SSID length stored in the node structure which represents the client, but used the actual length of the SSID when copying it into the frame. If the actual length is sufficiently large this will result in corruption of an adjacent mbuf on the free list since m->m_next will be overwritten with data written to the tail of the probe response frame. Bad things happen later on when the adjacent mbuf is used. Sometimes the corruption is detected by mbufpl's use-after-free checking, at other times we end up crashing somewhere in the network stack. To prevent such a mistake from occuring again I am removing the 'ni' argument from ieee80211_get_probe_resp() altogether. It is not needed. A quick workaround is to configure a short SSID. Debugged with help from claudio, kettenis, and dlg. ok claudio
2020-02-18Add IPv6 support to umb(4).Gerhard Roth
ok job@ bluhm@ claudio@ job@ tested with 'telnet -6 towel.blinkenlights.nl' on Fibocom L831-EAU on IIJ MIO's network (Japan), with 'inet6 autoconf' in /etc/hostname.umb0.
2020-02-18Use SIGPENDING() instead of CURSIG() for emulating signal_pending().Claudio Jeker
There is no need for the additional work done by CURSIG(). seems reasonable jsg@
2020-02-18Move setting of UF_EXCLOSE file descriptor flag inside finishdup().Visa Hankala
This makes it easier to release fdplock before calling closef(). OK mpi@, anton@
2020-02-18magma(4): timeout_add(9) -> timeout_add_msec(9)cheloha
Remove the tick conversion stuff and use timeout_add_msec(9) directly. Compile-tested by kn@. ok kn@
2020-02-18stp(4): tsleep(9) -> tsleep_nsec(9)cheloha
With input from kn@. Compile-tested by kn@. ok kn@
2020-02-18rtsx(4): tsleep(9) -> tsleep_nsec(9); ok mpi@cheloha
2020-02-18ipmi(4): tsleep(9) -> tsleep_nsec(9)cheloha
There remains a polling sleep in this driver. We can fix it separately. ok mpi@
2020-02-17Don't fake up an mbuf to prepend a readiotap header, just use bpf_mtap_hdr().Claudio Jeker
OK claudio@
2020-02-17missing rcs idJasper Lievisse Adriaanse