OpenBSD cvs log

created 2021-02-22T14:52:50Z
begin 2021-02-16T00:00:00Z
end 2021-02-17T00:00:00Z
path src/sys
commits 9

date 2021-02-16T00:03:54Z
author deraadt
files src/sys/arch/i386/conf/RAMDISK log diff annotate
message some phy are not needed anymore since the ethernet drivers went away

date 2021-02-16T03:12:32Z
author dlg
files src/sys/net/pf.c log diff annotate
message use rtalloc_mpath in pf_route and pf_route6.

if you have multiple links to the same destination, this will let
you use them with route-to/reply-to/dup-to.

ok claudio@

date 2021-02-16T09:10:17Z
author mpi
files src/sys/uvm/uvm_fault.c log diff annotate
message Comments & style cleanup, no functional change intended.

- Sync comments with NetBSD including locking details.
- Remove superfluous parenthesis and spaces.
- Add brackets, even if questionable, to reduce diff with NetBSD
- Use for (;;) instead of while(1)
- Rename a variable from 'result' into 'error'.
- Move uvm_fault() and uvm_fault_upper_lookup()
- Add an locking assert in uvm_fault_upper_lookup()

ok tb@, mlarkin@

date 2021-02-16T12:33:22Z
author kettenis
files src/sys/arch/arm64/arm64/locore.S log diff annotate
src/sys/arch/arm64/arm64/locore0.S log diff annotate
src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/arm64/arm64/pmap.c log diff annotate
src/sys/arch/arm64/dev/arm64_bus_space.c log diff annotate
src/sys/arch/arm64/include/bus.h log diff annotate
src/sys/arch/arm64/include/pmap.h log diff annotate
src/sys/arch/arm64/include/pte.h log diff annotate
message Introduce BUS_SPACE_MAP_POSTED such that we can distinguish between
posted and non-posted device memory mappings and set the right memory
attributes for them. Needed because on the Apple M1 using the wrong
mapping will fault.

ok patrick@, dlg@

date 2021-02-16T13:50:46Z
author mglocker
files src/sys/dev/video.c log diff annotate
message Enable multiple opens of a video(4) device as described in the V4L2
specification:

https://www.kernel.org/doc/html/v5.10/userspace-api/media/v4l/open.html#f1

The discussion has been started by jca@, who has implemented this
behavior recently, but limited to the same process. This diff extends
this behavior to any process. The first process which opens a stream
will become the device owner. Other processes are still allowed to call
certain ioctls, but none which are related to the start/stop of a
stream, or manipulation of the streaming buffers. At the moment only
VIDIOC_G_CTRL and VIDIOC_S_CTRL are supported to be called by non-
device owner processes, which should be extended further in the future.

There is no additional kernel locking implemented at the moment, since
video(4) already runs under the KERNEL_LOCK(), which we expect to be
sufficient for now (as discussed with claudio@).

A lot of improvement input received from anton@.

ok anton@

date 2021-02-16T18:35:26Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Trim uhidpp_device_features() by extracting two pure protocol functions.

date 2021-02-16T18:36:43Z
author anton
files src/sys/dev/usb/uhidpp.c log diff annotate
message Poll battery sensors less frequently. The previous period was quite
arbitrary and inspired by other USB drivers.

date 2021-02-16T19:36:03Z
author mglocker
files src/sys/dev/video.c log diff annotate
message Introduce debug levels since the current debug output is too noisy by
default.

date 2021-02-16T21:58:14Z
author kettenis
files src/sys/dev/fdt/exuart.c log diff annotate
src/sys/dev/fdt/exuartreg.h log diff annotate
message Add support for the UART found on the Apple M1 SoC.

ok patrick@