OpenBSD cvs log

created 2023-02-19T04:13:49Z
begin 2023-02-13T00:00:00Z
end 2023-02-14T00:00:00Z
path src/sys
commits 12

date 2023-02-13T08:01:52Z
author kettenis
files src/sys/dev/pci/pcidevs log diff annotate
message Add Rockchip RK3566 and shorten the name for the RK3399.

ok jsg@

date 2023-02-13T08:03:05Z
author kettenis
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2023-02-13T09:42:45Z
author mvs
files src/sys/kern/sys_generic.c log diff annotate
src/sys/kern/syscalls.master log diff annotate
message Push kernel lock down to dopselect() and doppoll() and unlock select(2),
pselect(2), poll(2) and ppoll(2).

select(2) and poll(2) are just wrappers for kqueue(2)/kevent(2) which
are already unlocked. They do temporary event queue initialization and
scan for this call only. The difference is in local data conversion
between select(2)/poll(2) and kevent(2) formats.

To separate possible signal related fallout, dosigsuspend() left under
the kernel lock. It will be taken only if optional signal mask arg
passed to pselect(2) or ppoll(2). dosigsuspend() will be unlocked later
with sigsuspend(2).

Discussed with claudio@ and kettenis@.

ok claudio@

date 2023-02-13T09:57:20Z
author mvs
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 2023-02-13T14:51:49Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message Upon fork, copy the copyin_check structure to the new map, otherwise
the xonly rules are not applied a child. This was due to the same
misunderstanding as with msyscall a few days ago.
ok guenther kettenis

date 2023-02-13T14:52:55Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message Also lock the map in the execve-driven calls to uvm_map_check_copyin_add()
ok kettenis

date 2023-02-13T15:50:06Z
author stsp
files src/sys/dev/pci/if_iwxreg.h log diff annotate
message Fix an alignment issue in iwx(4) Rx descriptors.

Split a 64-bit field, aligned at a 4-byte boundary, into two 32 bit fields.
Our driver does not use this field. Its definition does not matter to us,
as long as its size remains correct.

Fixes clang-15 warnings, which turn into compilation errors with -Werror.

Reported by, and ok tb@

Relevant clang 15 errors are:

In file included from /sys/dev/pci/if_iwx.c:151:
/sys/dev/pci/if_iwxreg.h:3659:2: error: field within 'struct iwx_rx_mpdu_desc_v1' is less aligned than 'union iwx_rx_mpdu_desc_v1::(anonymous at /sys/dev/pci/if_iwxreg.h:3659:2)' and is usually due to 'struct iwx_rx_mpdu_desc_v1' being packed, which can lead to unaligned accesses [-Werror,-Wunaligned-access]
union {
^
/sys/dev/pci/if_iwxreg.h:3626:2: error: field within 'struct iwx_rx_mpdu_desc_v3' is less aligned than 'union iwx_rx_mpdu_desc_v3::(anonymous at /sys/dev/pci/if_iwxreg.h:3626:2)' and is usually due to 'struct iwx_rx_mpdu_desc_v3' being packed, which can lead to unaligned accesses [-Werror,-Wunaligned-access]
union {
^
2 errors generated.

date 2023-02-13T16:16:03Z
author kettenis
files src/sys/arch/arm64/stand/efiboot/fdt.c log diff annotate
src/sys/arch/armv7/stand/efiboot/fdt.c log diff annotate
src/sys/arch/riscv64/stand/efiboot/fdt.c log diff annotate
message Support device trees with NOPs in them (like the kernel version already
does).

tested by jca@ (riscv64)
ok patrick@

date 2023-02-13T19:16:50Z
author kettenis
files src/sys/dev/fdt/fanpwr.c log diff annotate
message Add support for the Shenzhen Tangcheng Technology TCS4525 voltage
regulator.

ok patrick@

date 2023-02-13T19:18:53Z
author patrick
files src/sys/arch/arm64/conf/GENERIC log diff annotate
src/sys/arch/arm64/conf/RAMDISK log diff annotate
src/sys/conf/files log diff annotate
src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/if_dwqe_fdt.c log diff annotate
src/sys/dev/ic/dwqe.c log diff annotate
src/sys/dev/ic/dwqereg.h log diff annotate
src/sys/dev/ic/dwqevar.h log diff annotate
message Add dwqe(4), a driver for the Synopsis DesignWare Ethernet QoS controller
used on the NXP i.MX8MP, the Rockchip RK35xx series and Intel Elkhart Lake.

For now it is committed with FDT-attachment only and still in rough shape,
but it's time for development to occur in-tree.

Discussed with bluhm@
ok kettenis@

date 2023-02-13T19:19:29Z
author kettenis
files src/sys/dev/fdt/rkclock.c log diff annotate
src/sys/dev/fdt/rkclock_clocks.h log diff annotate
message Add RK356x TSADC clocks.

ok patrick@

date 2023-02-13T19:26:15Z
author kettenis
files src/sys/dev/fdt/files.fdt log diff annotate
src/sys/dev/fdt/psci.c log diff annotate
src/sys/dev/fdt/pscivar.h log diff annotate
src/sys/dev/fdt/scmi.c log diff annotate
message Add a driver for the ARM System Control and Management Interface, which,
among other things allows management of clocks under firmware management.

ok patrick@