OpenBSD cvs log

created 2024-11-10T02:55:34Z
begin 2024-11-07T00:00:00Z
end 2024-11-08T00:00:00Z
path src/sys
commits 17

date 2024-11-07T05:24:43Z
author jsg
files src/sys/arch/sparc64/include/pmap.h log diff annotate
src/sys/arch/sparc64/include/proc.h log diff annotate
message add rcs ids

date 2024-11-07T06:04:11Z
author jsg
files src/sys/uvm/uvm_swap_encrypt.h log diff annotate
message remove unused SWAP_KEY_EXPIRE define

date 2024-11-07T07:29:47Z
author miod
files src/sys/arch/sparc64/sparc64/locore.s log diff annotate
message Remove two unnecessary instructions, at least one being a leftover from
debug code added in NetBSD 1.51 not being completely removed in 1.133, and
which we have been carried since 1.1 here...

date 2024-11-07T08:12:12Z
author miod
files src/sys/arch/arm/arm/genassym.cf log diff annotate
src/sys/arch/arm/arm/pmap7.c log diff annotate
src/sys/arch/arm/include/cpuconf.h log diff annotate
src/sys/arch/arm/include/pmap.h log diff annotate
message Remove leftover indirections required by pre-armv7 cpu support.

date 2024-11-07T09:04:55Z
author jsg
files src/sys/uvm/uvm_swap.c log diff annotate
src/sys/uvm/uvm_swap_encrypt.h log diff annotate
message de-macro SWAP_KEY_*; ok miod@ mpi@

date 2024-11-07T10:18:51Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Introduce an helper to check if a page belongs to a given memory range.

No functional change.

ok miod@

date 2024-11-07T10:23:02Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Introduce an helper to check if memory has been freed for a given request.

Using this helper we stop scanning the active/inactive lists if the shrinkers
already released enough pages to fulfill the allocation.

This speeds up the page daemon loop by avoiding useless lookups to find the
first managed page belonging to the low memory range before aborting.

ok miod@

date 2024-11-07T10:31:11Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Remove redundant `constraint' argument to uvmpd_scan() & friends.

Currently when there is no request waiting for low pages the constraint
used corresponds to the full address range. So use the constraint attached
to the memory request.

This also speeds up the active/inactive list lookups by skipping the
constraint check if the request has already been fulfilled.

ok miod@

date 2024-11-07T10:39:15Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
src/sys/uvm/uvm_pmemrange.c log diff annotate
message Use a static request to notify failed nowait allocations.

As a side effect the page daemon now considers releasing inactive pages when
a nowait allocation for low pages failed.

Note that the hardcoded number of 16 pages (a 64K cluster on 4K archs) which
corresponds to what the buffer cache currently wants is left with the original
XXX.

ok miod@

date 2024-11-07T10:41:01Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Optimize active & inactive list traversals when looking only for low pages.

- In the inactive list, if we are not OOM, do not bother releasing high pages.

- In the active list, if we couldn't release enough low pages and are not out-
of-swap, deactivate only low pages.

ok miod@

date 2024-11-07T10:42:26Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Do not try to release memory if all we need is balancing the page lists.

ok miod@

date 2024-11-07T10:46:52Z
author mpi
files src/sys/uvm/uvm_pdaemon.c log diff annotate
message Free Oxford commas for most of the comments.

Requested by miod@

date 2024-11-07T11:12:46Z
author mpi
files src/sys/uvm/uvm_pmemrange.c log diff annotate
src/sys/uvm/uvm_pmemrange.h log diff annotate
message Document locking of failing allocation requests and improve the comments.

date 2024-11-07T13:34:16Z
author claudio
files src/sys/kern/kern_synch.c log diff annotate
message Before stopping a thread because of stop signal set ps_xsig to the signum
so that wait(2) returns the right signal.
Found and tested by sthen@

date 2024-11-07T15:40:02Z
author miod
files src/sys/arch/macppc/macppc/opendev.c log diff annotate
message Remove OF_package_to_path(). This routine used to be needed by the OFW
devices (ofnet, etc) for the VI board in the before-macppc days which nobody
remembers, and has never been needed for anything on macs.

date 2024-11-07T16:02:29Z
author miod
files src/sys/arch/alpha/alpha/db_interface.c log diff annotate
src/sys/arch/alpha/alpha/db_trace.c log diff annotate
src/sys/arch/amd64/amd64/db_trace.c log diff annotate
src/sys/arch/arm64/arm64/db_trace.c log diff annotate
src/sys/arch/hppa/hppa/db_interface.c log diff annotate
src/sys/arch/i386/i386/db_trace.c log diff annotate
src/sys/arch/m88k/m88k/db_interface.c log diff annotate
src/sys/arch/m88k/m88k/db_trace.c log diff annotate
src/sys/arch/mips64/mips64/trap.c log diff annotate
src/sys/arch/powerpc/ddb/db_disasm.c log diff annotate
src/sys/arch/powerpc/ddb/db_trace.c log diff annotate
src/sys/arch/powerpc/powerpc/trap.c log diff annotate
src/sys/arch/powerpc64/powerpc64/db_disasm.c log diff annotate
src/sys/arch/powerpc64/powerpc64/db_trace.c log diff annotate
src/sys/arch/riscv64/riscv64/db_trace.c log diff annotate
src/sys/arch/sh/sh/db_disasm.c log diff annotate
src/sys/arch/sh/sh/db_interface.c log diff annotate
src/sys/arch/sh/sh/db_trace.c log diff annotate
src/sys/arch/sparc64/sparc64/db_trace.c log diff annotate
src/sys/ddb/db_command.c log diff annotate
src/sys/ddb/db_ctf.c log diff annotate
src/sys/ddb/db_elf.c log diff annotate
src/sys/ddb/db_elf.h log diff annotate
src/sys/ddb/db_hangman.c log diff annotate
src/sys/ddb/db_sym.c log diff annotate
src/sys/ddb/db_sym.h log diff annotate
src/sys/kern/kern_clockintr.c log diff annotate
src/sys/kern/kern_timeout.c log diff annotate
message Constify strings in symbol-related ddb interfaces, and make the iterator
callback interface a bit simpler.
ok beck@ claudio@ mpi@

date 2024-11-07T17:24:42Z
author bluhm
files src/sys/arch/amd64/amd64/cpu.c log diff annotate
src/sys/arch/amd64/amd64/lapic.c log diff annotate
src/sys/arch/amd64/amd64/vector.S log diff annotate
src/sys/arch/amd64/include/cpufunc.h log diff annotate
src/sys/arch/amd64/include/i82489var.h log diff annotate
message Expand amd64 wbinvd_on_all_cpus() with acknowledge.

Implement wbinvd_on_all_cpus_acked() similar to pmap_tlb_shootpage().
This ensures, wbinvd has been executed on all cores when the function
returns. This is needed to avoid psp(4) races.

from hshoexer@; OK mlarkin@