OpenBSD cvs log

created 2022-02-02T10:26:48Z
begin 2022-01-17T00:00:00Z
end 2022-01-18T00:00:00Z
path src/sys
commits 5

date 2022-01-17T02:54:28Z
author mlarkin
files src/sys/arch/amd64/amd64/hibernate_machdep.c log diff annotate
src/sys/arch/i386/i386/hibernate_machdep.c log diff annotate
src/sys/kern/subr_hibernate.c log diff annotate
src/sys/sys/hibernate.h log diff annotate
message Allow more memory ranges in hibernate

The previous limit of VM_PHYSSEG_MAX ranges (16) was proving too small for
newer machines. This diff reorganizes the hibernate signature block to allow
for 22 ranges by removing the kernel version comparison and replacing it
with a SHA of several unique kernel features (the version string and several
addresses of functions not inside the same .o).

Reported by claudio@, who also helped fix some issues in the diff. Input
from deraadt@ as well.

Tested by myself and claudio on a variety of machines. Only compile tested on
i386 as I have no more S4-capable i386 hardware anymore.

ok claudio@

date 2022-01-17T03:54:03Z
author jsg
files src/sys/dev/pci/drm/drm_linux.c log diff annotate
message unstub dma_fence_chain_find_seqno() for non zero seqno

date 2022-01-17T12:42:30Z
author jsg
files src/sys/dev/pci/drm/include/linux/irq_work.h log diff annotate
message change irq work from interrupt context back to process context like
our 5.10 drm used (via a task) by changing from timeout_set() to
timeout_set_proc()

irq work is supposed to be in interrupt context but some path used on
inteldrm with gen 9 graphics sleeps.

Reported by Agnosto Dvonik on kaby lake and jcs@ and aja@ on comet lake.
For Agnosto Dvonik this occured when running firefox or mpv, for jcs@
when playing a video in firefox, for aja@ after 5 min of running gnome.
aja@ has run gnome for many hours with this change without problem.

date 2022-01-17T13:55:32Z
author mpi
files src/sys/uvm/uvm_object.c log diff annotate
message Call uvm_pglistfree(9) instead of uvm_pmr_freepageq().

There is no functionnal change as the former is just a wrapper around the
latter. However upper layer of UVM do not need to mess with the internals
of the page allocator.

This will also help when a page cache will be introduced to reduce contention
on the global mutex serializing acess to pmemrange's data.

ok kettenis@, kn@, tb@

date 2022-01-17T14:17:48Z
author visa
files src/sys/arch/riscv64/dev/sfcc.c log diff annotate
message sfcc: Fix accidental spinning

Adjust end condition so that sfcc_cache_wbinv_range() would not spin
when (pa + len) is not cache line aligned.

While here, fix parameter types of sfcc_cache_wbinv_range() as
suggested by kettenis@.

OK kettenis@ (earlier version), miod@