OpenBSD cvs log

created 2022-11-26T11:29:04Z
begin 2022-11-21T00:00:00Z
end 2022-11-22T00:00:00Z
path src/sys
commits 5

date 2022-11-21T07:27:10Z
author sashan
files src/sys/net/pf_if.c log diff annotate
message Fix DIOCIGETIFACES ioctl so all network interfaces
and interface groups are reported. The bug allowed
to enumerate the first 64 interfaces only.

The issue has been noticed and bug kindly reported
by Olivier Croquin.

OK kn@

date 2022-11-21T14:39:23Z
author kettenis
files src/sys/arch/arm64/dev/aplhidev.c log diff annotate
message Wait for a reply to the command that switches the touchpad into raw mode.
If we don't do this, the SMC appears to crash on machines with firmware
from macOS 12.6.1. Insert a small delay of 1ms after sending the command
as polling for the reply too soon makes the command fail.

ok tobhe@

date 2022-11-21T20:19:21Z
author kettenis
files src/sys/arch/arm64/arm64/machdep.c log diff annotate
src/sys/arch/arm64/arm64/pmap.c log diff annotate
src/sys/arch/arm64/include/pmap.h log diff annotate
message Get rid of pmap_map_early(). This is part of my crusade against the use of
1G mappings for the PA = VA identity mapping used in the early boot phase
of the kernel and when spinning up CPUs. The mappings are dangerous since
they might (unintentially) covering address ranges that should not be
mapped (i.e. secure memory) which is dangerous on arm64 since the
architecture allows speculative access to any address for which a valid
mapping exists and even speculative access may cause the machine to
misbehave.

So instead of relying on the PA = VA identity mapping, call pmap_bootstrap()
earlier such that we can use pmap_kenter_cache() to enter mappings for the
FDT.

ok miod@

date 2022-11-21T21:48:06Z
author kettenis
files src/sys/arch/arm64/conf/files.arm64 log diff annotate
src/sys/arch/arm64/dev/aplpwm.c log diff annotate
message Add aplpwm(4), a driver for the PWM controller found on Apple silicon.

ok tobhe@

date 2022-11-21T22:50:07Z
author kn
files src/sys/net/pf_if.c log diff annotate
message Replace manual loop and duplicate RB_NEXT with RB_FOREACH

The loop begins with saving a pointer to the next interface, does work and
then gets the same next interface again, for nothing.

Switch to the elsewhere consistently used RB_FOREACH helper.

OK sashan