OpenBSD cvs log

created 2022-11-12T00:19:18Z
begin 2022-11-09T00:00:00Z
end 2022-11-10T00:00:00Z
path src/sys
commits 29

date 2022-11-09T06:32:58Z
author stsp
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message unbreak GENERIC build on amd64; patch by anton@

vmm.c:900:3: error: implicit declaration of function 'x86_send_ipi' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]

date 2022-11-09T07:11:30Z
author miod
files src/sys/arch/arm64/arm64/pmap.c log diff annotate
message Minor cleanups:
- remove unused pmap_vp_remove function.
- remove obviously not-applying-to-this-situation comment in
_pmap_kenter_pa(), copied from pmap_enter() (where it is legit).
- make the PTED_xxx accessors inline.
- actually use PTED_WIRED() rather than inlining it everywhere.

ok mpi@ kettenis@

date 2022-11-09T10:03:04Z
author robert
files src/sys/dev/usb/usbdevs log diff annotate
message add a USB ID for WELLSPRINGM1_J293 to be used by aplhidev(4) to identify
M1 laptops with touchbars

date 2022-11-09T10:03:22Z
author robert
files src/sys/dev/usb/usbdevs.h log diff annotate
src/sys/dev/usb/usbdevs_data.h log diff annotate
message regen

date 2022-11-09T10:05:18Z
author robert
files src/sys/arch/arm64/dev/aplhidev.c log diff annotate
src/sys/dev/hid/hidkbd.c log diff annotate
src/sys/dev/hid/hidkbdsc.h log diff annotate
message translate Fn+(1-10,-,=) keys to F1-F12 on M1 laptops with a touchbar

ok kettenis@, miod@

date 2022-11-09T10:19:20Z
author dlg
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
message vmm on !MULTIPROCESSOR kernels should still mark vpus with pending intrs.

the #ifdef MULTIPROCESSOR was a little broad.

still grateful to anton and stsp for unbreaking the tree though.

date 2022-11-09T10:26:28Z
author mpi
files src/sys/kern/syscalls.master log diff annotate
message Mark sched_yield(2) as NOLOCK.

All the fields accessed in this syscall are protected by the SCHED_LOCK()
so it isn't necessary to wait for another CPU to release the KERNEL_LOCK()
before that.

ok claudio@

date 2022-11-09T10:26:37Z
author krw
files src/sys/kern/subr_disk.c log diff annotate
message gpt_get_fstype() doesn't modify its parameter so make said
parameter const.

date 2022-11-09T10:27:01Z
author mpi
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message regen

date 2022-11-09T10:41:18Z
author dlg
files src/sys/net/if.c log diff annotate
message replace SRP with SMR in the if_idxmap.

when i first wrote if_idxmap i didn't realise (and no one thought
to tell me) that index 0 was special and means "no interface", so
while here use the 0th slot in the interface map to store the length
of the map instead of prepending the map with a length field.
if_get() now special cases index 0 and returns NULL directly. this
also means the size of the map is now always a power of 2, which
is a nicer fit with what the kernel malloc aprovides.

tweaks and ok visa@

date 2022-11-09T13:08:36Z
author kn
files src/sys/net/if.c log diff annotate
message Push kernel lock from ifioctl() into ifioctl_get()

Recommit these two together:
- r1.667 "Push kernel lock into ifioctl_get()"
locked before the switch() without unlocking in its cases
- r1.668 "Push kernel lock inside ifioctl_get()"
locked cases individually, as intended

I messed up splitting commits, but of course, Hrvoje managed to test a
CVS checkout right inbetween those two.

OK mpi mvs

date 2022-11-09T13:09:30Z
author kn
files src/sys/net/if.c log diff annotate
message Recommit r1.669 "Unlock SIOCIFGCLONERS"

OK mvs

date 2022-11-09T13:46:11Z
author patrick
files src/sys/dev/fdt/qcpmicgpio.c log diff annotate
message Implement reading/writing pins on qcpmicgpio(4).

date 2022-11-09T15:01:24Z
author claudio
files src/sys/netinet/tcp_usrreq.c log diff annotate
message Add missin 'e' in comment.
OK dlg@

date 2022-11-09T16:23:51Z
author kettenis
files src/sys/arch/arm64/dev/aplpmgr.c log diff annotate
message Make aplpmgr(4) work as a reset controller.

ok patrick@

date 2022-11-09T17:12:50Z
author cheloha
files src/sys/kern/kern_timeout.c log diff annotate
src/sys/sys/timeout.h log diff annotate
message timeout(9): remove TIMEOUT_KCLOCK flag

I never should have added the TIMEOUT_KCLOCK flag. It is redundant
and only serves to complicate the timeout(9) logic. In every place
where we check for the flag we can just use timeout.to_kclock.

So, remove the flag from <sys/timeout.h> and rewrite all affected
logic to use the value of timeout.to_kclock instead.

ok kn@

date 2022-11-09T17:53:12Z
author dv
files src/sys/arch/amd64/amd64/vmm.c log diff annotate
src/sys/arch/amd64/include/vmmvar.h log diff annotate
message vmm(4): treat vcpu lists as immutable, reducing complexity.

Since vmm doesn't support hot-plug vcpus we can reduce complexity
by treating the vcpu list per vm as immutable after creation.

As a consequence, we can use the vm reference count to protect the
lifetime of the vcpus, removing the need for reference counting
individual vcpu objects. With an immutable list, we no longer need
a rwlock protecting it either.

Original diff from dlg@ that I reworked and tested.

ok dlg@, mlarkin@

date 2022-11-09T18:12:47Z
author claudio
files src/sys/kern/spec_vnops.c log diff annotate
message Simplify the overly complex VXLOCK handling in spec_close.
The code only needs to know if the vnode is exclusive locked and this
can be done on entry of the function.
OK mpi@

date 2022-11-09T18:17:00Z
author kettenis
files src/sys/arch/arm64/dev/aplns.c log diff annotate
src/sys/arch/arm64/dev/rtkit.c log diff annotate
src/sys/arch/arm64/dev/rtkit.h log diff annotate
message Add suspend/resume support to aplns(4).

ok dlg@, patrick@

date 2022-11-09T19:18:11Z
author kettenis
files src/sys/arch/arm64/arm64/intr.c log diff annotate
src/sys/arch/arm64/dev/aplintc.c log diff annotate
src/sys/arch/arm64/dev/aplmbox.c log diff annotate
src/sys/arch/arm64/dev/aplns.c log diff annotate
src/sys/arch/arm64/dev/aplrtk.c log diff annotate
src/sys/arch/arm64/dev/aplsmc.c log diff annotate
src/sys/arch/arm64/dev/rtkit.c log diff annotate
src/sys/arch/arm64/dev/rtkit.h log diff annotate
src/sys/arch/arm64/include/intr.h log diff annotate
src/sys/dev/ofw/ofw_misc.h log diff annotate
message Implement wakeup interrupt support. For now this is only implemented for
aplintc(4); other arm64 interrupt controllers will follow.

ok patrick@

date 2022-11-09T19:25:50Z
author patrick
files src/sys/dev/fdt/qcpmicgpio.c log diff annotate
message Move input/output configuration into the correct function.

date 2022-11-09T19:59:38Z
author patrick
files src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/qcpwm.c log diff annotate
message Add qcpwm(4), a driver for the PWM found on Qualcomm PMICs. This is used
on the Lenovo x13s to control the display backlight brightness.

ok kettenis@ mlarkin@

date 2022-11-09T20:00:05Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
message Enable qcpwm(4)

ok kettenis@ mlarkin@

date 2022-11-09T22:12:40Z
author kn
files src/sys/dev/fdt/simplefb.c log diff annotate
message Constify simplefb_formats[]; OK patrick

date 2022-11-09T22:15:50Z
author dlg
files src/sys/net/if.c log diff annotate
message revert r1.673: replace SRP with SMR in the if_idxmap.

if the map has to be reallocated during boot, there's an smr_barrier
waiting for the old map to become unused. that barrier ends up
waiting for cpus that aren't running yet because we haven't finished
booting yet, so boot gets stuck.

found by hrvoje popovski

date 2022-11-09T22:25:08Z
author deraadt
files src/sys/kern/kern_pledge.c log diff annotate
message Some limited setsockopt/getsockopt are allowed in pledge "stdio".
Also allow IPPROTO_TCP:TCP_NODELAY
It is very small kernel code, and will allow some software to drop "inet"
requested by djm

date 2022-11-09T22:25:36Z
author claudio
files src/sys/kern/kern_event.c log diff annotate
message Remove kernel lock here since msleep() with PCATCH no longer requires it.
OK mpi@

date 2022-11-09T22:56:44Z
author tobhe
files src/sys/dev/fdt/gpiobl.c log diff annotate
src/sys/dev/fdt/simplefb.c log diff annotate
message Hook up gpiobl(4) to the screen burner instead of wsdisplay(4) brightness
control. This enables automatic screen blanking with X and wscons(4) once
wsfb(4) is fixed.

"this is fine for now" kettenis@

date 2022-11-09T23:00:00Z
author sashan
files src/sys/net/pf.c log diff annotate
src/sys/net/pf_ioctl.c log diff annotate
src/sys/net/pfvar.h log diff annotate
message simplify expiration of 'once' rules.
let packet to mark 'once' rule as expired. The rule
will be removed by pfctl(8) when rules are updated.

OK kn@