summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2019-05-24Match radeon_device.c rev 1.2 and return early in amdgpu_device_suspend()Jonathan Gray
if "shutdown" is set and the mountroot hook has not run. Otherwise unhibernate causes a uvm fault due to an uninitialised lock.
2019-05-24implement support for SIOCGIFSFFPAGEJonathan Matthew
i2c reads are implemented as a port register read that returns up to 32 bytes from a page. ok dlg@
2019-05-23drop STUB() calls in paths frequently called when running xorgJonathan Gray
2019-05-23Inline 18 bytes of packet header so we can send vlan tagged packets.Jonathan Matthew
2019-05-23match radeondrm and switch DRM_INFO message with device id/asic name toJonathan Gray
a printf so it shows without DRMDEBUG
2019-05-23Formatting fixes.Kevin Lo
From Brad
2019-05-22Cleanup debug macros in wscons. Favor __func__ over spelling out the actualanton
function name in order to reduce grep noise. Also, some of them where referring to the wrong function.
2019-05-22A wscons device may only be opened in read/write mode once. However,anton
after checking for exclusive access, malloc() can sleep in wsevent_init() opening up for a potential race where more than one thread may be able open the device. Prevent this by checking if the race was won after calling malloc(). While here, switch to mallocarray as proposed by both cheloha@ and mpi@ ok mpi@
2019-05-22Print the bwfm(4)'s ethernet address on attach.Patrick Wildt
2019-05-22If we are SCANning and we want another SCAN, we don't need to purgePatrick Wildt
all nodes and set the link down, this already happened the first time we went to SCAN mode. This brings us in line with the net80211 stack and fixes an incomplete node list during ifconfig(8) scan.
2019-05-21add amdgpu from linux 4.19.44 for recent AMD Radeon partsJonathan Gray
committing now so this can be worked on in tree Thanks to the OpenBSD Foundation for sponsoring this work and kettenis@ for helping.
2019-05-21A problem fixed in wskbd is also present in wsmux. Repeating theanton
previous commit message: In wsmuxclose(), use the same logic as in wsmuxopen() to determine if the device was opened in write-only mode. Relying on me_evar being NULL does not work if the wsmux device was opened first followed attaching it to another wsmux. Closing the wsmux device first at this stage would cause the wscons_event queue inherited from the parent wsmux to be freed. This in turn could cause a panic if an ioctl(WSMUXIO_INJECTEVENT) command is issued on parent wsmux device. ok mpi@ visa@ Reported-by: syzbot+f6c2ed7901eb4b970720@syzkaller.appspotmail.com
2019-05-21Fix NULL check with wrong pointer in xhci_event_xfer_isoc(); CID 1480287Stefan Sperling
ok ratchov@
2019-05-21Fix free(9) with wrong pointer in sili(4) attach error path; CID 1480295Stefan Sperling
ok jmatthew@
2019-05-19During fuzzing, one or many fuzzing processes are often stuck waiting onanton
memory from the subproc malloc subsystem which is exhausted. Attempt to circumvent such scenarios by allocation the kcov coverage buffer using km_alloc() instead. With help from kettenis@ and ok visa@
2019-05-18Correct free size. Fixes a panic when detaching crypto volumes.Tim van der Molen
OK jan@, "yes please" tedu@
2019-05-17Implement mcx_down() and use it to unwind unsuccessful mcx_up() attempts.Jonathan Matthew
2019-05-17For AR9271, use correct clock control register and add a macro to access it.Kevin Lo
ok stsp@
2019-05-16Attach two dwiic-pci devices that didn't work before. That problem seemsMike Larkin
to have been resolved sometime in the past few months, and attaching the devices now makes the trackpad and trackpoint on the Dell Precision 7520 work properly. ok jcs
2019-05-15unrevert, i missed deraadt's commit with the proper fixTed Unangst
noticed by deraadt
2019-05-15revert previous, since it makes jmc's machine print an extra newline.Ted Unangst
several printfs here seem to have mismatched newlines?
2019-05-15if \n is added in attach, then tpm_init() should skip it.Theo de Raadt
2019-05-15Fix free(9) sizes in softraid(4)jan
OK tedu@
2019-05-15remove some use of uninitialized values pointed out by jsg@Jonathan Matthew
2019-05-15Rework tx path to allow using up to 13 segments per packet, so we don'tJonathan Matthew
have to defrag everything. While working on this I discovered both of the tx doorbells can be rung once per mcx_start() call, rather than once per packet. dlg@ helped a lot by making me read the documentation again.
2019-05-14Fix athn(4) 9280 1T2R devices; broken since my noisefloor calib commitStefan Sperling
Problem reported and fix tested by Stephane Guedon ok jca@ mpi@
2019-05-14Add free(9) sizes to ahc(4)jan
From Miod OK tedu@
2019-05-14armv7 and arm64 also have ci_idepthJonathan Gray
ok anton@
2019-05-13print a newline for attach. from f holopTed Unangst
2019-05-13enable in_irq() based checkJonathan Gray
2019-05-13add in_irq() in_interrupt() in_task()Jonathan Gray
in_irq() uses ci_idepth on archs that have it in_interrupt() is the same as in_irq() for now, linux has in_irq() for hard interrupt context and in_interrupt() is also for soft interrupt and nmi context.
2019-05-13free(9) sizes.Martin Pieuchot
From Jan Klemkow, ok tedu@
2019-05-13add idr_is_empty()Jonathan Gray
2019-05-13vmm: add host side pvclockpd
Emulate kvm pvclock in vmm(4). Compatible with pvclock(4) in OpenBSD. Linux does not attach to this (yet). Fixes by reyk@ and tested extensively by reyk@, tb@ and phessler@ ok mlarkin@ phessler@ reyk@
2019-05-12remove unused STUB definitionJonathan Gray
2019-05-12Fix 'ifconfig nwflags; These flags ended up overlapping with other flagsStefan Sperling
in ieee80211com's ic_flags because we haven't been paying attention to them (they're not in the same place in the code and hence easy to miss). Move them to a dedicated variable to avoid this problem in the future. Add a new 'stayauth' nwflag which can be set to let net80211 ignore deauth frames. This can be useful when deauth frames are being persistently spoofed by an attacker. Idea from beck@ ok beck@ phessler@
2019-05-12Make sure the extended PM register descriptions actually exist beforeMark Kettenis
using them. Fixes machines with ancient ACPI 1.0 (such as recent hypervisors). ok deraadt@
2019-05-12Add support for mapping ACPI PM registers using the "extended" gasioMark Kettenis
representation from the FADT. Mostly fixes the Lanner NCA-1510. ok lteo@, mlarkin@, deraadt@
2019-05-11Kill an unused done: label and the associated superfluous "return;"Kenneth R Westerback
statement at the end of a void function. All inside #if 0, so no effect on generated code.
2019-05-11implement dma_fence_arrayJonathan Gray
2019-05-11Fix incorrect error message.Lawrence Teo
ok kettenis@
2019-05-11Implement interrupt controller functionality in the RockchipPatrick Wildt
GPIO driver. This allows us to use the fusbtc(4) interrupt on the RockPro64. ok kettenis@
2019-05-11Add fusbtc(4) to support the Fairchild FUSB302 USB Type-C controller.Patrick Wildt
A Type-C controller has multiple tasks. Even though the orientation of the plug doesn't matter for the user, it matters for the hardware. To be able to know how to route the SuperSpeed pins you need to know which way the plug is connected. Also you need to know if you're a sink/source or device/host. To get the first connection, you toggle between the modes until you find a connection. In case you see that a sink is connected, you can turn on USB Vbus to power the sink. This driver explicitly does not implement USB's Type-C state machine, but if we get more and more of these controllers it might be worth doing. Also there's no support for Power Delivery messages yet. ok kettenis@
2019-05-11move irq_work bits into irq_work headerJonathan Gray
2019-05-11RegenAaron Bieber
2019-05-11Add the colemak keyboard layout.Aaron Bieber
OK deraadt@
2019-05-10Fix idr_get_next() such that idr_for_each_entry() actually works.Mark Kettenis
ok jsg@
2019-05-10Add a fallback to ehci(4)'s phy init code so that when therePatrick Wildt
is no compatible phy it tries to enable the VBus using the phy-supply property. Makes the USB ports on the RockPro64 work. ok kettenis@
2019-05-10Explicitly disable BCM4331 chips present in 2011-2012 Apple Mac systems.Brent Cook
The Mac EFI firmware enables the wireless controller, but does not disable it, so it continues to receive packets and signal interrupts. This was originally seen as an interrupt storm that consumes about 50% of CPU0 on affected machines. The issue was originally discovered in 2012 by Matthew Garret with a partial fix in Grub, then Lukas Wunner added a fix for the Linux kernel in 2016. This piggy-backs on the most-related driver (bwi) for the purpose of detection and mapping the control registers, but does not actually register the driver if the affected chip is detected. See this archived discussion for further analysis of the bug: https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1165355.html ok kettenis stsp
2019-05-10regenJonathan Gray