OpenBSD cvs log

created 2019-05-08T04:33:40Z
begin 2018-01-13T00:00:00Z
end 2018-01-14T00:00:00Z
path src/sys
commits 10

date 2018-01-13T10:58:50Z
author kettenis
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Add a barrier at the end of pmap_map_early() such that the new mapping is
guaranteed to be available after pmap_map_early() returns. Fixes a hang
seen with the in-progress SMP work.

ok patrick@

date 2018-01-13T11:54:01Z
author bru
files src/sys/dev/wscons/wsmouse.c log diff annotate
message coordinate again: polishing

date 2018-01-13T12:58:40Z
author robert
files src/sys/kern/kern_event.c log diff annotate
src/sys/sys/event.h log diff annotate
message introduce a filter called EVFILT_DEVICE that can be used to notify
listeners of device state changes.
currently only supports NOTE_CHANGE that will be used by drm(4)

ok kettenis@

date 2018-01-13T13:03:42Z
author robert
files src/sys/dev/pci/drm/Attic/drmP.h log diff annotate
src/sys/dev/pci/drm/drm_drv.c log diff annotate
src/sys/dev/pci/drm/drm_linux.c log diff annotate
src/sys/sys/conf.h log diff annotate
message add kqueue support to drm(4) by making the drm_sysfs_hotplug_event()
available on OpenBSD well and by notifying listeners of a device
state change using EVFILT_DEVICE and NOTE_CHANGE.

drm_sysfs_hotplug_event() gets called when a state change of the device
occured, like an hdmi cable has been plugged, this in the future will
be used by the modesetting xorg driver to notify desktop environments
via randr events to update their screen configuration

ok kettenis@

date 2018-01-13T14:15:07Z
author jsg
files src/sys/dev/pci/drm/drm_linux.h log diff annotate
message Add a linux compatible request_firmware() wrapper around loadfirmware(9).
ok deraadt@ kettenis@

date 2018-01-13T15:10:02Z
author stsp
files src/sys/arch/sparc64/dev/vldcp.c log diff annotate
message In vldcp(8) fix a race between vldcpread() and vldcp_rx_intr() which
was overlooked by my previous fix.

Keep SPL at TTY in vldcpread() while manipulating the rx queue head.
Otherwise we could end up in a situation where:
1: vldcpread() reads rx_head
2: vldcpread() calls splx()
3: vldcp_rx_intr() fires, finds rx link is down, and sets rx_head = rx_tail
4: vlcdpread() resumes and sets rx_head to the value it read in step 1
-> same interrupt storm problem as described in my previous commit

ok kettenis@ mpi@

date 2018-01-13T15:18:11Z
author mpi
files src/sys/arch/alpha/include/intr.h log diff annotate
src/sys/arch/alpha/include/mutex.h log diff annotate
src/sys/arch/amd64/include/intrdefs.h log diff annotate
src/sys/arch/amd64/include/mutex.h log diff annotate
src/sys/arch/arm64/include/intr.h log diff annotate
src/sys/arch/arm64/include/mutex.h log diff annotate
src/sys/arch/hppa/include/intr.h log diff annotate
src/sys/arch/hppa/include/mutex.h log diff annotate
src/sys/arch/i386/include/intrdefs.h log diff annotate
src/sys/arch/i386/include/mutex.h log diff annotate
src/sys/arch/luna88k/include/intr.h log diff annotate
src/sys/arch/m88k/include/mutex.h log diff annotate
src/sys/arch/powerpc/include/intr.h log diff annotate
src/sys/arch/powerpc/include/mutex.h log diff annotate
src/sys/arch/sparc64/include/intr.h log diff annotate
src/sys/arch/sparc64/include/mutex.h log diff annotate
message Define and use IPL_MPFLOOR in our common mutex implementation.

ok kettenis@, visa@

date 2018-01-13T15:56:02Z
author millert
files src/sys/ufs/ffs/ffs_vnops.c log diff annotate
message Add comment describing why we need to clear the buffer if uiomove()
fails, adapted from FreeBSD. Also avoid clearing the buffer if it
was cleared when allocated. OK deraadt@ otto@

date 2018-01-13T15:57:58Z
author millert
files src/sys/ufs/ext2fs/ext2fs_readwrite.c log diff annotate
message In ext2fs_write(), clear the buffer on uiomove() failure unless it
was cleared on alloc just like we do in ffs_write().

date 2018-01-13T18:08:20Z
author kettenis
files src/sys/dev/fdt/rkpcie.c log diff annotate
message Make things work when using the official device tree bindings used by the
Linux kernel.