OpenBSD cvs log

created 2022-02-12T23:42:49Z
begin 2022-02-10T00:00:00Z
end 2022-02-11T00:00:00Z
path src/sys
commits 9

date 2022-02-10T01:50:19Z
author jsg
files src/sys/dev/pci/drm/amd/display/dc/dcn21/dcn21_resource.c log diff annotate
message bring back a local change to use DC_FP_START()/DC_FP_END() in
update_bw_bounding_box() lost in drm 5.15 update

should avoid 'SSE FP exception trap' infrequently seen on boot
with renoir and cezanne

problem reported by beck@ and claudio@

date 2022-02-10T05:48:02Z
author gkoehler
files src/sys/arch/macppc/dev/apm.c log diff annotate
src/sys/arch/powerpc/include/cpu.h log diff annotate
message Add stubs for macppc suspend

These stubs don't work; they only pretend to suspend the machine.
SUSPEND + MULTIPROCESSOR doesn't build. zzz(8) stops giving an error
message, even in no-SUSPEND kernels.

Add intr_enable in <powerpc/cpu.h>, adapted from powerpc64, because
subr_suspend.c calls intr_enable().

date 2022-02-10T06:52:13Z
author deraadt
files src/sys/arch/arm64/dev/apm.c log diff annotate
message #ifdef the SUSPEND ioctl block

date 2022-02-10T07:39:20Z
author visa
files src/sys/dev/acpi/acpi.c log diff annotate
src/sys/dev/acpi/acpivar.h log diff annotate
message Embed klist head in acpi_softc to avoid explicit malloc.

OK kettenis@

date 2022-02-10T10:14:02Z
author kn
files src/sys/uvm/uvm_map.c log diff annotate
message Unwire with map lock held

uvm_unmap_remove() effectively requires its caller to lock the vm map.

Even though uvm_map_teardown() is only called after a map's last reference
is dropped and is thus safe from other threads accessing the map, grab the
map's lock in uvm_map_teardown() to satify upcoming lock assertions in
uvm_unmap_remove().

Tested as part of a larger diff through
- amd64 package bulk builds by naddy
- amd64, arm64, powerpc64 base builds and regress by bluhm
- amd64 and sparc64 base builds and regress by me

Feedback mpi
OK kettenis

date 2022-02-10T10:15:35Z
author kn
files src/sys/uvm/uvm_fault.c log diff annotate
src/sys/uvm/uvm_map.c log diff annotate
src/sys/uvm/uvm_map.h log diff annotate
message Assert vm map locks

Introduce vm_map_assert_{wrlock,rdlock,anylock,unlocked}() in rwlock(9)
fashion and back up function comments about locking assumptions with proper
assertions.

Also add new comments/assertions based on code analysis and sync with
NetBSD as much as possible.

vm_map_lock() and vm_map_lock_read() are used for exclusive and shared
access respectively; currently no code path is purely protected by
vm_map_lock_read() alone, i.e. functions called with a read lock held by the
callee are also called with a write lock elsewhere.

Thus only vm_map_assert_{wrlock,anylock}() are used as of now.

This should help with unlocking UVM related syscalls

Tested as part of a larger diff through
- amd64 package bulk build by naddy
- amd64, arm64, powerpc64 base builds and regress by bluhm
- amd64 and sparc64 base builds and regress by me

Input mpi
Feedback OK kettenis

date 2022-02-10T16:22:00Z
author bluhm
files src/sys/dev/pci/if_ixl.c log diff annotate
message Enable receive checksum offloading on ixl(4) network interfaces.
from jan@; test and OK dlg@

date 2022-02-10T16:41:51Z
author deraadt
files src/sys/arch/amd64/amd64/acpi_machdep.c log diff annotate
message Duplicate "park disk" code, so that the SUSPEND case can be MI, it is only
HIBERNATE that needs to be in MD code.
ok gkoehler

date 2022-02-10T16:41:53Z
author deraadt
files src/sys/arch/i386/i386/acpi_machdep.c log diff annotate
src/sys/kern/subr_suspend.c log diff annotate
message Duplicate "park disk" code, so that the SUSPEND case can be MI, it is only
HIBERNATE that needs to be in MD code.
ok gkoehler