OpenBSD cvs log

created 2023-01-29T08:51:25Z
begin 2023-01-21T00:00:00Z
end 2023-01-22T00:00:00Z
path src/sys
commits 6

date 2023-01-21T10:30:11Z
author kettenis
files src/sys/arch/arm64/dev/mainbus.c log diff annotate
src/sys/arch/arm64/include/bus.h log diff annotate
message Make bus_dmamem_alloc_range(9) API available.

ok patrick@, deraadt@, phessler@

date 2023-01-21T10:34:49Z
author kettenis
files src/sys/dev/fdt/qcscm.c log diff annotate
message The Qualcomm UEFI Secure Application that handles EFI variables seems to
insist on shared memory in the low 4G of the physical address space.
Use bus_dmamem_alloc_range(9) to make sure this is the case.

Makes setting and getting the RTC time reliable.

ok patrick@, deraadt@, phessler@

date 2023-01-21T11:23:23Z
author mvs
files src/sys/kern/kern_sysctl.c log diff annotate
src/sys/kern/sys_socket.c log diff annotate
src/sys/kern/uipc_socket.c log diff annotate
src/sys/kern/uipc_socket2.c log diff annotate
src/sys/kern/uipc_usrreq.c log diff annotate
src/sys/miscfs/fifofs/fifo_vnops.c log diff annotate
message Introduce per-sockbuf `sb_state' to use it with SS_CANTSENDMORE.

This time, socket's buffer lock requires solock() to be held. As a part of
socket buffers standalone locking work, move socket state bits which
represent its buffers state to per buffer state.

Opposing the previous reverted diff, the SS_CANTSENDMORE definition left
as is, but it used only with `sb_state'. `sb_state' ored with original
`so_state' when socket's data exported to the userland, so the ABI kept as
it was.

Inputs from deraadt@.

ok bluhm@

date 2023-01-21T11:23:24Z
author mvs
files src/sys/netinet/tcp_usrreq.c log diff annotate
src/sys/sys/socketvar.h log diff annotate
message Introduce per-sockbuf `sb_state' to use it with SS_CANTSENDMORE.

This time, socket's buffer lock requires solock() to be held. As a part of
socket buffers standalone locking work, move socket state bits which
represent its buffers state to per buffer state.

Opposing the previous reverted diff, the SS_CANTSENDMORE definition left
as is, but it used only with `sb_state'. `sb_state' ored with original
`so_state' when socket's data exported to the userland, so the ABI kept as
it was.

Inputs from deraadt@.

ok bluhm@

date 2023-01-21T17:35:01Z
author mvs
files src/sys/net/route.c log diff annotate
src/sys/net/route.h log diff annotate
src/sys/netinet/if_ether.c log diff annotate
message Introduce `rt_lock' rwlock(9) and use it instead of kernel lock to
serialize arpcache() and arpresolve(). In fact, net stack already has
sleep points, so the rwlock(9) is better here because we avoid
intersection with the rest of kernel locked paths. Also this new lock
assumed to use to route layer protection instead of netlock.

Hrvoje Popovski had tested this diff and found no visible performance
impact.

ok bluhm@

date 2023-01-21T19:39:28Z
author miod
files src/sys/arch/powerpc/include/pmap.h log diff annotate
src/sys/arch/sparc64/include/pmap.h log diff annotate
src/sys/arch/sparc64/sparc64/machdep.c log diff annotate
message Remove dead/unused prototypes