OpenBSD cvs log

created 2023-08-10T19:04:22Z
begin 2023-02-07T00:00:00Z
end 2023-02-14T00:00:00Z
path src/sys
commits 57

date 2023-02-07T07:10:43Z
author kevlo
files src/sys/dev/pci/pcidevs log diff annotate
message Add ASMedia ASM2142 xhci

ok deraadt@

date 2023-02-07T07:11:14Z
author kevlo
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-07T12:06:53Z
author miod
files src/sys/arch/alpha/stand/bootxx/Makefile log diff annotate
message Since we override CFLAGS here, don't forget to put -Oz in there so as to compile
with some form of optimization.

date 2023-02-07T16:14:55Z
author bluhm
files src/sys/netinet/if_ether.h log diff annotate
message Remove needless #ifdef INET6 from struct ether_extracted field in
public header file. Makes debugging with special kernels easier.

date 2023-02-07T17:58:43Z
author sashan
files src/sys/net/pfvar.h log diff annotate
message internal representation of icmp type/code in pfctl(8)/pf(4) does not
fit into u_int8_t. Issue has been noticed and kindly reported by
amalinin _at_ bh0.amt.ru via bugs@.

OK bluhm@

date 2023-02-09T01:41:15Z
author cheloha
files src/sys/arch/i386/i386/lapic.c log diff annotate
message i386: lapic_timer_trigger: disable interrupts around lapic_timer_oneshot()

lapic_timer_oneshot() is not atomic. We need to disable interrupts
when calling it to ensure the timer reaches a valid state.

Link: https://marc.info/?l=openbsd-tech&m=167482851403841&w=2

ok mlarkin@

date 2023-02-09T08:00:31Z
author guenther
files src/sys/kern/kern_ktrace.c log diff annotate
message Delay setting the timestamp in the ktrace header until we've grabbed
the vnode, to eliminate misordering of ktrace records.

problem noted by jrick@
ok deraadt@

date 2023-02-09T17:18:21Z
author kettenis
files src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c log diff annotate
message Pin the default framebuffer. The Linux drm code no longer does this since
they switched to using a shadow framebuffer and only pin the hardware
framebuffer when flushing the shadow framebuffer. But our wdisplay(4)
and rasops(9) code expects the hardware framebuffer to be always
accessible at the same address.

Fixes the regression introduced by amdgpu_object.c rev 1.12.

ok jsg@

date 2023-02-09T17:19:25Z
author kettenis
files src/sys/dev/pci/drm/drm_gem_ttm_helper.c log diff annotate
message Unstub drm_gem_ttm_vmap/vunmap.

ok jsg@

date 2023-02-09T21:02:24Z
author kettenis
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message Recognize the cores on Apple's M2 Pro/Max SoCs.

ok patrick@

date 2023-02-09T21:21:27Z
author naddy
files src/sys/dev/pci/if_em.c log diff annotate
src/sys/dev/pci/if_igc.c log diff annotate
message consolidate mbuf header parsing on device driver layer

em(4) ok jan@, bluhm@
igc(4) tested by weerd@

date 2023-02-09T23:35:06Z
author jsg
files src/sys/arch/arm64/arm64/cpu.c log diff annotate
message correct values for M2 Max
ok kettenis@

date 2023-02-10T07:00:12Z
author miod
files src/sys/kern/subr_disk.c log diff annotate
message Remove explicit rejection of zero duid in disk_map() added in 1.262.
Spoofed labels have zero duid and there is no reason not to allow them to
work with duid notation.

ok kn@

date 2023-02-10T11:25:31Z
author aoyama
files src/sys/arch/luna88k/stand/boot/Attic/bcd.c log diff annotate
message Delete no-longer-used file.

date 2023-02-10T14:27:01Z
author jsg
files src/sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c log diff annotate
message drm/i915/guc: Fix locking when searching for a hung request

From John Harrison
de997938a7a5da3cb3bd3b914456656963ca1d1c in linux-6.1.y/6.1.11
87b04e53daf806945c415e94de9f90943d434aed in mainline linux

date 2023-02-10T14:29:34Z
author jsg
files src/sys/dev/pci/drm/i915/i915_gpu_error.c log diff annotate
message drm/i915: Fix request ref counting during error capture & debugfs dump

From John Harrison
9467397f417dd7b5d0db91452f0474e79716a527 in linux-6.1.y/6.1.11
86d8ddc74124c3fdfc139f246ba6da15e45e86e3 in mainline linux

date 2023-02-10T14:29:35Z
author jsg
files src/sys/dev/pci/drm/i915/gt/intel_context.c log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_context.h log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_engine_cs.c log diff annotate
src/sys/dev/pci/drm/i915/gt/uc/intel_guc_submission.c log diff annotate
message drm/i915: Fix request ref counting during error capture & debugfs dump

From John Harrison
9467397f417dd7b5d0db91452f0474e79716a527 in linux-6.1.y/6.1.11
86d8ddc74124c3fdfc139f246ba6da15e45e86e3 in mainline linux

date 2023-02-10T14:32:03Z
author jsg
files src/sys/dev/pci/drm/i915/i915_gpu_error.c log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_engine.h log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_engine_cs.c log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c log diff annotate
src/sys/dev/pci/drm/i915/gt/intel_execlists_submission.h log diff annotate
message drm/i915: Fix up locking around dumping requests lists

From John Harrison
04dcff26490cc8dedbfcf44cfb3e3e7a08622fd0 in linux-6.1.y/6.1.11
5bc4b43d5c6c9692ddc7b96116650cdf9406f3da in mainline linux

date 2023-02-10T14:33:29Z
author jsg
files src/sys/dev/pci/drm/i915/display/intel_cdclk.c log diff annotate
message drm/i915/adlp: Fix typo for reference clock

From Chaitanya Kumar Borah
7a435fe0b6bbf4ab5ede23e25658f3735caa2a65 in linux-6.1.y/6.1.11
47a2bd9d985bfdb55900f313603619fc9234f317 in mainline linux

date 2023-02-10T14:34:16Z
author visa
files src/sys/arch/arm64/dev/apm.c log diff annotate
src/sys/arch/i386/i386/apm.c log diff annotate
src/sys/arch/loongson/dev/apm.c log diff annotate
src/sys/dev/audio.c log diff annotate
src/sys/dev/acpi/acpi.c log diff annotate
src/sys/dev/pci/drm/drm_connector.c log diff annotate
src/sys/dev/pci/drm/drm_linux.c log diff annotate
message Adjust knote(9) API

Make knote(9) lock the knote list internally, and add knote_locked(9)
for the typical situation where the list is already locked.

Remove the KNOTE(9) macro to simplify the API.

Manual page OK jmc@
OK mpi@ mvs@

date 2023-02-10T14:34:17Z
author visa
files src/sys/dev/pci/drm/drm_mode_object.c log diff annotate
src/sys/dev/pci/drm/amd/amdgpu/amdgpu_drv.c log diff annotate
src/sys/dev/pci/drm/i915/i915_driver.c log diff annotate
src/sys/kern/kern_event.c log diff annotate
src/sys/kern/kern_exec.c log diff annotate
src/sys/kern/kern_fork.c log diff annotate
src/sys/kern/kern_sig.c log diff annotate
src/sys/kern/sys_generic.c log diff annotate
src/sys/kern/sys_pipe.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_syscalls.c log diff annotate
src/sys/net/bpf.c log diff annotate
src/sys/net/if_pppx.c log diff annotate
src/sys/sys/event.h log diff annotate
src/sys/sys/vnode.h log diff annotate
message Adjust knote(9) API

Make knote(9) lock the knote list internally, and add knote_locked(9)
for the typical situation where the list is already locked.

Remove the KNOTE(9) macro to simplify the API.

Manual page OK jmc@
OK mpi@ mvs@

date 2023-02-10T14:35:37Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Fix timing not changning when freesync video is enabled

From Aurabindo Pillai
f3056978934cf809c0ae70a22ac3af2a857e1a93 in linux-6.1.y/6.1.11
4b069553246f993c4221e382d0d0ae34f5ba730e in mainline linux

date 2023-02-10T14:37:16Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_context.c log diff annotate
message drm/i915: Avoid potential vm use-after-free

From Rob Clark
764accc2c1b8fd1507be2e7f436c94cdce887a00 in linux-6.1.y/6.1.11
41d419382ec7e257e54b7b6ff0d3623aafb1316d in mainline linux

date 2023-02-10T14:39:13Z
author jsg
files src/sys/dev/pci/drm/i915/gem/i915_gem_tiling.c log diff annotate
message drm/i915: Fix potential bit_17 double-free

From Rob Clark
0769f997a7b6d5cb8336db0b4ec3d2d311b8097c in linux-6.1.y/6.1.11
7057a8f126f14f14b040faecfa220fd27c6c2f85 in mainline linux

date 2023-02-10T14:39:18Z
author visa
files src/sys/net/if_tun.c log diff annotate
message Make tun(4) and tap(4) event filters MP-safe.

OK mvs@

date 2023-02-10T14:40:59Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/nbio_v4_3.c log diff annotate
message drm/amd: Fix initialization for nbio 4.3.0

From Mario Limonciello
814d83a710e8309d989fafc163656a68f2acaef4 in linux-6.1.y/6.1.11
5048fa1ebf89d03cf0ceca13fab8f800399e9ee3 in mainline linux

date 2023-02-10T14:43:15Z
author jsg
files src/sys/dev/pci/drm/amd/pm/swsmu/amdgpu_smu.c log diff annotate
message drm/amd/pm: drop unneeded dpm features disablement for SMU 13.0.4/11

From Tim Huang
91ef43f6b65b5aea03e71d70bb510efc61637ff6 in linux-6.1.y/6.1.11
1538709c9f1c207d30afd95ea41b3aeb973f67e7 in mainline linux

date 2023-02-10T14:46:26Z
author jsg
files src/sys/dev/pci/drm/amd/amdgpu/gfx_v11_0.c log diff annotate
message drm/amdgpu: update wave data type to 3 for gfx11

From Graham Sider
86dbbc8f6ba705b82c0e6daf5c2fed993665dc1a in linux-6.1.y/6.1.11
ed8e793c65e4c6633e8577e40d574da8a56d2e0f in mainline linux

date 2023-02-11T04:35:34Z
author aoyama
files src/sys/arch/luna88k/stand/boot/conf.c log diff annotate
message Make 'ls' command in bootloader work correctly on luna88k.

Now 'ls' against directory works fine.

Tested on LUNA-88K2 and nono emulator by me.

date 2023-02-11T21:11:37Z
author deraadt
files src/sys/uvm/uvm_map.c log diff annotate
message I forgot to copy the msyscall interlock flag to forked processes, so
only freshly executed processes were actually locked. (This happened
because I didn't realize how the uvm_map's contents are copied entry
by entry, and other parts are not)
ok kettenis

date 2023-02-11T23:07:23Z
author deraadt
files src/sys/sys/syscall_mi.h log diff annotate
message __syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

date 2023-02-11T23:07:25Z
author deraadt
files src/sys/kern/syscalls.master log diff annotate
message __syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

date 2023-02-11T23:07:26Z
author deraadt
files src/sys/arch/alpha/alpha/trap.c log diff annotate
src/sys/arch/amd64/amd64/trap.c log diff annotate
src/sys/arch/arm/arm/syscall.c log diff annotate
src/sys/arch/arm64/arm64/syscall.c log diff annotate
src/sys/arch/hppa/hppa/trap.c log diff annotate
message __syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

date 2023-02-11T23:07:27Z
author deraadt
files src/sys/arch/i386/i386/trap.c log diff annotate
src/sys/arch/m88k/m88k/trap.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/syscall.c log diff annotate
src/sys/arch/riscv64/riscv64/syscall.c log diff annotate
src/sys/arch/sh/sh/trap.c log diff annotate
message __syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

date 2023-02-11T23:07:28Z
author deraadt
files src/sys/arch/sparc64/sparc64/trap.c log diff annotate
message __syscall() is no longer neccessary since the system calls which needed
it are now unpadded
ok kettenis guenther

date 2023-02-11T23:10:24Z
author deraadt
files src/sys/sys/syscall.h log diff annotate
src/sys/sys/syscallargs.h log diff annotate
message sync for __syscall removal

date 2023-02-11T23:10:25Z
author deraadt
files src/sys/kern/init_sysent.c log diff annotate
src/sys/kern/syscalls.c log diff annotate
message sync for __syscall removal

date 2023-02-11T23:21:22Z
author deraadt
files src/sys/kern/syscalls.master log diff annotate
message non-padded 64-bit system calls arrived 2021/12/23, over a year ago.
time to delete the backwards compat padded functions in the kernel.

date 2023-02-11T23:21:58Z
author deraadt
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 sync

date 2023-02-11T23:22:17Z
author deraadt
files src/sys/kern/kern_pledge.c log diff annotate
src/sys/kern/vfs_syscalls.c log diff annotate
message non-padded 64-bit system calls arrived 2021/12/23, over a year ago.
time to delete the backwards compat padded functions in the kernel.

date 2023-02-11T23:22:19Z
author deraadt
files src/sys/uvm/uvm_mmap.c log diff annotate
message non-padded 64-bit system calls arrived 2021/12/23, over a year ago.
time to delete the backwards compat padded functions in the kernel.

date 2023-02-12T07:02:43Z
author aoyama
files src/sys/arch/m88k/include/pmap.h log diff annotate
message m88k also needs to define PMAP_CHECK_COPYIN as 1.

"this makes sense" miod@

date 2023-02-12T10:39:16Z
author mvs
files src/sys/dev/pci/pcidevs log diff annotate
message Add "Micron Technology" vendor and MTFDKBA512QFM NVMe storage

ok deraadt@

date 2023-02-12T10:40:05Z
author mvs
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-12T10:41:00Z
author mvs
files src/sys/kern/sys_pipe.c log diff annotate
message Rename pipeselwakeup() to pipe_wakeup(). It doesn't call selwakeup()
anymore, so do it to be consistent with similar *wakeup() functions.

No functional changes.

ok visa@

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@