Age | Commit message (Collapse) | Author |
|
if "shutdown" is set and the mountroot hook has not run.
Otherwise unhibernate causes a uvm fault due to an uninitialised lock.
|
|
i2c reads are implemented as a port register read that returns up to 32
bytes from a page.
ok dlg@
|
|
|
|
|
|
a printf so it shows without DRMDEBUG
|
|
From Brad
|
|
function name in order to reduce grep noise. Also, some of them where referring
to the wrong function.
|
|
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@
|
|
|
|
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.
|
|
committing now so this can be worked on in tree
Thanks to the OpenBSD Foundation for sponsoring this work and kettenis@
for helping.
|
|
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
|
|
ok ratchov@
|
|
ok jmatthew@
|
|
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@
|
|
OK jan@, "yes please" tedu@
|
|
|
|
ok stsp@
|
|
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
|
|
noticed by deraadt
|
|
several printfs here seem to have mismatched newlines?
|
|
|
|
OK tedu@
|
|
|
|
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.
|
|
Problem reported and fix tested by Stephane Guedon
ok jca@ mpi@
|
|
From Miod
OK tedu@
|
|
ok anton@
|
|
|
|
|
|
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.
|
|
From Jan Klemkow, ok tedu@
|
|
|
|
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@
|
|
|
|
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@
|
|
using them. Fixes machines with ancient ACPI 1.0 (such as recent
hypervisors).
ok deraadt@
|
|
representation from the FADT. Mostly fixes the Lanner NCA-1510.
ok lteo@, mlarkin@, deraadt@
|
|
statement at the end of a void function. All inside #if 0, so
no effect on generated code.
|
|
|
|
ok kettenis@
|
|
GPIO driver. This allows us to use the fusbtc(4) interrupt
on the RockPro64.
ok kettenis@
|
|
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@
|
|
|
|
|
|
OK deraadt@
|
|
ok jsg@
|
|
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@
|
|
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
|
|
|