OpenBSD cvs log

created 2023-07-09T08:27:59Z
begin 2023-07-05T00:00:00Z
end 2023-07-06T00:00:00Z
path src/sys
commits 17

date 2023-07-05T08:15:34Z
author jsg
files src/sys/arch/armv7/armv7/armv7_machdep.c log diff annotate
message remove unused armv7 max_processes global
ok miod@

date 2023-07-05T08:26:56Z
author tobhe
files src/sys/arch/arm64/dev/apm.c log diff annotate
message Suspend from suspend_taskq in apmioctl.

ok kettenis@

date 2023-07-05T09:25:55Z
author kettenis
files src/sys/arch/riscv64/stand/efiboot/efiboot.c log diff annotate
message They may have fixed the cache coherency problems in the JH7110, but it is
still criplled as the SD/MMC controllers only do 32-bit DMA.

ok jsing@

date 2023-07-05T10:36:28Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Use dc_update_planes_and_stream

From Rodrigo Siqueira
8d855bc67630fa2b17855d85de61b9cd4300e3ad in linux-6.1.y/6.1.36
f7511289821ffccc07579406d6ab520aa11049f5 in mainline linux

date 2023-07-05T10:38:11Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: Add wrapper to call planes and stream update

From Rodrigo Siqueira
e538342002cbe468224f71b7ae116586e55c1134 in linux-6.1.y/6.1.36
81f743a08f3b214638aa389e252ae5e6c3592e7c in mainline linux

date 2023-07-05T10:40:14Z
author jsg
files src/sys/dev/pci/drm/amd/display/amdgpu_dm/amdgpu_dm.c log diff annotate
message drm/amd/display: fix the system hang while disable PSR

From Tom Chung
9bcac453890bf2c0ab5a7cefb407c0a9d6cbc4cb in linux-6.1.y/6.1.36
ea2062dd1f0384ae1b136d333ee4ced15bedae38 in mainline linux

date 2023-07-05T10:41:57Z
author jsg
files src/sys/dev/pci/drm/radeon/radeon_gem.c log diff annotate
message drm/radeon: fix race condition UAF in radeon_gem_set_domain_ioctl

From Min Li
1af1cd7be370b08694d8752c97325fe51fdab6aa in linux-6.1.y/6.1.36
982b173a6c6d9472730c3116051977e05d17c8c5 in mainline linux

date 2023-07-05T11:07:36Z
author kettenis
files src/sys/arch/riscv64/dev/stfclock.c log diff annotate
message Implement support for the GPIOs on the JH7110. Makes it possible to reboot
the VisionFive 2 from OpenBSD.

ok jsing@

date 2023-07-05T11:07:37Z
author kettenis
files src/sys/arch/riscv64/dev/stfpinctrl.c log diff annotate
message Implement support for the GPIOs on the JH7110. Makes it possible to reboot
the VisionFive 2 from OpenBSD.

ok jsing@

date 2023-07-05T12:58:55Z
author kn
files src/sys/arch/amd64/amd64/trap.c log diff annotate
message Drop kernel lock before panic to avoid WITNESS report during fault

holding a spinlock, eg. malloc's malloc_mutex in "Data modified on freelist ..."
triggers "acquiring blockable sleep lock with spinlock or critical section held"
since kpageflttrap() grabs the kernel lock before fault() to serialise multiple
threds/faults avoid interleaved console text.

But fault() immediately sets the per-CPU panic string, so the kernel lock does
not really help here.

Use 'show panic' to recover from garbled console text if need be, as usual.
The i386 equivalent does not use the kernel lock, either.

OK bluhm kettenis

date 2023-07-05T15:07:28Z
author stsp
files src/sys/dev/pci/if_iwm.c log diff annotate
src/sys/dev/pci/if_iwx.c log diff annotate
message Add iwm/iwx background scan task to the queue which it will be deleted from.

The corresponding task_add and task_del calls were operating on different
queues by mistake. Background scan tasks should now get cancelled properly
during driver state transitions.

ok mvs@

date 2023-07-05T15:13:28Z
author beck
files src/sys/kern/vfs_syscalls.c log diff annotate
src/sys/sys/mount.h log diff annotate
src/sys/ufs/ffs/ffs_softdep.c log diff annotate
src/sys/ufs/ffs/ffs_vfsops.c log diff annotate
message Make softdep mounts a no-op

Softdep is a significant impediment to progressing in the vfs layer
so we plan to get it out of the way. It is too clever for us to
continue maintaining as it is.

ok kettenis@ kn@ tobhe@ and most of the g2k23 room except bluhm@

date 2023-07-05T18:11:08Z
author patrick
files src/sys/dev/pci/virtio_pci.c log diff annotate
message Fix off-by-one in the MSI-X interrupt establish loop that always tried to
establish one more interrupt than would be needed for per-VQ IRQs. This
meant even though there were enough MSI-X vectors available this path could
fail, roll back previously established interrupts and switch to shared IRQs
as a fallback.

ok dv@

date 2023-07-05T18:23:10Z
author anton
files src/sys/arch/amd64/amd64/locore.S log diff annotate
src/sys/dev/pv/hyperv.c log diff annotate
message The hypercall page populated with instructions by the hypervisor is not IBT
compatible due to lack of endbr64. Replace the indirect call with a new
hv_hypercall_trampoline() routine which jumps to the hypercall page without any
indirection.

Allows me to boot OpenBSD using Hyper-V on Windows 11 again.

ok guenther@

date 2023-07-05T18:48:49Z
author jmatthew
files src/sys/dev/fdt/if_dwge.c log diff annotate
message Handle fixed-link configuration in the device tree.

If fixed-link is present, populate the interface baudrate, link status
(full duplex or half duplex) and media type, and then call the statch
handler to apply that config to the MAC. If fixed-link is specified
then do not attach a phy.

Note that phy lookup and reset still occurs in case the device tree
still uses the deprecated snps,reset-gpio properties.

Based on if_dwqe_fdt.c v1.11 and dwqe.c v1.8.
Tested on a Banana Pi R1 (aka Lamobo R1), which has its dwge interface
connected directly to an ethernet switch.

ok kettenis@

date 2023-07-05T18:51:55Z
author tobhe
files src/sys/dev/acpi/acpi.c log diff annotate
message Move acpiioctl to acpi_x86.c, it is only used up on i386 and amd64.

ok kettenis@ deraadt@

date 2023-07-05T18:51:56Z
author tobhe
files src/sys/dev/acpi/acpi_x86.c log diff annotate
message Move acpiioctl to acpi_x86.c, it is only used up on i386 and amd64.

ok kettenis@ deraadt@