OpenBSD cvs log

created 2024-11-10T05:45:25Z
begin 2024-11-08T00:00:00Z
end 2024-11-09T00:00:00Z
path src/sys
commits 24

date 2024-11-08T00:13:39Z
author jsg
files src/sys/arch/i386/include/intrdefs.h log diff annotate
message remove unused I386_IPI_NAMES, amd64 X86_IPI_NAMES removed in 2019

date 2024-11-08T01:44:52Z
author jsg
files src/sys/arch/amd64/include/vmparam.h log diff annotate
message remove unused VM_MAXUSER_ADDRESS32

date 2024-11-08T01:57:34Z
author jsg
files src/sys/arch/amd64/include/pmap.h log diff annotate
message remove unused pmap_move()

date 2024-11-08T04:02:30Z
author jsg
files src/sys/arch/arm64/include/vmmvar.h log diff annotate
message remove PCI MMIO defines, matches recent amd64 change

date 2024-11-08T04:40:34Z
author jsg
files src/sys/arch/arm64/include/armreg.h log diff annotate
message remove ID register values, cpu.c uses different defines

date 2024-11-08T08:43:38Z
author miod
files src/sys/arch/sparc64/sparc64/trap.c log diff annotate
message Correctly compute access type for write faults. This allows write-only
mappings to work.

date 2024-11-08T08:44:07Z
author miod
files src/sys/arch/sparc64/sparc64/intr.c log diff annotate
src/sys/arch/sparc64/sparc64/locore.s log diff annotate
message Implement interrupt depth counter for sparc64.

date 2024-11-08T09:12:46Z
author kettenis
files src/sys/dev/pci/if_iwx.c log diff annotate
src/sys/dev/pci/if_iwxreg.h log diff annotate
src/sys/dev/pci/if_iwxvar.h log diff annotate
message Add support for MA devices.

ok stsp@

date 2024-11-08T10:24:13Z
author bluhm
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/netinet/raw_ip.c log diff annotate
src/sys/netinet6/raw_ip6.c log diff annotate
message Use PCB iterator for raw IPv6 input loop.

Implement inpcb iterator in rip6_input(). Factor out the real work
to rip6_sbappend(). Now UDP broadcast and multicast, raw IPv4 and
IPv6 input work similar. While there, make rip_input() look more
like rip6_input().

OK mvs@

date 2024-11-08T11:57:53Z
author stsp
files src/sys/dev/pci/pcidevs log diff annotate
message add two Intel E810 Ethernet PCI device IDs

date 2024-11-08T11:58:20Z
author stsp
files src/sys/dev/pci/pcidevs.h log diff annotate
src/sys/dev/pci/pcidevs_data.h log diff annotate
message regen

date 2024-11-08T12:08:22Z
author bluhm
files src/sys/arch/amd64/include/cpufunc.h log diff annotate
src/sys/dev/ic/psp.c log diff annotate
message psp(4) waits for acknowledgement of wbinvd from other CPU.

If any other CPU has not finished wbinvd, PSP command may fail. To
avoid races, call wbinvd_on_all_cpus_acked() which waits for
acknowledgement from IPI handler. Provide stub to build non-MP
kernels.

from hshoexer@; OK mlarkin@

date 2024-11-08T12:17:07Z
author stsp
files src/sys/arch/amd64/conf/GENERIC log diff annotate
src/sys/dev/pci/files.pci log diff annotate
src/sys/dev/pci/if_ice.c log diff annotate
src/sys/dev/pci/if_icereg.h log diff annotate
src/sys/dev/pci/if_icevar.h log diff annotate
message Add a work-in-progress version of ice(4), a driver for Intel E810 devices.
Ported from FreeBSD.

This driver does not pass packets yet, lots of code is still missing.
The driver will remain disabled in kernel configs until it is ready.

At this stage, code for device initialization should be fairly complete.
Some hardware features will require additional firmware packages to be
loaded. My plan is to get things working in the basic "safe mode" first,
which does not require external firmware.

I will continue working on this driver in-tree, with funding from genua.
Help is welcome.

ok dlg@

date 2024-11-08T12:28:00Z
author mpi
files src/sys/dev/dt/dt_prov_kprobe.c log diff annotate
message Constify strtab.

date 2024-11-08T12:48:00Z
author miod
files src/sys/arch/sparc64/include/openfirm.h log diff annotate
src/sys/dev/ofw/openfirm.h log diff annotate
message Move sparc64-specific ofw prototypes out of the MI header.

date 2024-11-08T13:18:29Z
author jsg
files src/sys/arch/i386/i386/pmap.c log diff annotate
src/sys/arch/i386/i386/pmapae.c log diff annotate
src/sys/arch/i386/include/pmap.h log diff annotate
message remove pmap_zero_page_uncached()

used by idle page zeroing code removed from uvm in 2015
ok miod@ mpi@ mlarkin@

date 2024-11-08T13:22:09Z
author sashan
files src/sys/net/pf.c log diff annotate
message pf(4) when doing af-to translation for ICMP protocol sends packets
with TTL field to zero. To fix it function pf_test_state_icmp()
must initialize ttl field in pf_pdesc structure for inner packet.

feedback from bluhm@

OK bluhm@

date 2024-11-08T15:46:55Z
author bluhm
files src/sys/netinet/tcp_usrreq.c log diff annotate
message TCP send and receive space update are MP safe.

tcp_update_sndspace() and tcp_update_rcvspace() only read global
variables that do not change after initialization. Mark them as
such. Add braces around multi-line if blocks.

ok mvs@

date 2024-11-08T15:54:33Z
author mpi
files src/sys/uvm/uvm_pmemrange.c log diff annotate
message sparc64 now has ci_idepth.

ok miod@

date 2024-11-08T17:34:22Z
author bluhm
files src/sys/dev/ic/psp.c log diff annotate
src/sys/dev/pci/psp_pci.c log diff annotate
message Use a mutex to make psp(4) MP safe.

To avoid a race between writing PSP command, sleeping, receiving
interrupt, and calling wakeup(9), protect psp(4) driver with a
mutex. With that interrupt handler is MP safe and ioctl(2) can
release kernel lock.

from hshoexer@; OK dlg@

date 2024-11-08T21:13:34Z
author landry
files src/sys/dev/fdt/qcpas.c log diff annotate
message qcpas: send APM_POWER_CHANGE events upon ac / battery life changes

allows upowerd to react on power changes, and now i have nifty
notifications in xfce4 on the x13s when plugging/unplugging the ac.
Also works on the omnibook x14.

ok phessler@ kettenis@ jca@

date 2024-11-08T21:40:39Z
author bluhm
files src/sys/netinet/tcp_input.c log diff annotate
message Use mutex of receive socket buffer to protect so_oobmark.

Socket field so_oobmark belongs to receive path, so use so_rcv mutex
to protect it. Although tcp_input() is still exclusively locked,
put mutex there to prepare further unlocking.

OK mvs@

date 2024-11-08T21:47:03Z
author bluhm
files src/sys/kern/uipc_socket.c log diff annotate
message Use read once in socket filter functions.

The socket filt_...() functions are called with shared netlock, but
without per socket lock. This can be done as they are read-only.
After unlocking, TCP will modify socket variables in parallel. So
explicitly mark with READ_ONCE() where unlocked access to socket
fields happens.

OK mvs@

date 2024-11-08T21:47:10Z
author krw
files src/sys/arch/luna88k/include/disklabel.h log diff annotate
src/sys/arch/luna88k/luna88k/disksubr.c log diff annotate
message Change 'labeloffset' to 0 from 64 as that space in the OpenBSD disklabel block is no
longer used by luna88k.

Tested & ok miod@ aoyam@